HBASE-26680 Close and do not write trailer for the broken WAL writer#4174
HBASE-26680 Close and do not write trailer for the broken WAL writer#4174sunhelly merged 2 commits intoapache:masterfrom
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. |
Apache9
left a comment
There was a problem hiding this comment.
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 <zhangduo@apache.org>
…4174) Signed-off-by: Duo Zhang <zhangduo@apache.org>
…4174) Signed-off-by: Duo Zhang <zhangduo@apache.org>
…pache#4174) Signed-off-by: Duo Zhang <zhangduo@apache.org> (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.