Bookkeeper
  1. Bookkeeper
  2. BOOKKEEPER-234

EntryLogger will throw NPE, if any dir does not exist or IO Errors.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: bookkeeper-server
    • Labels:
      None

      Description

      I think, Entry log should check the exitance of directories, before going to get the last Log entries. Because, listFiles will retunr null on non existant directories or any IO Errors. We have to add the check for directory existnace check and null checks in side getLastLogID api in EntryLogger.

      We may need to handle in LedgerCacheImpl also.

      Do we need to add them in bad disks list? and others will refer this list before they use the dirs.

      1. BOOKKEEPER-234.patch
        3 kB
        Uma Maheswara Rao G
      2. BOOKKEEPER-234.patch
        2 kB
        Uma Maheswara Rao G

        Activity

          People

          • Assignee:
            Uma Maheswara Rao G
            Reporter:
            Uma Maheswara Rao G
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development