-
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
Shard id awareness of SearchLookup #1063
Shard id awareness of SearchLookup #1063
Conversation
✅ DCO Check Passed a2be8c04219d7b6aaa8ee0a4107bfee73d1b00a4 |
✅ Gradle Wrapper Validation success a2be8c04219d7b6aaa8ee0a4107bfee73d1b00a4 |
a2be8c0
to
3314a80
Compare
✅ DCO Check Passed 3314a8069f91480db129fac4e0f92507ca42a768 |
❌ Gradle Precommit failure a2be8c04219d7b6aaa8ee0a4107bfee73d1b00a4 |
✅ Gradle Wrapper Validation success 3314a8069f91480db129fac4e0f92507ca42a768 |
✅ Gradle Precommit success 3314a8069f91480db129fac4e0f92507ca42a768 |
Can one of the admins verify this patch? |
start gradle check |
❌ Gradle Check failure 3314a8069f91480db129fac4e0f92507ca42a768 |
✅ Gradle Wrapper Validation success 3314a8069f91480db129fac4e0f92507ca42a768 |
✅ DCO Check Passed 3314a8069f91480db129fac4e0f92507ca42a768 |
✅ Gradle Precommit success 3314a8069f91480db129fac4e0f92507ca42a768 |
@anti-social , can you look into the failure and resolve the conflict. |
3314a80
to
5c971a9
Compare
✅ Gradle Wrapper Validation success 5c971a9754d3cf3dbe4f9beecd66e7c8acf076fd |
✅ Gradle Precommit success 5c971a9754d3cf3dbe4f9beecd66e7c8acf076fd |
❌ Gradle Check failure 5c971a9754d3cf3dbe4f9beecd66e7c8acf076fd |
Think this test are not related to the changes:
Possibly checks should be retried. |
start gradle check |
✅ Gradle Check success 5c971a9754d3cf3dbe4f9beecd66e7c8acf076fd |
5c971a9
to
4254bab
Compare
✅ Gradle Wrapper Validation success 4254bab |
✅ Gradle Precommit success 4254bab |
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.
@anti-social Could you please explain what this is for? I imagine you want to pass in an actual shard ID sometimes, so it seems at least that this PR still needs tests for searches with a known shard ID. And maybe default the value to UNKNOWN_SHARD_ID in the public interfaces.
bce8154
to
1b55506
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1063 +/- ##
============================================
- Coverage 71.38% 71.37% -0.01%
- Complexity 59848 59891 +43
============================================
Files 4972 4972
Lines 281774 281781 +7
Branches 40910 40910
============================================
- Hits 201138 201116 -22
- Misses 63973 63999 +26
- Partials 16663 16666 +3 ☔ View full report in Codecov by Sentry. |
1b55506
to
caea317
Compare
I added a unit test for the deprecated constructor behavior, and made a cosmetic change to another unit test. @msfroh can you take a look and merge if it looks good to you? |
❌ Gradle check result for caea317: 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? |
caea317
to
e45ff9b
Compare
❌ Gradle check result for e45ff9b: 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? |
Signed-off-by: Alexander Koval <[email protected]>
Signed-off-by: Andrew Ross <[email protected]>
e45ff9b
to
49ddd28
Compare
❕ Gradle check result for 49ddd28: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
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-1063-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 87ac37460c16a5b3cfa1cd85cad2cb7468b430a3
# Push it to GitHub
git push --set-upstream origin backport/backport-1063-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 |
* Shard id awareness of SearchLookup Signed-off-by: Alexander Koval <[email protected]> * Add unit test for deprecated constructor Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Alexander Koval <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> (cherry picked from commit 87ac374)
* Shard id awareness of SearchLookup Signed-off-by: Alexander Koval <[email protected]> * Add unit test for deprecated constructor Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Alexander Koval <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> (cherry picked from commit 87ac374)
* Shard id awareness of SearchLookup Signed-off-by: Alexander Koval <[email protected]> * Add unit test for deprecated constructor Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Alexander Koval <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> (cherry picked from commit 87ac374) Co-authored-by: Alexander <[email protected]>
* Shard id awareness of SearchLookup Signed-off-by: Alexander Koval <[email protected]> * Add unit test for deprecated constructor Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Alexander Koval <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
* Shard id awareness of SearchLookup Signed-off-by: Alexander Koval <[email protected]> * Add unit test for deprecated constructor Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Alexander Koval <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Aman Khare <[email protected]>
* Shard id awareness of SearchLookup Signed-off-by: Alexander Koval <[email protected]> * Add unit test for deprecated constructor Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Alexander Koval <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
* Shard id awareness of SearchLookup Signed-off-by: Alexander Koval <[email protected]> * Add unit test for deprecated constructor Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Alexander Koval <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Signed-off-by: Oleksandr Koval [email protected]
Description
Add
shardId
field forSearchLookup
.Issues Resolved
#1062
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.