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

Remove --enable-preview feature flag since Apache Lucene now patches class files #5642

Merged
merged 1 commit into from
Dec 28, 2022

Conversation

reta
Copy link
Collaborator

@reta reta commented Dec 27, 2022

Signed-off-by: Andriy Redko [email protected]

Description

This is follow up on [2] to remove --enable-preview feature flag since the latest Apache Lucene 9.5 now patches class files directly [1] to circumvent preview flag requirements.

....
[2022-12-27T10:05:35,253][INFO ][o.o.p.PluginsService     ] [...] no plugins loaded
[2022-12-27T10:05:35,278][INFO ][o.a.l.s.MemorySegmentIndexInputProvider] [...] Using MemorySegmentIndexInput with Java 19
[2022-12-27T10:05:35,284][INFO ][o.o.e.NodeEnvironment    ] [...] using [1] data paths, mounts [[/ (/dev/mapper/vgubuntu-root)]
...

No backport needed, this is Apache Lucene 9.5 feature

[1] https://github.com/apache/lucene/pull/12033/files
[2] #4637

Issues Resolved

Follow up on #4637

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@reta reta force-pushed the remove.preview.flag branch from bb221b7 to 569dea7 Compare December 27, 2022 15:16
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2022

Codecov Report

Merging #5642 (569dea7) into main (ea1cc9d) will decrease coverage by 0.15%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #5642      +/-   ##
============================================
- Coverage     71.02%   70.86%   -0.16%     
+ Complexity    58574    58534      -40     
============================================
  Files          4759     4759              
  Lines        279476   279476              
  Branches      40345    40345              
============================================
- Hits         198484   198039     -445     
- Misses        64883    65238     +355     
- Partials      16109    16199      +90     
Impacted Files Coverage Δ
...index/translog/transfer/FileTransferException.java 0.00% <0.00%> (-100.00%) ⬇️
.../java/org/opensearch/node/NodeClosedException.java 50.00% <0.00%> (-50.00%) ⬇️
...ava/org/opensearch/action/NoSuchNodeException.java 0.00% <0.00%> (-50.00%) ⬇️
...cluster/coordination/PendingClusterStateStats.java 20.00% <0.00%> (-48.00%) ⬇️
.../org/opensearch/client/indices/AnalyzeRequest.java 31.00% <0.00%> (-45.00%) ⬇️
.../opensearch/client/indices/CloseIndexResponse.java 42.50% <0.00%> (-40.00%) ⬇️
...opensearch/index/reindex/BulkByScrollResponse.java 48.38% <0.00%> (-38.71%) ⬇️
...regations/metrics/AbstractHyperLogLogPlusPlus.java 51.72% <0.00%> (-37.94%) ⬇️
...cluster/coordination/PublishClusterStateStats.java 33.33% <0.00%> (-37.51%) ⬇️
...ensearch/client/indices/DetailAnalyzeResponse.java 20.54% <0.00%> (-34.25%) ⬇️
... and 522 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Copy link
Member

@saratvemulapalli saratvemulapalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @reta for the change.

@saratvemulapalli saratvemulapalli merged commit a24e962 into opensearch-project:main Dec 28, 2022
@@ -61,6 +61,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Changed http code on create index API with bad input raising NotXContentException from 500 to 400 ([#4773](https://github.com/opensearch-project/OpenSearch/pull/4773))
- Change http code for DecommissioningFailedException from 500 to 400 ([#5283](https://github.com/opensearch-project/OpenSearch/pull/5283))
- Pre conditions check before updating weighted routing metadata ([#4955](https://github.com/opensearch-project/OpenSearch/pull/4955))
- Remove --enable-preview feature flag since Apache Lucene now patches class files ([#5642](https://github.com/opensearch-project/OpenSearch/pull/5642))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the above changelog entry "Allow mmap to use new JDK-19 preview APIs" was never included a release, should the net result be the removal of that line and no new line here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think we could remove that, will take care of the changelog, thanks @andrross

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.

4 participants