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

Journaled Edits Cache is not cleared when formatting the JN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: