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

The logPrefix of RemoteLogReader/RemoteStorageThreadPool is not propagated correctly

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

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      RemoteLogReader [0] and RemoteStorageThreadPool [1] override the method `logPrefix` instead of passing to constructor. However, `LogContext` does not use the method `logPrefix` to set the prefix inner. That means the override method is no-op and the expected prefix is never propagated.
      [0] https://github.com/apache/kafka/blob/66655ab49a9401a62e1e99e637e0c5bd5a1ba550/core/src/main/java/kafka/log/remote/RemoteLogReader.java#L59
      [1] https://github.com/apache/kafka/blob/66655ab49a9401a62e1e99e637e0c5bd5a1ba550/storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteStorageThreadPool.java#L49

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            brandboat Kuan Po Tseng
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment