-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix array hashCode calculation in ResyncReplicationRequest #16378
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM (see also review on previous PR).
Will let CI finish and another maintainer review before merging.
❌ Gradle check result for 926e186: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
I think rebase failed again |
❌ Gradle check result for a2772d0: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Race condition. :) In this particular edge case, I merged a PR in between your rebase and pushing your PR. I just reverted the disk usage PR so that line is no longer in the changelog and the Bootstrap file changes aren't there either. Normally this wouldn't be a problem, but since the commit with the changelog issue is adjacent to your changelog entry the merge conflict prevents GitHub from automatically resolving it. I recognize it's frustrating and there's an open issue #15149 discussing improving how we handle the changelog. |
…de(). Added unit test Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
a2772d0
to
fa9e422
Compare
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
fa9e422
to
ec72491
Compare
❌ Gradle check result for ec72491: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for ec72491: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16378 +/- ##
============================================
- Coverage 72.07% 72.06% -0.01%
- Complexity 64819 64821 +2
============================================
Files 5307 5307
Lines 302718 302722 +4
Branches 43734 43735 +1
============================================
- Hits 218178 218169 -9
+ Misses 66638 66621 -17
- Partials 17902 17932 +30 ☔ View full report in Codecov by Sentry. |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-16378-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0f7d572da1d2dec4c2b83c6ae2c9e47ce38edd00
# Push it to GitHub
git push --set-upstream origin backport/backport-16378-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
…h-project#16378) * Array, passed to Objects.hash(), should be wrapped into Arrays.hashCode(). Added unit test Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Updated CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…h-project#16378) * Array, passed to Objects.hash(), should be wrapped into Arrays.hashCode(). Added unit test Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Updated CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…h-project#16378) * Array, passed to Objects.hash(), should be wrapped into Arrays.hashCode(). Added unit test Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Updated CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…16389) * Array, passed to Objects.hash(), should be wrapped into Arrays.hashCode(). Added unit test * Updated CHANGELOG.md --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> Co-authored-by: Dmitry Kryukov <dk2k@ya.ru>
…de(). Added unit test
Previous reincarnation of this PR #15383