GH-146 log sequenceNumber when consumer starts
This commit is contained in:
committed by
Artem Bilan
parent
83a588c5ab
commit
e6e2465846
@@ -825,9 +825,6 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport i
|
||||
case EXPIRED:
|
||||
this.task = () -> {
|
||||
try {
|
||||
if (logger.isInfoEnabled() && this.state == ConsumerState.NEW) {
|
||||
logger.info("The [" + this + "] has been started.");
|
||||
}
|
||||
if (this.shardOffset.isReset()) {
|
||||
this.checkpointer.remove();
|
||||
}
|
||||
@@ -838,7 +835,9 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport i
|
||||
this.shardOffset.setIteratorType(ShardIteratorType.AFTER_SEQUENCE_NUMBER);
|
||||
}
|
||||
}
|
||||
|
||||
if (logger.isInfoEnabled() && this.state == ConsumerState.NEW) {
|
||||
logger.info("The [" + this + "] has been started.");
|
||||
}
|
||||
GetShardIteratorRequest shardIteratorRequest = this.shardOffset.toShardIteratorRequest();
|
||||
this.shardIterator =
|
||||
KinesisMessageDrivenChannelAdapter.this.amazonKinesis
|
||||
|
||||
Reference in New Issue
Block a user