Comments (8)
This is exactly what I am looking for.
Ideally, when user request to destroy current processor, KCL should be able to create a new one for the same shards and start to process from the last checkpoint.
from amazon-kinesis-client.
Thanks for your feedback. We will look into adding this support in the future.
from amazon-kinesis-client.
+1
from amazon-kinesis-client.
you can accomplish this pretty easily with Guava's ListenableFuture or Java8's CompletableFuture & the factory pattern & I'm happier with this being app-specific logic instead of something forced by the library-- amz has a history of doing threading & executors weird :/
you already have to implement IRecordProcessorFactory
so give yourself a base abstract pattern to start, like my KinesisRecordConsumerFactory
my KinesisRecordConsumer has some application specific stuff in there but you should be able to get the idea.
then in your main class add a callback to KinesisRecordConsumerFactory.getErrorFuture()
& kill your app or shutdown your worker or whatever you want.
from amazon-kinesis-client.
It would be great for the MLD to have this as well. We're currently calling exit(1)
which works, but also causes the whole MLD to die, taking all owned shards with it. Restarting with workerId
means these come back up quickly, but it's overkill.
from amazon-kinesis-client.
Thanks for reporting this. We're investigating this feature, and will prioritize with other feature requests.
Others - Please comment or add your reaction to this post so our team is aware of how to prioritize this change.
from amazon-kinesis-client.
I would agree with this seems like an important piece of functionality to provide to the implementer
from amazon-kinesis-client.
We're tracking this internally. Closing this issue.
from amazon-kinesis-client.
Related Issues (20)
- Support artifacts with all third-party dependencies relocated HOT 2
- Consolidate metrics to a common name space, like /aws/kinesis-client HOT 2
- Uneven distribution of shards over the consumer application workers HOT 1
- Retrieving shard consumer's current lease's hash range key HOT 2
- KCL2 -Multi stream consumer - Configured streams can be in same account and cross account HOT 4
- graceful shutdown of MultiLangDaemon worker that is assigned for completed shards is always timeout HOT 3
- STS Endpoint HOT 1
- Change to PollingConfig maxRecords breaks compat
- OutOfMemory due to huge number of 'org.apache.http.impl.conn.PoolingHttpClientConnectionManager' instances referenced by 'idle-connection-reaper' thread HOT 1
- Am I degrading my app if use multiple KCL at the same time? HOT 2
- Uncaught Netty exceptions on high volume data stream HOT 2
- Documentation on _CHECKPOINT_FREQ_SECONDS
- 2.6.0 release not available on Maven Central HOT 2
- ERROR: Unable to download MultiLangDaemon jar files from maven
- AggregatorUtil. java contains "javax.xml.bind.*"
- DynamoDbException ReadCapacityUnits and WriteCapacityUnits must both be specified when BillingMode is PROVISIONED
- Add support for multi-tenancy for lease coordination and management in KCL
- how to read from dynamodb + kinesis stream
- activeThreads is higher than maxActiveThreads causing stale workers
- java.util.concurrent.TimeoutException when terminating multilang daemon process using CTRL+C HOT 2
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-client.