LuciferYang commented on code in PR #44327:
URL: https://github.com/apache/spark/pull/44327#discussion_r1424880029


##########
common/network-common/src/main/java/org/apache/spark/network/util/LevelDBProvider.java:
##########
@@ -80,7 +80,12 @@ public static DB initLevelDB(File dbFile, StoreVersion 
version, ObjectMapper map
         }
       }
       // if there is a version mismatch, we throw an exception, which means 
the service is unusable
-      checkVersion(tmpDb, version, mapper);
+      try {
+        checkVersion(tmpDb, version, mapper);
+      } catch (IOException ioe) {

Review Comment:
   
https://github.com/apache/spark/blob/83434af22284482d4e805d8be625f733b074928b/common/network-common/src/main/java/org/apache/spark/network/util/LevelDBProvider.java#L110-L111
   
   For LevelDB, it will only throw IOException.



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to