[ https://issues.apache.org/jira/browse/HBASE-6065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280787#comment-13280787 ]
Hadoop QA commented on HBASE-6065: ---------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12528556/HBASE-6065v2.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 hadoop23. The patch compiles against the hadoop 0.23.x profile. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 33 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed these unit tests: org.apache.hadoop.hbase.regionserver.TestAtomicOperation org.apache.hadoop.hbase.replication.TestReplication org.apache.hadoop.hbase.replication.TestMultiSlaveReplication org.apache.hadoop.hbase.replication.TestMasterReplication Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1956//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1956//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1956//console This message is automatically generated. > Log for flush would append a non-sequential edit in the hlog, may cause data > loss > --------------------------------------------------------------------------------- > > Key: HBASE-6065 > URL: https://issues.apache.org/jira/browse/HBASE-6065 > Project: HBase > Issue Type: Bug > Components: wal > Reporter: chunhui shen > Assignee: chunhui shen > Priority: Critical > Attachments: HBASE-6065.patch, HBASE-6065v2.patch > > > After completing flush region, we will append a log edit in the hlog file > through HLog#completeCacheFlush. > {code} > public void completeCacheFlush(final byte [] encodedRegionName, > final byte [] tableName, final long logSeqId, final boolean > isMetaRegion) > { > ... > HLogKey key = makeKey(encodedRegionName, tableName, logSeqId, > System.currentTimeMillis(), HConstants.DEFAULT_CLUSTER_ID); > ... > } > {code} > when we make the hlog key, we use the seqId from the parameter, and it is > generated by HLog#startCacheFlush, > Here, we may append a lower seq id edit than the last edit in the hlog file. > If it is the last edit log in the file, it may cause data loss. > because > {code} > HRegion#replayRecoveredEditsIfAny{ > ... > maxSeqId = Math.abs(Long.parseLong(fileName)); > if (maxSeqId <= minSeqId) { > String msg = "Maximum sequenceid for this log is " + maxSeqId > + " and minimum sequenceid for the region is " + minSeqId > + ", skipped the whole file, path=" + edits; > LOG.debug(msg); > continue; > } > ... > } > {code} > We may skip the splitted log file, because we use the lase edit's seq id as > its file name, and consider this seqId as the max seq id in this log file. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira