hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject [1/2] hive git commit: HIVE-13105 : LLAP token hashCode and equals methods are incorrect (Sergey Shelukin, reviewed by Prasanth Jayachandran)
Date Mon, 22 Feb 2016 21:52:26 GMT
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 <sershe@apache.org>
Authored: Mon Feb 22 13:50:20 2016 -0800
Committer: Sergey Shelukhin <sershe@apache.org>
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


Mime
View raw message