[ 
https://issues.apache.org/jira/browse/HBASE-9568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497719#comment-14497719
 ] 

Yu Li commented on HBASE-9568:
------------------------------

Another issue found:

In HRegionServer#createRegionLoad, it uses *regionName* as RegionLoad name 
which later used as key of RegionLoad map, so the current 
HMaster.flushedSequenceIdByRegion actually is using regionName as the key. 
However, in current patch HLogSplitter is trying to get the lastFlushSeqId by 
*encodedRegionName*, as shown below

{code}
       while ((entry = getNextLogLine(in,logPath, skipErrors)) != null) {
         byte[] region = entry.getKey().getEncodedRegionName();
+        Long lastFlushedSequenceId = -1l;
+        if (master != null) {
+          lastFlushedSequenceId = lastFlushedSequenceIds.get(region);
+          if (lastFlushedSequenceId == null) {
+            lastFlushedSequenceId = -1l;
+            try {
+              lastFlushedSequenceId = master.getLastFlushedSequenceId(region);
+              lastFlushedSequenceIds.put(region, lastFlushedSequenceId);
+            } catch (IOException e) {
+              LOG.warn("Unable to connect to the master to check " +
+                  "the last flushed sequence id", e);
+              master = null;
+            }
+          }
+        }
{code}

> backport HBASE-6508 to 0.94
> ---------------------------
>
>                 Key: HBASE-9568
>                 URL: https://issues.apache.org/jira/browse/HBASE-9568
>             Project: HBase
>          Issue Type: Improvement
>          Components: MTTR
>            Reporter: Liu Shaohui
>            Priority: Minor
>         Attachments: HBASE-9568-0.94-v1.diff
>
>
> Backport HBASE-6508: Filter out edits at log split time to hbase 0.94



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to