-
Bug
-
Resolution: Done
-
Major
-
0.8.1.Final
-
None
Initial synchronization of MongoDb connector is not interrupted by stopping task:
io.debezium.connector.mongodb.Replicator.java
protected long copyCollection(MongoClient primary, CollectionId collectionId, long timestamp) throws InterruptedException { ... try (MongoCursor<Document> cursor = docCollection.find().iterator()) { while (cursor.hasNext()) { Document doc = cursor.next(); ... } } ... }
I suggest adding the following condition in the while loop:
while (running.get() && cursor.hasNext())
- relates to
-
DBZ-586 Snapshots are not interruptable with the Postgres connector
- Closed