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
Fixed issue GORA-443 #95
Fixed issue GORA-443 #95
Conversation
I tried this locally and I am still getting error messages
|
} | ||
} | ||
bufMutator.flush(); | ||
bufMutator.close(); |
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.
yeah I tried this as well, but this would mean that if we have millions of operations buffered, we would flush each and every one of them one by one, but even with this we couldn't get the tests to pass. IMO the bufMutator.flush() should remain where it is, and we should find out why the mutations get applied asynchronously when we call flush.
Thank you for comments. I think this is because of the reason as follows: First, BufferedMutation#flush is processed synchronously, Then, RegionServer processes a MultiRequest as a minibatch(HRegion#doMiniBatchMutation) that updates the timestamp of each cell to currentTime if Mutation has HConstants.LATEST_TIMESTAMP(by default). Since the HBaseStore#put create the Delete and Put as the MultiRequest, Puts are invisible. See Also: I'm sorry for my poor english :( I made this fix as a possible solution. (HACK) However, does not pass testDeleteByQueryFields yet. Kiyonari Harigae |
OK thank you @cloudysunny14 |
I know this thread is old, but I don't understand why this not surfaced before (the issue at HBase is from 2014). It seems that at HBase they will not fix it until 2.0.0: https://issues.apache.org/jira/browse/HBASE-8770 |
Thanks for finding this out @alfonsonishikawa ! This makes much more sense now! |
#86
I also encountered the same problem.
I think this is because of AsyncProcess asynchronously process a series of mutations.I made this fix as a possible solution.Required more investigation.
Anyway, If there is anything I can contribute to something, I definitely want to work for GORA or NUTCH :)