HeartSaVioR commented on a change in pull request #25811: [SPARK-29111][CORE] 
Support snapshot/restore on KVStore
URL: https://github.com/apache/spark/pull/25811#discussion_r324968499
 
 

 ##########
 File path: 
common/kvstore/src/test/java/org/apache/spark/util/kvstore/ArrayKeyIndexType.java
 ##########
 @@ -38,7 +38,6 @@ public boolean equals(Object o) {
 
   @Override
   public int hashCode() {
-    return key.hashCode();
+    return Arrays.hashCode(key);
 
 Review comment:
   This is fixing existing bug - without fixing this, comparison of both 
Sets/Maps which contain ArrayKeyIndexType as key would fail.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to