Cancel KinesisMDChA.shCMFuture after active=false

It's misleading to see an error for interrupted `KinesisMessageDrivenChannelAdapter.ShardConsumerManager`
on shutdown.

* Move `this.shardConsumerManagerFuture.cancel(true)` in the `doStop()` after `this.active = false;`
This commit is contained in:
Anton Barkan
2022-04-28 18:04:23 +03:00
committed by GitHub
parent d818175db0
commit f771f924b5

View File

@@ -776,8 +776,8 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport
super.doStop();
stopConsumers();
this.shardConsumerManagerFuture.cancel(true);
this.active = false;
this.shardConsumerManagerFuture.cancel(true);
}
private void stopConsumers() {