-
Notifications
You must be signed in to change notification settings - Fork 120
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
Fix a bug in the primitive serializer #949
Conversation
Results automatically generated by CorfuDB Benchmark Framework to assess the performance of this pull request for commit aef41bd. *** 0.0% transaction FAILURE rate for NonConflictingTx+Scan workload, 1 threads, Disk mode An interactive dashboard with Pull Request Performance Metrics for ALL cluster types and numbers of threads in run, is available at: |
Results automatically generated by CorfuDB Benchmark Framework to assess the performance of this pull request for commit 46f393f. *** 0.0% transaction FAILURE rate for NonConflictingTx+Scan workload, 1 threads, Disk mode An interactive dashboard with Pull Request Performance Metrics for ALL cluster types and numbers of threads in run, is available at: |
Results automatically generated by CorfuDB Benchmark Framework to assess the performance of this pull request for commit bef9093. *** 0.0% transaction FAILURE rate for NonConflictingTx+Scan workload, 1 threads, Disk mode An interactive dashboard with Pull Request Performance Metrics for ALL cluster types and numbers of threads in run, is available at: |
@@ -40,12 +40,12 @@ public byte getType() { | |||
} | |||
|
|||
@SuppressWarnings("unchecked") | |||
private static Map<Class, SerializerFunction> getSerializerMap() { | |||
private static Map<Class, Primitives> getSerializerMap() { | |||
ImmutableMap.Builder b = ImmutableMap.<Class, SerializerFunction>builder(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be of the type Primitives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks like the SuppressWarnings plus not assigning to a generic type was hiding that error.
Results automatically generated by CorfuDB Benchmark Framework to assess the performance of this pull request for commit 7c99c5a. *** 0.0% transaction FAILURE rate for NonConflictingTx+Scan workload, 1 threads, Disk mode An interactive dashboard with Pull Request Performance Metrics for ALL cluster types and numbers of threads in run, is available at: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Fix primitive serializer * fix magic numbers * Fix generic erasure error
The cache was masking an issue in the primitive serializer where
the primitive type was not being written to the payload. This
bug addresses that issue and adds a unit test.