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

SlotMap refactor - Added NodesMap, Update the slot map upon MOVED errors #190

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

barshaul
Copy link

@barshaul barshaul commented Sep 12, 2024

This pull request combines the changes from PRs #186 and #185 into the main branch. It introduces two significant updates:

  1. SlotMap Refactor: The SlotMap structure has been updated with the addition of a NodesMap, which allows shard addresses to be shared between shard nodes and slot map values. This refactor optimizes how shard information is managed. For a detailed explanation, refer to PR SlotMap refactor: Added NodesMap, sharing shard addresses between shard nodes and slot map values. #185.
    The diagram on the left illustrates the current SlotMap design, while the diagram on the right shows the newly implemented structure:
    image

  2. MOVED Error Handling: Logic has been added to update the slot map in response to MOVED errors. Previously, this was handled only during refresh_slots operations. With this change, the slot map is updated immediately upon encountering a MOVED error. More information can be found in PR Added logic to update the slot map based on MOVED errors #186.

@barshaul barshaul force-pushed the update_slotmap_moved branch 2 times, most recently from eafaadb to 368283b Compare September 12, 2024 15:32
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