Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
Currently NoSuchMethodException is ignored in the open method:
try { // hsync: send data to datanodes and sync the data to disk sync = logFile.getClass().getMethod("hsync"); e = null; } catch (NoSuchMethodException ex) {}
Since logFile.getClass() would be the same for one log file, we can use boolean field to indicate whether hsync is supported so that we don't call hsync again and again if hsync is not supported.
A log statement for NoSuchMethodException would be desirable too.