You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2020/09/05 10:30:00 UTC
[jira] [Resolved] (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:all-tabpanel ]
Duo Zhang resolved HBASE-7510.
------------------------------
Resolution: Won't Fix
0.92 and 0.94 are both EOL.
> 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
> Priority: Major
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)