Repository: hive Updated Branches: refs/heads/branch-2.0 b932456fc -> 74c2f0661 refs/heads/master c659b2026 -> a4d207f4e
HIVE-13105 : LLAP token hashCode and equals methods are incorrect (Sergey Shelukin, reviewed by Prasanth Jayachandran) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/74c2f066 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/74c2f066 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/74c2f066 Branch: refs/heads/branch-2.0 Commit: 74c2f0661191a676c631724187a1391550e00e03 Parents: b932456 Author: Sergey Shelukhin <[email protected]> Authored: Mon Feb 22 13:50:20 2016 -0800 Committer: Sergey Shelukhin <[email protected]> Committed: Mon Feb 22 13:51:49 2016 -0800 ---------------------------------------------------------------------- .../apache/hadoop/hive/llap/security/LlapTokenIdentifier.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/74c2f066/llap-common/src/java/org/apache/hadoop/hive/llap/security/LlapTokenIdentifier.java ---------------------------------------------------------------------- diff --git a/llap-common/src/java/org/apache/hadoop/hive/llap/security/LlapTokenIdentifier.java b/llap-common/src/java/org/apache/hadoop/hive/llap/security/LlapTokenIdentifier.java index f0bb495..c4bee75 100644 --- a/llap-common/src/java/org/apache/hadoop/hive/llap/security/LlapTokenIdentifier.java +++ b/llap-common/src/java/org/apache/hadoop/hive/llap/security/LlapTokenIdentifier.java @@ -59,12 +59,14 @@ public class LlapTokenIdentifier extends AbstractDelegationTokenIdentifier { @Override public int hashCode() { - return -1; + // Nothing else right now. + return super.hashCode(); } @Override public boolean equals(Object other) { - return (other != null) && other.getClass().isAssignableFrom(this.getClass()); + // Nothing else right now. + return super.equals(other); } @Override
