awslabs / dynamodb-streams-kinesis-adapter

The Amazon DynamoDB Streams Adapter implements the Amazon Kinesis interface so that your application can use KCL to consume and process data from a DynamoDB stream.
Apache License 2.0
97 stars 37 forks source link

KCL is unable to renew the lease due to an issue calling renewLeases #36

Closed ghost closed 4 years ago

ghost commented 4 years ago

There is an internal server error during the lifetime of a table: a DependencyException when DynamoDB update fails in an unexpected way - indicating that the KCL is unable to renew the lease due to an issue calling renewLeases on the application's lease table (kinesis library having issue talking to DynamoDB).

The worker tries to renewLeases and throws a log error: Encountered and exception while renewing a lease (it increases a lease to 1).

"message":"LeasingException encountered in lease renewing thread” "stack_trace":"com.amazonaws.services.kinesis.leases.exceptions.DependencyException: Encountered an exception while renewing leases.."

amazon-kinesis-client:1.9.1 aws-java-sdk-dynamodb:1.11.382 dynamodb-streams-kinesis-adapter:1.4.0

Any idea how to fix it? Thanks

aggarwal commented 4 years ago

Please upgrade to version 1.5.1 of dynamodb-streams-kinesis-adapter, and let us know if you see the same issue.