Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOD-1855: Send del command to replicas #4629

Merged
merged 2 commits into from May 16, 2024
Merged

MOD-1855: Send del command to replicas #4629

merged 2 commits into from May 16, 2024

Conversation

oshadmi
Copy link
Collaborator

@oshadmi oshadmi commented May 8, 2024

Describe the changes in the pull request
FT.DROPINDEX with DD argument is supposed to delete the keys that are indexed by the dropped index. The DEL command was not being replicated when deleting keys and therefore was not being replicated to other sites of the CRDB (relevant for Redis Enterprise with Active-Active - test passed thanks to @TomerHekmati 🙏🏼)
The fix is to not avoid replicating the command allowing the key to be deleted on other sites as well.

Test case
Create an index and create a key on primary site, see the key is replicated, call FT.DROPINDEX with DD on primary, see the key is deleted on primary and on replica.

Which issues this PR fixes

  1. MOD-1855

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@oshadmi oshadmi marked this pull request as ready for review May 16, 2024 06:59
@oshadmi oshadmi requested a review from GuyAv46 May 16, 2024 07:11
Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.97%. Comparing base (78409fd) to head (894feb6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4629      +/-   ##
==========================================
- Coverage   85.98%   85.97%   -0.01%     
==========================================
  Files         190      190              
  Lines       34517    34515       -2     
==========================================
- Hits        29678    29673       -5     
- Misses       4839     4842       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oshadmi oshadmi added this pull request to the merge queue May 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2024
@GuyAv46 GuyAv46 added this pull request to the merge queue May 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2024
@GuyAv46 GuyAv46 added this pull request to the merge queue May 16, 2024
Merged via the queue into master with commit eb6a4b9 May 16, 2024
13 of 14 checks passed
@GuyAv46 GuyAv46 deleted the oshadmi_mod1855 branch May 16, 2024 16:12
Copy link

Successfully created backport PR for 2.8:

Copy link

Successfully created backport PR for 2.6:

Copy link

Successfully created backport PR for 2.10:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants