Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HD-381 - Gracefully shutdown kinesis record processor to avoid "Can't update checkpoint - instance doesn't hold the lease for this shard" errors #1

Conversation

jari-kujansuu
Copy link
Owner

@jari-kujansuu jari-kujansuu commented Mar 6, 2020

Spark's KinesisRecordProcessor to implement Kinesis IShutdownNotificationAware interface to be notified before processor will be shutdown so that it can update checkpoint before shutdown.

https://nostosolutions.atlassian.net/browse/HD-381

See more details from:

Building

cd external/kinesis-asl
../../dev/change-scala-version.sh 2.11
../../build/mvn -Pyarn -Phadoop-3.0.0 -Dscala-2.11.12 -DskipTests clean package

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)

How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Please review https://spark.apache.org/contributing.html before opening a pull request.

@jari-kujansuu jari-kujansuu self-assigned this Mar 6, 2020
@jari-kujansuu jari-kujansuu force-pushed the HD-381-gracefully-shutdown-kinesis-record-processor-to-avoid-cant-update-checkpoint-errors branch from 431c773 to 68fd5f1 Compare March 6, 2020 15:30
…heckpoint - instance doesn't hold the lease for this shard" errors.

Spark's KinesisRecordProcessor to implement Kinesis IShutdownNotificationAware interface to be notified before processor will be shutdown so that it can update checkpoint before shutdown.

See more details from:
- awslabs/amazon-kinesis-client#79
- awslabs/amazon-kinesis-client#109
@jari-kujansuu jari-kujansuu force-pushed the HD-381-gracefully-shutdown-kinesis-record-processor-to-avoid-cant-update-checkpoint-errors branch from 68fd5f1 to 091e1b2 Compare March 6, 2020 15:41
@jari-kujansuu jari-kujansuu force-pushed the HD-381-gracefully-shutdown-kinesis-record-processor-to-avoid-cant-update-checkpoint-errors branch from 26512e2 to 226127f Compare March 9, 2020 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant