Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Conversation

Demogorgon314
Copy link
Member

Motivation

https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala#L190

The TxnTransitMetadata.topicPartitions should be immutable, otherwise it will cause race conditions.

Modifications

Make TxnTransitMetadata.topicPartitions immutable

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@Demogorgon314 Demogorgon314 self-assigned this May 30, 2023
@github-actions github-actions bot added the no-need-doc This pr does not need any document label May 30, 2023
eolivelli
eolivelli previously approved these changes May 30, 2023
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #1869 (b713162) into master (0d2ed74) will increase coverage by 0.05%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1869      +/-   ##
============================================
+ Coverage     18.72%   18.78%   +0.05%     
  Complexity      743      743              
============================================
  Files           184      184              
  Lines         13276    13285       +9     
  Branches       1208     1210       +2     
============================================
+ Hits           2486     2495       +9     
+ Misses        10611    10609       -2     
- Partials        179      181       +2     
Impacted Files Coverage Δ
...oordinator/transaction/TransactionCoordinator.java 0.00% <0.00%> (ø)
...p/coordinator/transaction/TransactionMetadata.java 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

@Demogorgon314 Demogorgon314 merged commit 328107e into streamnative:master May 31, 2023
4 of 5 checks passed
Demogorgon314 added a commit to Demogorgon314/starlight-for-kafka that referenced this pull request Jun 1, 2023
BewareMyPower pushed a commit that referenced this pull request Jun 14, 2023
…ble (#1869)

### Motivation

https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala#L190

The `TxnTransitMetadata.topicPartitions` should be immutable. Otherwise, it will cause race conditions.

### Modifications

Make `TxnTransitMetadata.topicPartitions` immutable

(cherry picked from commit 328107e)
BewareMyPower pushed a commit that referenced this pull request Jun 29, 2023
…ble (#1869)

### Motivation

https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala#L190

The `TxnTransitMetadata.topicPartitions` should be immutable. Otherwise, it will cause race conditions.

### Modifications

Make `TxnTransitMetadata.topicPartitions` immutable

(cherry picked from commit 328107e)
Demogorgon314 added a commit to Demogorgon314/kop that referenced this pull request Aug 14, 2023
…ble (streamnative#1869)

### Motivation

https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala#L190

The `TxnTransitMetadata.topicPartitions` should be immutable. Otherwise, it will cause race conditions.

### Modifications

Make `TxnTransitMetadata.topicPartitions` immutable

(cherry picked from commit 328107e)
Demogorgon314 added a commit to Demogorgon314/kop that referenced this pull request Nov 28, 2023
…ble (streamnative#1869)

### Motivation

https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala#L190

The `TxnTransitMetadata.topicPartitions` should be immutable. Otherwise, it will cause race conditions.

### Modifications

Make `TxnTransitMetadata.topicPartitions` immutable

(cherry picked from commit 328107e)
(cherry picked from commit 08772d4)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants