Comments (6)
Thanks, @gvd! Indeed, the logging interface is a bit unfortunate, I'm fixing this to
log.error(ex, "Stopping subscriber due to an error")
I'll try to add some test around it.
from alpakka-kafka.
Maybe you could have an ExceptionHandler
component, where the default handling would be to log the exceptions, but could provide hooks to e.g. restart the whole stream, try to reconnect, do exponential backoff etc?
Passed as an implicit or parameter with a default value?
from alpakka-kafka.
@adamw Underneath the subscriber is an Akka actor. Errors can be handled with custom behavior using DeathWatch. I'm checking how one can pass more details on exceptions with that.
from alpakka-kafka.
I might be wrong, but currently the underlying actor is not returned when building the stream, thus inhibiting the ability to supervise/register for deathwatch of that actor.
from alpakka-kafka.
There is some public API not mentioned in README. You can build your consumer like this:
val consumerActor = reactiveKafka.consumerAsActor[T](...)
val consumer = ActorPublisher[String](consumerActor)
and you have a working ActorRef which you can watch. I'm also trying to make it possible to supervise this actor, so that you can capture full exception when it crashes. Only then I'll fully close this issue.
from alpakka-kafka.
Fixed fully in #23
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.