Fix race condition in KinesisMDCA.doStop()
https://build.spring.io/browse/INTEXT-AWS-158
This commit is contained in:
@@ -658,7 +658,6 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport i
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doStop() {
|
protected void doStop() {
|
||||||
this.active = false;
|
|
||||||
for (ConsumerInvoker consumerInvoker : this.consumerInvokers) {
|
for (ConsumerInvoker consumerInvoker : this.consumerInvokers) {
|
||||||
consumerInvoker.notifyBarrier();
|
consumerInvoker.notifyBarrier();
|
||||||
}
|
}
|
||||||
@@ -666,6 +665,7 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport i
|
|||||||
stopConsumers();
|
stopConsumers();
|
||||||
|
|
||||||
this.shardLocksMonitor.stop();
|
this.shardLocksMonitor.stop();
|
||||||
|
this.active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void stopConsumers() {
|
private void stopConsumers() {
|
||||||
|
|||||||
Reference in New Issue
Block a user