Skip to content
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

[Backport 2.x] Fix broken backward compatibility from 2.7 for IndexSorted field indices #10075

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport d34b352 from #10045.

…ces (#10045)

* Fix broken backward comparibility from 2.7 for IndexSorted field indices

Signed-off-by: gashutos <gashutos@amazon.com>

* Adding CHANGELOG

Signed-off-by: gashutos <gashutos@amazon.com>

* Update server/src/main/java/org/opensearch/index/IndexSettings.java

Co-authored-by: Andriy Redko <drreta@gmail.com>
Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com>

* Removing unwanted logs

Signed-off-by: gashutos <gashutos@amazon.com>

* Removing unwanted logs

Signed-off-by: gashutos <gashutos@amazon.com>

* Adding index sort as part of mixed cluster to test this scenario

Signed-off-by: gashutos <gashutos@amazon.com>

* Removing optimization disable logic

Signed-off-by: gashutos <gashutos@amazon.com>

* Correcting some comments & version check to before( V_2_7_0) instead onOrBefire(V_2_6_1) since

Signed-off-by: gashutos <gashutos@amazon.com>

* Resolving spotless check error

Signed-off-by: gashutos <gashutos@amazon.com>

* Fixing broken UT - last minute checkin without copile

Signed-off-by: gashutos <gashutos@amazon.com>

* Improving code coverage to make codcov happy

Signed-off-by: gashutos <gashutos@amazon.com>

* Correcting typos and adding more tests

Signed-off-by: gashutos <gashutos@amazon.com>

* Removing unwanted imports

Signed-off-by: gashutos <gashutos@amazon.com>

---------

Signed-off-by: gashutos <gashutos@amazon.com>
Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com>
Co-authored-by: Andriy Redko <drreta@gmail.com>
(cherry picked from commit d34b352)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 15, 2023

Compatibility status:

Checks if related components are compatible with change 53f4239

Incompatible components

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/performance-analyzer-rca.git]

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@gashutos
Copy link
Contributor

Unrelated failures, @reta @andrross can we re-trigger gradlew check ?

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@gashutos
Copy link
Contributor

This failure is related to my changes.
org.opensearch.backwards.IndexingIT.testUpdateSnapshotStatus
checking....

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@reta
Copy link
Collaborator

reta commented Sep 15, 2023

This failure is related to my changes. org.opensearch.backwards.IndexingIT.testUpdateSnapshotStatus checking....

@gashutos identified the issue with tests:

Caused by: org.opensearch.transport.RemoteTransportException: [v1.3.13-0][127.0.0.1:42995][internal:index/shard/recovery/prepare_translog]
»  Caused by: java.lang.IllegalArgumentException: cannot change previous indexSort=<sortednumeric: "sortfield"> missingValue=9223372036854775807 selector=MIN type=LONG (from segment=_0(8.10.1):c8:[indexSort=<sortednumeric: "sortfield"> missingValue=9223372036854775807 selector=MIN type=LONG]:[diagnostics={os=Linux, timestamp=1694806619341, java.version=11.0.20, java.vm.version=11.0.20+8, lucene.version=8.10.1, source=flush, os.arch=amd64, java.runtime.version=11.0.20+8, os.version=5.4.254-175.358.amzn2int.x86_64, java.vendor=Eclipse Adoptium}]:[attributes={Lucene87StoredFieldsFormat.mode=BEST_SPEED}] :id=23nyyfkvqif07m3kcpvp96m6m) to new indexSort=<sortednumeric: "sortfield"> missingValue=2147483647 selector=MIN type=INT

The fix is in progress

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@reta
Copy link
Collaborator

reta commented Sep 16, 2023

The fix is in progress

Cleared out

Signed-off-by: Gohel <gashutos@88665a2fc937.ant.amazon.com>
Co-authored-by: Gohel <gashutos@88665a2fc937.ant.amazon.com>
(cherry picked from commit d7aa6dd)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@reta reta force-pushed the backport/backport-10045-to-2.x branch from 53f4239 to 20b306d Compare September 16, 2023 15:27
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Sep 16, 2023

Codecov Report

Merging #10075 (20b306d) into 2.x (4c9042f) will decrease coverage by 0.23%.
Report is 6 commits behind head on 2.x.
The diff coverage is 68.42%.

@@             Coverage Diff              @@
##                2.x   #10075      +/-   ##
============================================
- Coverage     70.89%   70.67%   -0.23%     
+ Complexity    58291    58136     -155     
============================================
  Files          4810     4810              
  Lines        275140   275156      +16     
  Branches      40440    40442       +2     
============================================
- Hits         195074   194460     -614     
- Misses        63389    64069     +680     
+ Partials      16677    16627      -50     
Files Changed Coverage Δ
.../java/org/opensearch/common/collect/Iterators.java 75.00% <ø> (ø)
...n/java/org/opensearch/compress/ZstdCompressor.java 52.94% <ø> (-17.65%) ⬇️
...opensearch/core/common/breaker/CircuitBreaker.java 75.00% <ø> (ø)
.../core/common/breaker/CircuitBreakingException.java 89.28% <ø> (ø)
...search/core/common/breaker/NoopCircuitBreaker.java 61.53% <0.00%> (ø)
...earch/core/common/logging/LoggerMessageFormat.java 20.14% <ø> (ø)
...search/core/common/transport/TransportAddress.java 79.48% <ø> (ø)
.../org/opensearch/core/common/unit/ByteSizeUnit.java 80.00% <ø> (ø)
...g/opensearch/core/common/util/CollectionUtils.java 77.06% <ø> (ø)
...src/main/java/org/opensearch/core/index/Index.java 100.00% <ø> (ø)
... and 11 more

... and 486 files with indirect coverage changes

@reta reta merged commit 0e0cf0c into 2.x Sep 18, 2023
@github-actions github-actions bot deleted the backport/backport-10045-to-2.x branch September 18, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants