I'm using akka-kafka with committablePartitionedSource, meaning I have a source of (partition, innersource) tuples.
I'm currently using the flatMapMerge recipe from https://doc.akka.io/docs/akka-stream-kafka/current/consumer.html#source-per-partition val done = Consumer.committablePartitionedSource(consumerSettings, Subscriptions.topics("topic1")) .flatMapMerge(maxPartitions, _._2) .via(business) .batch(max = 20, first => CommittableOffsetBatch.empty.updated(first.committableOffset)) { (batch, elem) => batch.updated(elem.committableOffset) } .mapAsync(3)(_.commitScaladsl()) .runWith(Sink.ignore) If I have a default supervision strategy which resumes, set at the materializer level, but want to stop the stream (which in my case restarts a host actor with backoff) at the source level, do I need to do a withAttributes(attributesForStoppingDecider) at both the outer source and inner source leves? i.e. val done = Consumer.committablePartitionedSource(consumerSettings, Subscriptions.topics("topic1")) .withAttributes(attributesForStoppingDecider).flatMapMerge(maxPartitions, _._2.withAttributes(attributesForStoppingDecider)) .via(business) or can I do it after the flatMapMerge? Question motivated by this open ticket which I'm not sure I fully understand yet. https://github.com/akka/akka/issues/23066 -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.