FAQ
Repository: hive
Updated Branches:
   refs/heads/branch-2.1 2e78f66a3 -> 28f206840


HIVE-13953: Issues in HiveLockObject equals method (Chaoyu Tang, reviewed by Yongzhi Chen)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/28f20684
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/28f20684
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/28f20684

Branch: refs/heads/branch-2.1
Commit: 28f206840bd5d03b522d44ae0b5a8b0e6c6d4557
Parents: 2e78f66
Author: ctang <ctang@cloudera.com>
Authored: Tue Jun 7 14:20:03 2016 -0400
Committer: ctang <ctang@cloudera.com>
Committed: Tue Jun 7 14:28:07 2016 -0400

----------------------------------------------------------------------
  .../org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java | 8 +++-----
  1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/28f20684/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
index d5ea083..82dc898 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
@@ -18,11 +18,10 @@

  package org.apache.hadoop.hive.ql.lockmgr;

-import java.util.Arrays;
  import java.util.Map;

+import org.apache.commons.lang.StringUtils;
  import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.hadoop.conf.Configuration;
  import org.apache.hadoop.hive.metastore.MetaStoreUtils;
  import org.apache.hadoop.hive.ql.metadata.DummyPartition;
  import org.apache.hadoop.hive.ql.metadata.Hive;
@@ -290,9 +289,8 @@ public class HiveLockObject {
      }

      HiveLockObject tgt = (HiveLockObject) o;
- return Arrays.equals(pathNames, tgt.pathNames) &&
- data == null ? tgt.getData() == null :
- tgt.getData() != null && data.equals(tgt.getData());
+ return StringUtils.equals(this.getName(), tgt.getName()) &&
+ (data == null ? tgt.getData() == null : data.equals(tgt.getData()));
    }

    @Override

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedJun 7, '16 at 6:20p
activeJun 7, '16 at 6:28p
posts2
users1
websitehive.apache.org

1 user in discussion

Ctang: 2 posts

People

Translate

site design / logo © 2021 Grokbase