Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14537

Journaled Edits Cache is not cleared when formatting the JN

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      private final JournaledEditsCache cache;
      

      When formatting the journal node, not clearing the cache value. 

      void format(NamespaceInfo nsInfo, boolean force) throws IOException {
          Preconditions.checkState(nsInfo.getNamespaceID() != 0,
              "can't format with uninitialized namespace info: %s",
              nsInfo);
          LOG.info("Formatting journal id : " + journalId + " with namespace info: " +
              nsInfo + " and force: " + force);
          storage.format(nsInfo, force);
          refreshCachedData();
        }
      

        Attachments

        1. HDFS-14537.001.patch
          2 kB
          Ranith Sardar
        2. HDFS-14537.002.patch
          2 kB
          Ranith Sardar

          Issue Links

            Activity

              People

              • Assignee:
                RANith Ranith Sardar
                Reporter:
                RANith Ranith Sardar
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: