hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-2195) Support cyclic replication
Date Mon, 05 Sep 2011 22:22:10 GMT

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

Ted Yu commented on HBASE-2195:
-------------------------------

Below is what I was thinking in terms of reading version:
{noformat}
  /**
   * Read WritableableUtils.vint prefix and see if it represents version
   *   which should be less than 0
   * if no version is found, treat the prefix as the length for the byte-array
   * @param in Input to read from.
   * @throws IOException e
   */
  public void readVersinAndRegionName(final DataInput in)
  throws IOException {
    this.version = 0;
    int len = 0;
    int lenOrVer = WritableUtils.readVInt(in);
    if (lenOrVer < 0) {   // we found the version
      this.version = lenOrVer;
      len = WritableUtils.readVInt(in);
    } else {
      len = lenOrVer;
    }
    this.encodedRegionName = new byte[len];
    in.readFully(this.encodedRegionName, 0, len);
  }
{noformat}

> Support cyclic replication
> --------------------------
>
>                 Key: HBASE-2195
>                 URL: https://issues.apache.org/jira/browse/HBASE-2195
>             Project: HBase
>          Issue Type: Sub-task
>          Components: replication
>            Reporter: Jean-Daniel Cryans
>         Attachments: 2195-v5.txt, 2195.txt
>
>
> We need to support cyclic replication by using the cluster id of each HlogKey and stop
replicating when it goes back to the original cluster.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message