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-4373) HBaseAdmin.assign() doesnot use force flag
Date Mon, 12 Sep 2011 13:19:09 GMT
HBaseAdmin.assign() doesnot use force flag

                 Key: HBASE-4373
                 URL: https://issues.apache.org/jira/browse/HBASE-4373
             Project: HBase
          Issue Type: Improvement
            Reporter: ramkrishna.s.vasudevan
            Assignee: ramkrishna.s.vasudevan
            Priority: Minor

The HBaseAdmin.assign()
  public void assign(final byte [] regionName, final boolean force)
  throws MasterNotRunningException, ZooKeeperConnectionException, IOException {
    getMaster().assign(regionName, force);
In the HMaster we call 
    Pair<HRegionInfo, ServerName> pair =
      MetaReader.getRegion(this.catalogTracker, regionName);
    if (pair == null) throw new UnknownRegionException(Bytes.toString(regionName));
    if (cpHost != null) {
      if (cpHost.preAssign(pair.getFirst(), force)) {
    if (cpHost != null) {
      cpHost.postAssign(pair.getFirst(), force);
The force flag is not getting used.  May be we need to update the javadoc or do not provide
the force flag as a parameter if we are not going to use it.

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


View raw message