Conversation
k-rus
left a comment
There was a problem hiding this comment.
I suggest to fix the patch so it follows existing code in the file and remove unnecessary code duplication.
I also suggest to provide a meaningful commit message. Note that the discussion in the ticket doesn't really help to understand this patch.
I hope you are also looking to add new API to tests.
Sure, I will update the commit message when squashing; I could perhaps describe the methods added:
Suggestions welcome. |
It is good together with the current PR subject. So it is clear that the commit adds new API functions for the serverless/AstraDB need. |
k-rus
left a comment
There was a problem hiding this comment.
LGTM
I have just two requests:
- Can you update PR message with the commit message to be used on squash?
- Can you update comments for new API functions, so they follow the documentation standard?
There was a problem hiding this comment.
I don't know if it is expected to always have a new line at the end of file or not. Here it is missing.
There was a problem hiding this comment.
My understanding is a new line is expected, so I will add it
There was a problem hiding this comment.
Should the comment follow the javadoc pattern as in all other methods as it is part of API?
There was a problem hiding this comment.
I am wonder if the reason for this check is an assumption that default file system stored in filesystem can be used in and is used in several API functions. If the file system is different from default, should the API functions not rely on the default? If I understood correctly, the default file system is used for getPath.
There was a problem hiding this comment.
This check prevents File being able to wrap a remote filesystem path; that is why the check is removed.
My checking of the uses of filesystem are:
- in constructors when a
Pathis not provided - in
pathSeparator(); this is potential issue, however all known filesystem implementations currently use the same separator value (/) - in
toPath()only whenpathisnull
There is also some comment about this in the jira.
There was a problem hiding this comment.
Apache Cassandra requires to specify each imported package explicitly, but it is not forced yet.
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name
|
Kudos, SonarCloud Quality Gate passed! |
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB (Rebase of commit a3c3f18)
Add methods to PathUtils: * deleteContent method that recursively deletes the contents of a directory, leaving the directory empty; * listPaths methods to list all the paths in a directory, optionally using a provided filter. Add method to Descriptor: * validFilenameWithComponent to return the Component from an sstable file name (cherry picked from commit 4f1c86b) (cherry picked from commit ef840e5) (cherry picked from commit dc75ab6) (cherry picked from commit a5a4794) (cherry picked from commit 1570f19) STAR-933 Fix PathUtilsTest with initialization of DatabaseDescriptor STAR-933 Add Descriptor.validFilenameWithComponent expected by CNDB (Rebase of commit a3c3f18)








No description provided.