gocql icon indicating copy to clipboard operation
gocql copied to clipboard

Mutex token aware sharding initializer

Open steve-gray opened this issue 3 years ago • 1 comments

  • Prevents data race when/if a schema update happens during an initialization.

I believe this addresses #94.

steve-gray avatar Jan 21 '22 04:01 steve-gray

@mmatczuk - One for you, It seems pretty safe to call the mutex here, and it stops the issues fine in my CI runs locally. I've got a lot of tests where I set up keyspaces, do a bunch of operations then blow away the keyspace so each test is idempotent. I doubt this will happen to anyone in the wild, and will have been an issue for a long while I suspect. If I re-run CI enough, tests will pass.

steve-gray avatar Jan 21 '22 05:01 steve-gray