Skip to content

Fix MOD-8194, initialize lookup table on rdbload.#827

Merged
MeirShpilraien merged 3 commits intomasterfrom
meir_MOD-8194_initialize_lookupTable_on_rdbload
Dec 10, 2024
Merged

Fix MOD-8194, initialize lookup table on rdbload.#827
MeirShpilraien merged 3 commits intomasterfrom
meir_MOD-8194_initialize_lookupTable_on_rdbload

Conversation

@MeirShpilraien
Copy link

No description provided.

@MeirShpilraien MeirShpilraien requested a review from eranhd December 9, 2024 15:38

/* Initialize lookupTable */
for (uint32_t i = 0; i < TOPK_DECAY_LOOKUP_TABLE; ++i) {
topk->lookupTable[i] = pow(topk->decay, i);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MeirShpilraien can we build a shared lookup table mechanism to reduce the memory overhead here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably can but it is out of the scope of this fix, the goal here is to fix a bug :)

eranhd
eranhd previously approved these changes Dec 9, 2024
Copy link
Contributor

@eranhd eranhd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you tests fails on valgrind

@eranhd eranhd self-requested a review December 9, 2024 18:54
@MeirShpilraien MeirShpilraien merged commit 306a748 into master Dec 10, 2024
@MeirShpilraien MeirShpilraien deleted the meir_MOD-8194_initialize_lookupTable_on_rdbload branch December 10, 2024 12:34
eranhd pushed a commit that referenced this pull request Dec 30, 2024
Fix MOD-8194, initialize lookup table on rdbload.

(cherry picked from commit 306a748)
eranhd pushed a commit that referenced this pull request Dec 30, 2024
Fix MOD-8194, initialize lookup table on rdbload.

(cherry picked from commit 306a748)
eranhd pushed a commit that referenced this pull request Dec 30, 2024
Fix MOD-8194, initialize lookup table on rdbload.

(cherry picked from commit 306a748)
eranhd pushed a commit that referenced this pull request Dec 30, 2024
Fix MOD-8194, initialize lookup table on rdbload.

(cherry picked from commit 306a748)
eranhd added a commit that referenced this pull request Jan 8, 2025
* Fix MOD-8194, initialize lookup table on rdbload. (#827)

Fix MOD-8194, initialize lookup table on rdbload.

(cherry picked from commit 306a748)

* Fix MOD-8193, open key for write on CMS.INCRBY. (#828)

Fix MOD-8193
Fix `CMS.INCRBY` to open the key for write. Open the key for read prevent it from invalidate a multi exec transaction if used with `watch` or when used with client side caching.

(cherry picked from commit 5191cd1)

---------

Co-authored-by: Meir Shpilraien (Spielrein) <[email protected]>
eranhd added a commit that referenced this pull request Jan 8, 2025
* Fix MOD-8194, initialize lookup table on rdbload. (#827)

Fix MOD-8194, initialize lookup table on rdbload.

(cherry picked from commit 306a748)

* Fix MOD-8193, open key for write on CMS.INCRBY. (#828)

Fix MOD-8193
Fix `CMS.INCRBY` to open the key for write. Open the key for read prevent it from invalidate a multi exec transaction if used with `watch` or when used with client side caching.

(cherry picked from commit 5191cd1)

---------

Co-authored-by: Meir Shpilraien (Spielrein) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants