Skip to content

Commit

Permalink
Avoid race conditions while create the same topic multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
faderskd committed Apr 7, 2023
1 parent f0c338e commit fdc8464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void execute(DatacenterBoundRepositoryHolder<TopicRepository> holder) {
public void rollback(DatacenterBoundRepositoryHolder<TopicRepository> holder) {
/*
We don't want to do a rollback due to possible race conditions with creating a topic on Kafka.
It increases the possibility of discrepancies between Kafka and Zookeeper: topic exists in Kafka,
It increases the probability of discrepancies between Kafka and Zookeeper: topic exists in Kafka,
but not in the Zookeeper and vice versa.
*/
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void execute(DatacenterBoundRepositoryHolder<TopicRepository> holder) {
public void rollback(DatacenterBoundRepositoryHolder<TopicRepository> holder) {
/*
We don't want to do a rollback due to possible race conditions with creating a topic on Kafka.
It increases the possibility of discrepancies between Kafka and Zookeeper: topic exists in Kafka,
It increases the probability of discrepancies between Kafka and Zookeeper: topic exists in Kafka,
but not in the Zookeeper and vice versa.
*/
}
Expand Down

0 comments on commit fdc8464

Please sign in to comment.