Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18767

WeakReferenceMap creation warning log doesn't format correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 3.3.5
    • None
    • fs

    Description

      WeakReferenceMap.create(K key) logs once at warning level if a reference to a key was lost during creation.

      referenceLostDuringCreation.warn("reference to %s lost during creation", key);
      

      but it uses %s as the insertion point for the key, when it should be {}.

      this means the log, if it ever surfaces, won't include the key.

      i don't think this is a very important issue, but it exists.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: