Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2327

Better handling of NoSuchMethodException in DfsLogger#open()

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: