Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3762

Log.loadSegments() should log the message in exception

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.0
    • Fix Version/s: 0.10.1.0
    • Component/s: core
    • Labels:

      Description

      In Log.loadSegments(), we have the following code. It would be useful to log the error message in IllegalArgumentException.

      if(indexFile.exists()) {
      try

      { segment.index.sanityCheck() }

      catch

      { case e: java.lang.IllegalArgumentException => warn("Found a corrupted index file, %s, deleting and rebuilding index...".format(indexFile.getAbsolutePath)) indexFile.delete() segment.recover(config.maxMessageSize) }

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                imandhan Ishita Mandhan
                Reporter:
                junrao Jun Rao
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: