You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
In the logs, we can see that a segment swap occurred before the issue happened. During this swap, the "log" segment was replaced with the "log.cleaned" segment, the latter of which used the problematic Stream-300979.
In the code, we can see that before trimming a stream, the minimum offset for each stream is calculated. Specifically, if a stream is not being used by any segment, it will be trimmed to the end.
However, when calculating the minimum offset, the inflightCleanedSegments (a member variable) and meta.getSegmentMetas() (a method parameter) do not represent the same view at the same point in time. This discrepancy can lead to the incorrect assumption that a stream is not being used by any segment.
The text was updated successfully, but these errors were encountered:
Version: 1.1.2-rc1
What's wrong:
What happened:
In the logs, we can see that a segment swap occurred before the issue happened. During this swap, the "log" segment was replaced with the "log.cleaned" segment, the latter of which used the problematic Stream-300979.
automq/core/src/main/scala/kafka/log/streamaspect/ElasticLogSegmentManager.java
Lines 100 to 118 in f2066cb
In the code, we can see that before trimming a stream, the minimum offset for each stream is calculated. Specifically, if a stream is not being used by any segment, it will be trimmed to the end.
However, when calculating the minimum offset, the
inflightCleanedSegments
(a member variable) andmeta.getSegmentMetas()
(a method parameter) do not represent the same view at the same point in time. This discrepancy can lead to the incorrect assumption that a stream is not being used by any segment.The text was updated successfully, but these errors were encountered: