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

Remove redis primarySyncFromSecondary fail-safes #4213

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

theoilie
Copy link
Contributor

Description

Removes redis set fail-safes that were causing secondary->primary syncs to fail for users who have rows that are identical in every column except clock value.

Tests

Ran curl -X POST "http://cn1_creator-node_1:4000/merge_primary_and_secondary?wallet=0x7d273271690538cf855e5b3002a0dd8c154bb060&endpoint=https://audius-content-3.cultur3stake.com&syncEvenIfDisabled=true&forceWipe=true" to sync from a prod secondary to my local CN1 as primary before and after these changes using a debugger to check each step. I also manually inspected the duplicates to ensure this change doesn't lead to any corrupted state.

Monitoring - How will this change be monitored? Are there sufficient logs / alerts?

We shouldn't see the following error anymore: Error - Failed to save entries to DB: Failed to add all entries to redis set for FILTER_OUT_ALREADY_PRESENT_DB_ENTRIES_FETCHED_ENTRIES_SET.

@theoilie theoilie added the content-node Content Node (previously known as Creator Node) label Oct 28, 2022
@theoilie theoilie merged commit 096645c into main Oct 28, 2022
@theoilie theoilie deleted the theo-remove-fail-safes branch October 28, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content-node Content Node (previously known as Creator Node) size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants