Comments (6)
@knorwood i am on below version
com.amazonaws
amazon-kinesis-client
1.9.0
and i am still getting the same exception
com.amazonaws.services.kinesis.clientlibrary.exceptions.ShutdownException: Can't update checkpoint - instance doesn't hold the lease for this shard
from amazon-kinesis-connectors.
I am on 2.1.3 and still seeing this issue.
from amazon-kinesis-connectors.
I also get that error. An issue is that my data get inserted to the redshift database even when checkpointer.checkpoint() fails, so the same data are processed again and again (each time inserted to the database since there is no transaction).
from amazon-kinesis-connectors.
We're seeing this on at least one of our instances every day. Really no update?
from amazon-kinesis-connectors.
The root cause of this issue is that sometimes a KCL Worker loses a lease and then reacquires a new lease on a particular shard before discarding the old lease for that shard, it then continues to hold the old lease which still holds the old concurrency token. The mismatched concurrency token prevents checkpointing but the Worker never discards the lease because the lease cleanup logic only compares the shard-id.
A fix for this will involve correcting the logic around removing lost leases to also take into account the concurrency token in addition to the shard-id when comparing leases. In the meantime, one way to alleviate the impact of this issue is to increase the failoverTimeMillis which is set to 1000ms by default in the connector library. Increasing the failoverTimeMillis will reduce the chance of a Worker losing and then immediately reacquiring its own lease.
from amazon-kinesis-connectors.
A fix for this issue was included in the 1.1.1 release. Details of the fix can be seen in this diff
from amazon-kinesis-connectors.
Related Issues (20)
- AWS ES service version conflict HOT 1
- Add a fail callback when the message can not be transformed. HOT 1
- HTTP proxy support HOT 4
- Emitters should be more extensible
- Application logs
- Logic for auto scaling
- ElasticSearch connector does not work against AWS-ES service HOT 1
- Hibernate - Redshift.
- UnmodifiableBuffer equals method does not return false when buffers contain different records
- is Amazon KCL 1.7.5 compatible with elasticSearch 5.1.1? HOT 1
- Script is still using default values even after modifying the properties file HOT 2
- No suitable driver found for JDBC
- Understanding Number of records emitted to S3 HOT 3
- Not able to run the amazon-kinesis-connectors-samples-1.0.0-SNAPSHOT.jar
- finish Application after consuming n records from the stream with graceful shutdown HOT 2
- Setting Kinesis Client Library DynamoDB properties fails
- The input line is too long. The syntax of the command is incorrect.
- How can I migrate to use KCL 2.x and new AWS SDK, what's the future of kinesis-connectors?
- S3 Sample Error - Caught exception when uploading file s3://pfifer-connector-test HOT 3
- S3 and Kinesis access and secret keys can be different.Support multiple access and secret key.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-kinesis-connectors.