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

Problem: HybridTimestamp Comparable Serializable isn't correct #197

Merged
merged 1 commit into from Jan 12, 2017

Conversation

yrashk
Copy link
Contributor

@yrashk yrashk commented Jan 12, 2017

getComparableSerializable().compareTo() provably does not match the
results of compareTo() 100% of the time because it's converting the
timestamp to NTP, therefore reducing the precision.

Solution: switch from Long to BigInteger Comparable Serializable, pack
all data in a comparable order and test it with quickcheck.

`getComparableSerializable().compareTo()` provably does not match the
results of `compareTo()` 100% of the time because it's converting the
timestamp to NTP, therefore reducing the precision.

Solution: switch from Long to BigInteger Comparable Serializable, pack
all data in a comparable order and test it with quickcheck.
@yrashk yrashk merged commit a4d6771 into eventsourcing:master Jan 12, 2017
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.

None yet

1 participant