PHOENIX-4514 A incorrect key object is used in SequenceManager#validateSequences (Chia-Ping Tsai)
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/3d6ef852 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/3d6ef852 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/3d6ef852 Branch: refs/heads/5.x-HBase-2.0 Commit: 3d6ef8525320479801e8e2ce842668a8acb7bd35 Parents: 28723c5 Author: James Taylor <jtay...@salesforce.com> Authored: Thu Jan 11 15:13:09 2018 -0800 Committer: James Taylor <jtay...@salesforce.com> Committed: Thu Jan 11 15:27:26 2018 -0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/phoenix/compile/SequenceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/3d6ef852/phoenix-core/src/main/java/org/apache/phoenix/compile/SequenceManager.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/compile/SequenceManager.java b/phoenix-core/src/main/java/org/apache/phoenix/compile/SequenceManager.java index 4159be1..c3f047b 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/compile/SequenceManager.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/SequenceManager.java @@ -211,7 +211,7 @@ public class SequenceManager { // Create reverse indexes for (int i = 0; i < nextSequences.size(); i++) { - sequencePosition[i] = sequenceMap.get(nextSequences.get(i)).getIndex(); + sequencePosition[i] = sequenceMap.get(nextSequences.get(i).getSequenceKey()).getIndex(); } int offset = nextSequences.size(); for (int i = 0; i < currentSequences.size(); i++) {