Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion gradle/spotbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ For a detailed description of spotbugs bug categories, see https://spotbugs.read
<Class name="org.apache.kafka.server.AssignmentsManager"/>
<Class name="org.apache.kafka.connect.file.FileStreamSourceTask"/>
<Class name="org.apache.kafka.streams.processor.internals.InternalTopologyBuilder"/>
<Class name="org.apache.kafka.streams.processor.internals.StreamsPartitionAssignor"/>
<Class name="org.apache.kafka.streams.processor.internals.StreamsProducer"/>
<Class name="org.apache.kafka.streams.processor.internals.TaskManager"/>
<Class name="org.apache.kafka.streams.state.internals.AbstractRocksDBSegmentedBytesStore"/>
Expand Down Expand Up @@ -638,6 +637,16 @@ For a detailed description of spotbugs bug categories, see https://spotbugs.read
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/>
</Match>

<Match>
<!-- KAFKA-20404: Both fields are accessed only from ConsumerPartitionAssignor callbacks (configure, subscriptionUserData, onAssignment) that the KafkaConsumer invokes from poll(); poll() in turn is driven by the StreamThread, so the read-modify-write happens on a single thread. -->
<Class name="org.apache.kafka.streams.processor.internals.StreamsPartitionAssignor"/>
<Or>
<Field name="uniqueField"/>
<Field name="usedSubscriptionMetadataVersion"/>
</Or>
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/>
</Match>

<Match>
<!-- New warning type added when we upgraded from spotbugs 4.8.6 to 4.9.4.
These are possibly real bugs, and have not been evaluated, they were just bulk excluded to unblock upgrading Spotbugs.
Expand Down
Loading