You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2019/02/26 20:37:33 UTC

[GitHub] reddycharan commented on a change in pull request #1957: Use the same thread to monitor ledger and index directories

reddycharan commented on a change in pull request #1957: Use the same thread to monitor ledger and index directories
URL: https://github.com/apache/bookkeeper/pull/1957#discussion_r260476209
 
 

 ##########
 File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Bookie.java
 ##########
 @@ -202,15 +198,12 @@ public static void checkDirectoryStructure(File dir) throws IOException {
                     BookKeeperConstants.VERSION_FILENAME);
 
             final AtomicBoolean oldDataExists = new AtomicBoolean(false);
-            parent.list(new FilenameFilter() {
-                    @Override
-                    public boolean accept(File dir, String name) {
-                        if (name.endsWith(".txn") || name.endsWith(".idx") || name.endsWith(".log")) {
-                            oldDataExists.set(true);
-                        }
-                        return true;
-                    }
-                });
+            parent.list((dir1, name) -> {
 
 Review comment:
   nit: is it necessary?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services