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

Remove debug if branch in HdfsTransactionLog

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      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

          Activity

            People

            • Assignee:
              krisden Kevin Risden
              Reporter:
              songwang songwanging

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment