Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
SOLR-16903: Migrate off java.io.File to java.nio.file.Path from core files #2924
SOLR-16903: Migrate off java.io.File to java.nio.file.Path from core files #2924
Changes from 8 commits
6cc27d7
bc2db00
4c01109
f17b809
36d0b92
374a4a1
63fb99d
fb4daf3
5f8abae
679fb29
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
really minor but I think dataDirPath is a better name
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.
why the change from logical AND to OR?
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.
I mentioned it in this comment here
This was done because I changed
openResource
inside ofSolrResourceLoader
to use this assert method instead of it checking.startsWith("\\\\")
. I am assuming from the name its asserting that it is not a UNC path, not necessarily just because of the OS being used but probably isn't right. I would need to see why it was an AND in the history. Maybe this should be calledassertNotUNCorWindowsOS
or just make a different assert just checking that.startsWith("\\\\")
...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.
but OR means that this would consistently fail on Windows even if the path isn't UNC
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.
Thats true but currently the assertion is skipped on non-windows even if the path is a UNC path because of the AND when I thought this function was to only check UNC but maybe that was for a reason.
I'm going to revert this and revert
openResource
back to its original assertion.