Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8033

Remove debug if branch in HdfsTransactionLog

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.0, 5.1
    • 8.1, 9.0
    • Hadoop Integration, hdfs

    Description

      In method HdfsTransactionLog() of class HdfsTransactionLog (solr\core\src\java\org\apache\solr\update\HdfsTransactionLog.java)

      The if branch presented in the following code snippet performs no actions, we should add more code to handle this or directly delete this if branch.

      HdfsTransactionLog(FileSystem fs, Path tlogFile, Collection<String> globalStrings, boolean openExisting) {
      ...
      try {
      if (debug)

      { //log.debug("New TransactionLog file=" + tlogFile + ", exists=" + tlogFile.exists() + ", size=" + tlogFile.length() + ", openExisting=" + openExisting); }

      ...
      }

      Attachments

        1. SOLR-8033.patch
          1 kB
          Kevin Risden

        Activity

          People

            krisden Kevin Risden
            songwang songwanging
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: