dice icon indicating copy to clipboard operation
dice copied to clipboard

Add support for `PFSELFTEST` command

Open Vsareen0 opened this issue 1 year ago • 17 comments

Add support for the PFSELFTEST command in DiceDB similar to the PFSELFTEST command in Redis. Please refer to the following commit in Redis to understand the implementation specifics - source.

Write unit and integration tests for the command referring to the tests written in the Redis codebase 7.2.5. For integration tests, you can refer to the tests folder. Note: they have used TCL for the test suite, and we need to port that to our way of writing integration tests using the relevant helper methods. Please refer to our tests directory.

For the command, benchmark the code and measure the time taken and memory allocs using benchmem and try to keep them to the bare minimum.

Vsareen0 avatar Aug 04 '24 17:08 Vsareen0

@Vsareen0 Any updates on this?

AshwinKul28 avatar Aug 17 '24 11:08 AshwinKul28

Hey @Vsareen0 Sorry to bother you again, Do you have any updates on this? If you have any blockers lets discuss this over the discord. Or if you have multiple items on the plate, lets open this issue for everyone, and others can pick this up. Thanks

cc - @JyotinderSingh

AshwinKul28 avatar Aug 25 '24 18:08 AshwinKul28

Can pick this up if possible!

chettriyuvraj avatar Sep 01 '24 18:09 chettriyuvraj

@chettriyuvraj Thanks, go for it.

AshwinKul28 avatar Sep 08 '24 12:09 AshwinKul28

Sorry for no updates on this one - was down with H1N1 the past week. Will pick up and put out an update @AshwinKul28.

chettriyuvraj avatar Sep 13 '24 15:09 chettriyuvraj

Hey @chettriyuvraj, I hope you're doing well. Are you still working on this issue? If not, I can take this up.

ankkyprasad avatar Sep 18 '24 19:09 ankkyprasad

Hey @ankkyprasad! I am - will put an update up shortly

chettriyuvraj avatar Sep 18 '24 20:09 chettriyuvraj

Picking this issue in conjunction with #446 so the initial update is literally the same.

Today was the first day I actively picked up the issue. I'll be posting an update daily from now on.

Status

I mentioned that I had no clue about what HyperLogLog was and my first step today was to pick up the paper.

I'll hopefully have a bit more concrete updates + queries to ask tomorrow.

chettriyuvraj avatar Sep 20 '24 20:09 chettriyuvraj

Status

Quickly mapped out things on paper to figure if my understanding of the baseline concepts were clear:

  • Registers: mapping out bits on paper and seeing if my understanding of how cardinalities are estimated is correct
  • Sparse/dense representation

I think thats all I need to figure this issue - will look at the implementation of PFSELFTEST in Redis source tomorrow and hopefully be able to make sense of it

chettriyuvraj avatar Sep 21 '24 21:09 chettriyuvraj

Status

Hi @AshwinKul28!

Went over the source for pfselftest command

PFSELFTEST performs a test of redis's HLL register implementation We are using a library for our HLL needs.

  1. The internals of the library such as the register values aren't exposed, how do we implement pfselftest in this case?
  2. Will implementing pfselftest make sense since we would be testing the library implementation?

chettriyuvraj avatar Sep 23 '24 16:09 chettriyuvraj

Hello @chettriyuvraj,

There has been no activity on this issue for the past 5 days. It would be awesome if you keep posting updates to this issue so that we know you are actively working on it.

We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work.

Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out.

Thanks again.

arpitbbhayani avatar Oct 03 '24 14:10 arpitbbhayani

Hello @chettriyuvraj,

There has been no activity on this issue for the past 5 days. It would be awesome if you keep posting updates to this issue so that we know you are actively working on it.

We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work.

Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out.

Thanks again.

arpitbbhayani avatar Oct 09 '24 02:10 arpitbbhayani

Hello @chettriyuvraj,

There has been no activity on this issue for the past 5 days. It would be awesome if you keep posting updates to this issue so that we know you are actively working on it.

We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work.

Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out.

Thanks again.

arpitbbhayani avatar Oct 24 '24 13:10 arpitbbhayani

Hi @arpitbbhayani - have unassigned myself from this issue. Free to assign it to someone else.

chettriyuvraj avatar Nov 02 '24 08:11 chettriyuvraj

Hi @arpitbbhayani, @lucifercr07 can I work on this issue?

helios2003 avatar Nov 02 '24 08:11 helios2003

@helios2003 assigned, thanks for contributing.

lucifercr07 avatar Nov 02 '24 09:11 lucifercr07

Hi, @lucifercr07! I've been busy over the past few days, but I took some time to look into how to approach the issue. I'll reach out here or on Slack with any questions or doubts that come up in the next few days. Thanks for your support!

helios2003 avatar Nov 06 '24 16:11 helios2003