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

[bugfix] Fix NPE in PendingTopicFutures and fix KafkaMessageOrderTestBase #1722

Merged

Conversation

eolivelli
Copy link
Contributor

@eolivelli eolivelli commented Feb 8, 2023

Fixes #1629

This is a backport of this patch in S4K (Starlight for Kafka)
datastax/starlight-for-kafka#58

Motivation

There is a race condition when two threads try to access the same topic.

Modifications

Fix the handling of concurrency in PendingTopicFutures.
Fix the KafkaMessageOrderTestBase

Verifying this change

This change is already covered by existing tests and added new tests

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)

@github-actions github-actions bot added the no-need-doc This pr does not need any document label Feb 8, 2023
@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #1722 (bf8c1c9) into master (41ed8f1) will increase coverage by 0.01%.
The diff coverage is 91.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1722      +/-   ##
============================================
+ Coverage     15.75%   15.76%   +0.01%     
- Complexity      612      613       +1     
============================================
  Files           164      164              
  Lines         12262    12265       +3     
  Branches       1124     1124              
============================================
+ Hits           1932     1934       +2     
- Misses        10171    10172       +1     
  Partials        159      159              
Impacted Files Coverage Δ
...ative/pulsar/handlers/kop/PendingTopicFutures.java 72.22% <91.66%> (-4.25%) ⬇️
...pulsar/handlers/kop/utils/timer/TimerTaskList.java 78.31% <0.00%> (+2.40%) ⬆️

@BewareMyPower BewareMyPower merged commit 2386e8b into streamnative:master Feb 13, 2023
Demogorgon314 pushed a commit that referenced this pull request Feb 14, 2023
…Base (#1722)

Fixes #1629

This is a backport of this patch in S4K (Starlight for Kafka)
datastax/starlight-for-kafka#58

### Motivation

There is a race condition when two threads try to access the same topic.

### Modifications

Fix the handling of concurrency in PendingTopicFutures.
Fix the KafkaMessageOrderTestBase

(cherry picked from commit 2386e8b)
Demogorgon314 pushed a commit that referenced this pull request Feb 22, 2023
…Base (#1722)

Fixes #1629

This is a backport of this patch in S4K (Starlight for Kafka)
datastax/starlight-for-kafka#58

### Motivation

There is a race condition when two threads try to access the same topic.

### Modifications

Fix the handling of concurrency in PendingTopicFutures.
Fix the KafkaMessageOrderTestBase

(cherry picked from commit 2386e8b)
Demogorgon314 pushed a commit that referenced this pull request Feb 27, 2023
…Base (#1722)

Fixes #1629

This is a backport of this patch in S4K (Starlight for Kafka)
datastax/starlight-for-kafka#58

### Motivation

There is a race condition when two threads try to access the same topic.

### Modifications

Fix the handling of concurrency in PendingTopicFutures.
Fix the KafkaMessageOrderTestBase

(cherry picked from commit 2386e8b)
eolivelli added a commit to eolivelli/kop that referenced this pull request Feb 28, 2023
…Base (streamnative#1722)

Fixes streamnative#1629 

This is a backport of this patch in S4K (Starlight for Kafka)
datastax/starlight-for-kafka#58 

### Motivation

There is a race condition when two threads try to access the same topic.

### Modifications

Fix the handling of concurrency in PendingTopicFutures.
Fix the KafkaMessageOrderTestBase
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.

[BUG] NullPointerException in PendingTopicFutures.addListener
3 participants