Matteo Bertozzi created HBASE-7510:
--------------------------------------

             Summary: RegionTransitionData uses EventType enum index and not 
the value
                 Key: HBASE-7510
                 URL: https://issues.apache.org/jira/browse/HBASE-7510
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.94.3, 0.92.2
            Reporter: Matteo Bertozzi


RegionTransitionData.write() uses eventType.ordinal() that is the index in the 
enum and not the value specified in the enum definition.
so, to keep compatibility (e.g. rolling upgrades) we can't add stuff in the 
middle, remove or move around EventHand.EventType items.

This is just a 0.92/0.94 problem. In trunk/protobuf is fixed since we use 
eventType.getCode() that returns the assigned value and not the enum index.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to