Coder Social home page Coder Social logo

Comments (6)

akumariiit avatar akumariiit commented on July 22, 2024 8

@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.

BobbyJohansen avatar BobbyJohansen commented on July 22, 2024 3

I am on 2.1.3 and still seeing this issue.

from amazon-kinesis-connectors.

msdeploy avatar msdeploy commented on July 22, 2024

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.

ajanata avatar ajanata commented on July 22, 2024

We're seeing this on at least one of our instances every day. Really no update?

from amazon-kinesis-connectors.

knorwood avatar knorwood commented on July 22, 2024

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.

knorwood avatar knorwood commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.