-
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
IGNITE-9433 Extracted zip suffix constant #4652
Conversation
@EdShangGG could you please review |
@@ -77,6 +77,8 @@ | |||
/** File suffix. */ | |||
public static final String FILE_SUFFIX = ".bin"; | |||
|
|||
public static final String ZIP_SUFFIX = ".zip"; |
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.
Can you add javadoc to variable.
@@ -121,7 +122,7 @@ public String getAbsolutePath() { | |||
|
|||
/** {@inheritDoc} */ | |||
@Override public boolean isCompressed() { | |||
return file.getName().endsWith(".zip"); | |||
return file.getName().endsWith(FilePageStoreManager.ZIP_SUFFIX); |
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 better use static import?
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.
whyfor? i don't think this is readable, except for tests
@@ -2104,9 +2105,9 @@ private void deleteObsoleteRawSegments() { | |||
if (currReservedSegment == -1) | |||
continue; | |||
|
|||
File tmpZip = new File(walArchiveDir, FileDescriptor.fileName(currReservedSegment) + ".zip" + ".tmp"); | |||
File tmpZip = new File(walArchiveDir, FileDescriptor.fileName(currReservedSegment) + FilePageStoreManager.ZIP_SUFFIX + ".tmp"); |
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.
Can you extract ".tmp" too
…he#4652. Signed-off-by: Dmitriy Govorukhin <dmitriy.govorukhin@gmail.com>
…he#4652. Signed-off-by: Dmitriy Govorukhin <dmitriy.govorukhin@gmail.com>
https://ci.ignite.apache.org/viewLog.html?buildId=1760367&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_RunAll