HDFS-3914. QJM: acceptRecovery should abort current segment. Contributed by Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-3077@1383148 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
729ec86907
commit
c5199cace6
@ -62,3 +62,5 @@ HDFS-3900. QJM: avoid validating log segments on log rolls (todd)
|
||||
HDFS-3901. QJM: send 'heartbeat' messages to JNs even when they are out-of-sync (todd)
|
||||
|
||||
HDFS-3899. QJM: Add client-side metrics (todd)
|
||||
|
||||
HDFS-3914. QJM: acceptRecovery should abort current segment (todd)
|
||||
|
@ -683,6 +683,9 @@ public synchronized void acceptRecovery(RequestInfo reqInfo,
|
||||
throws IOException {
|
||||
checkFormatted();
|
||||
checkRequest(reqInfo);
|
||||
|
||||
abortCurSegment();
|
||||
|
||||
long segmentTxId = segment.getStartTxId();
|
||||
|
||||
// TODO: right now, a recovery of a segment when the log is
|
||||
|
Loading…
Reference in New Issue
Block a user