Skip to content

Commit

Permalink
Array, passed to Objects.hash() should be wrapped into Arrays.hashCode()
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
  • Loading branch information
dk2k committed Aug 23, 2024
1 parent abb1041 commit 9abc6d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public boolean equals(final Object o) {

@Override
public int hashCode() {
return Objects.hash(trimAboveSeqNo, maxSeenAutoIdTimestampOnPrimary, operations);
return Objects.hash(trimAboveSeqNo, maxSeenAutoIdTimestampOnPrimary, Arrays.hashCode(operations));

Check warning on line 106 in server/src/main/java/org/opensearch/action/resync/ResyncReplicationRequest.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/action/resync/ResyncReplicationRequest.java#L106

Added line #L106 was not covered by tests
}

@Override
Expand Down

0 comments on commit 9abc6d8

Please sign in to comment.