Comments (5)
That was my idea a while ago, but unfortunately postStop()
also gets called on actor restart and the problem is that after a KafkaActorPublisher
gets restarted, it is impossible to revive its inner consumer
. However, I'm also quite bothered by the way that we need to handle shutdowns with current API (the way you mentioned or by DeathWatch
). Let's keep this issue open and look for some solution.
from alpakka-kafka.
We'll keep working on this. By the way, I hadn't thought in dead watching for this and maybe could work better than cancelling in our case. Thanks for that!.
from alpakka-kafka.
Hi,
are there any new approaches towards gracefully shutting down the publisher?
Jan
from alpakka-kafka.
@algermissen 0.8.3 uses onErrorThenStop(ex)
, so in case of exception the publisher will be automatically closed. I'm working on the README to explain this, I guess this issue can be closed.
from alpakka-kafka.
Thanks @kciesielski, I'll check this out. Closing the ticket.
from alpakka-kafka.
Related Issues (20)
- New method for a completeable `takeWhile`
- Have to ability to configure the schema registry in the test kit HOT 1
- Calling methods which use `cluster` under the hood can cause `NullPointerExecption`
- Possiblity to inject a Strategy to KafkaClusterSharding
- Consumer clientId=consumer-A-1, groupId=A] Adding newly assigned partitions:
- Release Alpakka Kafka 3.0.1
- failed: AtLeastOnceTest
- Release Alpakka Kafka HOT 1
- Release Alpakka Kafka 4.0.0
- akka.kafka.internal.KafkaConsumerActor logs credentials on debug level HOT 6
- get metrics from SendProducer
- Release Alpakka Kafka 4.0.1
- Failed: AtLeastOnce HOT 1
- Released 4.0.1 artifact does not work with JDK 8
- Release Alpakka Kafka 4.0.2
- DrainingControl.isShutdown memory leak HOT 1
- CommittingProducerSinkStageLogic incorrectly counts awaitingCommitResult HOT 1
- Release Alpakka Kafka 5.0.0-M1
- Release Alpakka Kafka 5.0.0
- failed: RebalanceExtSpec
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 alpakka-kafka.