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 Deprecated SimpleFS #1639

Merged
merged 2 commits into from
Dec 3, 2021
Merged

Conversation

nknize
Copy link
Collaborator

@nknize nknize commented Dec 1, 2021

Lucene 9 removes support for SimpleFS File System format. This PR completely
removes SimpleFS support which was deprecated in a previous PR.

@nknize nknize added v2.0.0 Version 2.0.0 Storage:Durability Issues and PRs related to the durability framework labels Dec 1, 2021
@nknize nknize requested a review from a team as a code owner December 1, 2021 18:44
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 7077f98aa387e5c66168699bfce2f44557ef9fdd

@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

Lucene 9 removes support for SimpleFS File System format. This PR completely
removes SimpleFS support which was deprecated in a previous PR.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 6f1d95e

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 7077f98aa387e5c66168699bfce2f44557ef9fdd

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 811ddc2

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 6f1d95e

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 811ddc2

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 7077f98aa387e5c66168699bfce2f44557ef9fdd
Log 1283

Reports 1283

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 6f1d95e
Log 1284

Reports 1284

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 811ddc2
Log 1285

Reports 1285

@@ -104,15 +100,8 @@ protected Directory newFSDirectory(Path location, LockFactory lockFactory, Index
}
case MMAPFS:
return setPreload(new MMapDirectory(location, lockFactory), lockFactory, preLoadExtensions);
// simplefs was removed in Lucene 9; support for enum is maintained for bwc
case SIMPLEFS:
Copy link
Collaborator

@reta reta Dec 1, 2021

Choose a reason for hiding this comment

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

Should we throw the exception here that SIMPLEFS is not supported anymore? Or may be, to not break bwc, log a warning that SIMPLEFS is not supported, NIOFS will be used instead?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add an assert instead as an invariant?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not needed here since this is for bwc only.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The deprecation logging is already handled in MetadataUpdateSettingsService

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage:Durability Issues and PRs related to the durability framework v2.0.0 Version 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants