You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/05/22 00:20:02 UTC

[GitHub] [kafka] kowshik edited a comment on pull request #10650: KAFKA-12763 NoSuchElementException during checkpointLogStartOffsets

kowshik edited a comment on pull request #10650:
URL: https://github.com/apache/kafka/pull/10650#issuecomment-846318535


   @soarez The `Log.loadSegments()` call happens in `Log` [constructor](https://github.com/apache/kafka/blob/2.6/core/src/main/scala/kafka/log/Log.scala#L287). I'm curious how would the `segments.clear()` call from there race with the `kafka-log-start-offset-checkpoint` periodic work, because the periodic work can't see the `Log` instance until it is [instantiated](https://github.com/apache/kafka/blob/2.6/core/src/main/scala/kafka/log/LogManager.scala#L769-L784) and made discoverable by adding to `LogManager.currentLogs` and `LogManager.futureLogs`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org