Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BatchMutations bug when updating same rows with CompositeKey multiple times #105
I found an edge-case bug while I working with FluentCassandra earlier today - the problem is that if you try to execute multiple mutations against a row defined using the same
Reproducible unit test
Ran with the latest build of FluentCassandra - this test currently fails.
However, if the test is changed to a column family that uses a simple type as its row key, like a
It seems like this is an issue with the batch mutation tracker in FluentCassandra, and it appears to be isolated to
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Found the issue looks like it's this:
This behavior needs to be changed so the hashcode is reflective of the sum of the parts, rather than per-instance. I'll experiment with changing this myself and would love feedback if this isn't the right approach or root cause of the problem.