Skip to content

Commit

Permalink
fix: Added UUID name for keys source task reader
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Oct 31, 2024
1 parent 2674632 commit d0f63d2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.errors.ConnectException;
Expand Down Expand Up @@ -77,6 +78,8 @@ public void start(Map<String, String> props) {
this.batchSize = Math.toIntExact(config.getBatchSize());
this.client = config.client();
reader = RedisItemReader.struct();
// Use a random job name to not interfere with other key source tasks
reader.setName(UUID.randomUUID().toString());
reader.setClient(client);
reader.setMode(ReaderMode.LIVE);
reader.setPoolSize(config.getPoolSize());
Expand Down

0 comments on commit d0f63d2

Please sign in to comment.