You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jonathan Hsieh (JIRA)" <ji...@apache.org> on 2013/01/07 21:44:14 UTC
[jira] [Commented] (HBASE-7510) RegionTransitionData uses EventType
enum index and not the value
[ https://issues.apache.org/jira/browse/HBASE-7510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546247#comment-13546247 ]
Jonathan Hsieh commented on HBASE-7510:
---------------------------------------
I think for compatibility, we are stuck with this. Maybe we can close this out by adding a comments in the 0.94/0.92 code documenting this unexpected behavior?
> 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.92.2, 0.94.3
> 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