hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ramkrishna.s.vasudevan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15259) WALEdits under replay will also be replicated
Date Fri, 12 Feb 2016 07:07:18 GMT
ramkrishna.s.vasudevan created HBASE-15259:

             Summary: WALEdits under replay will also be replicated
                 Key: HBASE-15259
                 URL: https://issues.apache.org/jira/browse/HBASE-15259
             Project: HBase
          Issue Type: Bug
            Reporter: ramkrishna.s.vasudevan
            Priority: Minor

I need to verify this but seeing the code
try {
        // We are about to append this edit; update the region-scoped sequence number.  Do
        // here inside this single appending/writing thread.  Events are ordered on the ringbuffer
        // so region sequenceids will also be in order.
        regionSequenceId = entry.stampRegionSequenceId();
        // Edits are empty, there is nothing to append.  Maybe empty when we are looking for
        // region sequence id only, a region edit/sequence id that is not associated with
an actual
        // edit. It has to go through all the rigmarole to be sure we have the right ordering.
        if (entry.getEdit().isEmpty()) {

        // Coprocessor hook.
        if (!coprocessorHost.preWALWrite(entry.getHRegionInfo(), entry.getKey(),
            entry.getEdit())) {
          if (entry.getEdit().isReplay()) {
            // Set replication scope null so that this won't be replicated
        if (!listeners.isEmpty()) {
          for (WALActionsListener i: listeners) {
            // TODO: Why does listener take a table description and CPs take a regioninfo?
            i.visitLogEntryBeforeWrite(entry.getHTableDescriptor(), entry.getKey(),
When a WALEdit is in replay we set the Logkey to null. But in the visitLogEntryBeforeWrite()
we again set the LogKey based on the replication scope associated with the cells. So the previous
step of setting null does not work here?

This message was sent by Atlassian JIRA

View raw message