Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12732

Log messages in FileLink$FileLinkInputStream#tryOpen are reversed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0.0, 0.98.10, 1.1.0
    • None
    • None
    • Reviewed

    Description

      The log message in `tryOpen` is reversed:

                  if (currentPath != null) {
                    LOG.debug("link open path=" + path);
                  } else {
                    LOG.trace("link switch from path=" + currentPath + " to path=" + path);
                  }
      

      By reading the logic, we can see that when switching paths (currentPath != null) it will log that it opened a path, and when opening a path, it will print that it switched from path=null to the new path.

      Attachments

        1. HBASE-12737.patch
          0.8 kB
          Tobi Knaup

        Activity

          People

            Unassigned Unassigned
            Tobi19 Tobi Vollebregt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: