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
CASSANDRA-19477 trunk dont go to disk for hints sizes #3180
Conversation
5e55b19
to
c1db700
Compare
+1 thanks for this! |
I would just cache the size value in a transient field in |
415531a
to
816129f
Compare
@@ -271,6 +273,7 @@ public void close() throws IOException | |||
flushBuffer(); | |||
maybeFsync(); | |||
maybeSkipCache(); | |||
descriptor.size = position(); |
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.
why not to just update it in close() ? Then when this is used in try-with-resources in HintsWriteExecutor, we do not need to change there anything at all and not mess with finally etc ...
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.
this should be probably in finally though, not sure ... as all above can throw
26a70d3
to
84129a4
Compare
patch by Stefan Miklosovic; reviewed by Aleksey Yeschenko, Chris Lohfink for CASSANDRA-19477
84129a4
to
d216ee1
Compare
Thanks for sending a pull request! Here are some tips if you're new here:
Commit messages should follow the following format:
The Cassandra Jira