Accumulo
  1. Accumulo
  2. ACCUMULO-2327

Better handling of NoSuchMethodException in DfsLogger#open()

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development