zentol commented on a change in pull request #18692:
URL: https://github.com/apache/flink/pull/18692#discussion_r805896966
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/highavailability/FileSystemJobResultStore.java
##########
@@ -52,7 +52,18 @@
*/
public class FileSystemJobResultStore extends AbstractThreadsafeJobResultStore
{
- private static final String DIRTY_SUFFIX = "_DIRTY";
+ @VisibleForTesting static final String FILE_EXTENSION = ".json";
+ @VisibleForTesting static final String DIRTY_FILE_EXTENSION = "_DIRTY" +
FILE_EXTENSION;
+
+ @VisibleForTesting
+ public static boolean hasValidDirtyJobResultStoreEntryExtension(String
filename) {
+ return filename.endsWith(DIRTY_FILE_EXTENSION);
+ }
+
+ @VisibleForTesting
+ public static boolean hasValidJobResultStoreEntryExtension(String
filename) {
+ return filename.endsWith(FILE_EXTENSION);
Review comment:
Do we need both the constants and methods to be visible?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]