-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-26680 Close and do not write trailer for the broken WAL writer #4174
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
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.
Got your point.
But I suggest that we just close the output in the init method, the closeWithoutTrailer is a bit strange as we do not have other methods which indicate that there is trailer for the file?
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncProtobufLogWriter.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Thanks, @Apache9 , good idea. I have closed the output in the init method. |
🎊 +1 overall
This message was automatically generated. |
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/FSHLogProvider.java
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
…4174) Signed-off-by: Duo Zhang <[email protected]>
…4174) Signed-off-by: Duo Zhang <[email protected]>
…4174) Signed-off-by: Duo Zhang <[email protected]>
…pache#4174) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 8cce0d3) Change-Id: I2514bda4a62089328ed5f561ef2b98798ec7d727
Broken writers need to be closed, so that when doing log split, there will be no need to recover lease for those length 0 wals.