Fix some locking issues in the KinesisMDChAdapter

Related to https://github.com/spring-projects/spring-integration-aws/issues/90
This commit is contained in:
Artem Bilan
2018-06-25 21:42:24 -04:00
parent 66e208f4f7
commit c655a8c4e2

View File

@@ -1193,6 +1193,9 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport i
logger.error("Error during locking: " + lock, e);
return false;
}
finally {
this.forLocking.remove(lock);
}
}
void unlock(String lockKey) {
@@ -1229,6 +1232,7 @@ public class KinesisMessageDrivenChannelAdapter extends MessageProducerSupport i
}
catch (Exception e) {
logger.error("Error during locking: " + lock, e);
settableFuture.set(false);
}
finally {
entry.setValue(null);