-
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
Remove Deprecated SimpleFS #1639
Conversation
✅ Gradle Wrapper Validation success 7077f98aa387e5c66168699bfce2f44557ef9fdd |
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>
7077f98
to
6f1d95e
Compare
✅ Gradle Wrapper Validation success 6f1d95e |
✅ Gradle Precommit success 7077f98aa387e5c66168699bfce2f44557ef9fdd |
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
✅ Gradle Wrapper Validation success 811ddc2 |
✅ Gradle Precommit success 6f1d95e |
✅ Gradle Precommit success 811ddc2 |
❌ Gradle Check failure 7077f98aa387e5c66168699bfce2f44557ef9fdd |
@@ -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: |
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.
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?
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.
Maybe add an assert
instead as an invariant?
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.
It's not needed here since this is for bwc only.
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.
The deprecation logging is already handled in MetadataUpdateSettingsService
Lucene 9 removes support for SimpleFS File System format. This PR completely
removes SimpleFS support which was deprecated in a previous PR.