hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-16548) Procedure v2 - Add handling of split region transition to the new AM
Date Wed, 24 May 2017 22:39:04 GMT

     [ https://issues.apache.org/jira/browse/HBASE-16548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

stack resolved HBASE-16548.
---------------------------
    Resolution: Implemented

Resolving as implemented by HBASE-14614 (not yet committed).

See in new AM:

{code}
  public ReportRegionStateTransitionResponse reportRegionStateTransition(
      final ReportRegionStateTransitionRequest req)
  throws PleaseHoldException {
    final ReportRegionStateTransitionResponse.Builder builder =
        ReportRegionStateTransitionResponse.newBuilder();
    final ServerName serverName = ProtobufUtil.toServerName(req.getServer());
    try {
      for (RegionStateTransition transition: req.getTransitionList()) {
        switch (transition.getTransitionCode()) {

.....
          case READY_TO_SPLIT:
          case SPLIT_PONR:
          case SPLIT:
          case SPLIT_REVERTED:
            assert transition.getRegionInfoCount() == 3 : transition;
            final HRegionInfo parent = HRegionInfo.convert(transition.getRegionInfo(0));
            final HRegionInfo splitA = HRegionInfo.convert(transition.getRegionInfo(1));
            final HRegionInfo splitB = HRegionInfo.convert(transition.getRegionInfo(2));
            updateRegionSplitTransition(serverName, transition.getTransitionCode(),
              parent, splitA, splitB);
            break;
....

{code}

I think that is what this issue refers to.

> Procedure v2 - Add handling of split region transition to the new AM
> --------------------------------------------------------------------
>
>                 Key: HBASE-16548
>                 URL: https://issues.apache.org/jira/browse/HBASE-16548
>             Project: HBase
>          Issue Type: Sub-task
>          Components: proc-v2, Region Assignment
>    Affects Versions: 2.0.0
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>             Fix For: 2.0.0
>
>
> Core Assignment HBASE-14614 does not handle split in reportRegionStateTransition(). Handle
the transition request!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message