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

Commit

Permalink
Make Pulsar producer and schema volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
cdbartholomew committed Apr 1, 2024
1 parent 8b7b710 commit 5badc7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@ private class PulsarTopicProducer<K> implements TopicProducer {
private final Map<String, Object> configuration;
private final AtomicLong totalIn = new AtomicLong();
String topic;
Producer<K> producer;
Schema<K> schema;
volatile Producer<K> producer;
volatile Schema<K> schema;

private final Object lock = new Object();

Expand Down

0 comments on commit 5badc7e

Please sign in to comment.