-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kafka concurrent access #1282
Merged
bbortt
merged 2 commits into
citrusframework:main
from
postfinance:fix/#1281-kafka-concurrent-access
Jan 9, 2025
Merged
kafka concurrent access #1282
bbortt
merged 2 commits into
citrusframework:main
from
postfinance:fix/#1281-kafka-concurrent-access
Jan 9, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbortt
force-pushed
the
fix/#1281-kafka-concurrent-access
branch
from
December 17, 2024 18:31
5c41054
to
1c3db3d
Compare
bbortt
requested review from
tschlat and
christophd
and removed request for
tschlat
December 17, 2024 18:34
ah yea, that makes sense 💃🏼 my clicking is way too fast for GitHub. |
bbortt
force-pushed
the
fix/#1281-kafka-concurrent-access
branch
from
December 17, 2024 18:38
1c3db3d
to
de66a59
Compare
bbortt
added
State: Review
If pull-request has been opened an is ready/in review
and removed
State: WIP
labels
Dec 17, 2024
bbortt
force-pushed
the
fix/#1281-kafka-concurrent-access
branch
from
December 18, 2024 08:32
de66a59
to
bf69def
Compare
tschlat
requested changes
Jan 6, 2025
endpoints/citrus-kafka/src/main/java/org/citrusframework/kafka/endpoint/KafkaConsumer.java
Outdated
Show resolved
Hide resolved
endpoints/citrus-kafka/src/main/java/org/citrusframework/kafka/endpoint/KafkaConsumer.java
Outdated
Show resolved
Hide resolved
endpoints/citrus-kafka/src/main/java/org/citrusframework/kafka/endpoint/KafkaConsumer.java
Outdated
Show resolved
Hide resolved
endpoints/citrus-kafka/src/main/java/org/citrusframework/kafka/endpoint/KafkaConsumer.java
Outdated
Show resolved
Hide resolved
endpoints/citrus-kafka/src/main/java/org/citrusframework/kafka/endpoint/KafkaConsumer.java
Outdated
Show resolved
Hide resolved
bbortt
force-pushed
the
fix/#1281-kafka-concurrent-access
branch
3 times, most recently
from
January 8, 2025 10:36
39f687b
to
aa1566a
Compare
@tschlat I've now added a flag |
christophd
approved these changes
Jan 8, 2025
…a consumer added a reproducer for citrusframework#1281. indeed the test which is part of the `KafkaEndpointJavaIT` throws: ```shell java.util.ConcurrentModificationException: KafkaConsumer is not safe for multi-threaded access. currentThread(name: Thread-1, id: 124) otherThread(id: 125) ```
…tion The `org.apache.kafka.clients.consumer.KafkaConsumer<K,V>` is **not thread-safe**. When using selective message consumption, it is recommended to configure `useThreadSafeConsumer` respectively `thread-safe-consumer` for the Kafka endpoint. Otherwise, you will experience errors when executing tests in parallel.
bbortt
force-pushed
the
fix/#1281-kafka-concurrent-access
branch
from
January 9, 2025 06:41
aa1566a
to
8744ddd
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #1281.