mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 22:13:19 +00:00
When a joining node announcing join status through gossip, other existing nodes will send writes to the joining node. At this time, it is possible the joining node hasn't learnt the tokens of other nodes that causes the error like below: token_metadata - sorted_tokens is empty in first_token_index! storage_proxy - Failed to apply mutation from 127.0.4.1#0: std::runtime_error (sorted_tokens is empty in first_token_index!) To fix, wait for the token range setup before announcing the join status. Fixes: #3382 Tests: 60 run of materialized_views_test.py:TestMaterializedViews.add_dc_during_mv_update_test Message-Id: <01abb21ae3315ae275297e507c5956e5774557ef.1536128531.git.asias@scylladb.com>