Upgrade dependencies; prepare for release

This commit is contained in:
Artem Bilan
2019-12-26 14:14:30 -05:00
parent 3a64f35162
commit 112da0085c
3 changed files with 11 additions and 9 deletions

View File

@@ -30,9 +30,9 @@ ext {
junitVersion = '5.5.2'
servletApiVersion = '4.0.1'
localstackVersion = '0.1.22'
log4jVersion = '2.12.1'
springCloudAwsVersion = '2.2.0.RELEASE'
springIntegrationVersion = '5.2.1.RELEASE'
log4jVersion = '2.13.0'
springCloudAwsVersion = '2.2.1.RELEASE'
springIntegrationVersion = '5.2.2.RELEASE'
kinesisClientVersion = '1.13.0'
kinesisProducerVersion = '0.14.0'
@@ -95,7 +95,7 @@ jacoco {
checkstyle {
configFile = file("${rootDir}/src/checkstyle/checkstyle.xml")
toolVersion = '8.26'
toolVersion = '8.27'
}
dependencies {

View File

@@ -521,7 +521,7 @@ public class KclMessageDrivenChannelAdapter extends MessageProducerSupport {
*/
private void checkpoint(IRecordProcessorCheckpointer checkpointer, @Nullable Record record) {
if (logger.isInfoEnabled()) {
logger.info("Checkpointing shard " + shardId);
logger.info("Checkpointing shard " + this.shardId);
}
try {
if (record == null) {
@@ -564,9 +564,10 @@ public class KclMessageDrivenChannelAdapter extends MessageProducerSupport {
private void checkpointIfPeriodicMode(IRecordProcessorCheckpointer checkpointer, @Nullable Record record) {
if (CheckpointMode.periodic.equals(KclMessageDrivenChannelAdapter.this.checkpointMode)
&& System.currentTimeMillis() > nextCheckpointTimeInMillis) {
&& System.currentTimeMillis() > this.nextCheckpointTimeInMillis) {
checkpoint(checkpointer, record);
this.nextCheckpointTimeInMillis = System.currentTimeMillis() + checkpointsInterval;
this.nextCheckpointTimeInMillis =
System.currentTimeMillis() + KclMessageDrivenChannelAdapter.this.checkpointsInterval;
}
}

View File

@@ -1110,14 +1110,15 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport
private void checkpointIfPeriodicMode(@Nullable Record record) {
if (CheckpointMode.periodic.equals(KinesisMessageDrivenChannelAdapter.this.checkpointMode)
&& System.currentTimeMillis() > nextCheckpointTimeInMillis) {
&& System.currentTimeMillis() > this.nextCheckpointTimeInMillis) {
if (record == null) {
this.checkpointer.checkpoint();
}
else {
this.checkpointer.checkpoint(record.getSequenceNumber());
}
this.nextCheckpointTimeInMillis = System.currentTimeMillis() + checkpointsInterval;
this.nextCheckpointTimeInMillis =
System.currentTimeMillis() + KinesisMessageDrivenChannelAdapter.this.checkpointsInterval;
}
}