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

StopFromStage not delivered #204

Open
Roiocam opened this issue Jul 1, 2024 · 2 comments
Open

StopFromStage not delivered #204

Roiocam opened this issue Jul 1, 2024 · 2 comments

Comments

@Roiocam
Copy link
Member

Roiocam commented Jul 1, 2024

I am using DrainingControl to toggle my kafka subscribe state.

public pause() {
	this.drainingControl
                .drainAndShutdown(system.executionContext())
                 .....
}

public start() {
        this.drainingControl = this.kafkaGraph.run(this.system);
}

when I call the pause() method, the actor system complains StopFromStage wasn't delivered to kafka-consumer-actor...

@bsem-twlo
Copy link

Same issue, setting consumerSettings.withStopTimeout(Duration.Zero) didn't help
https://pekko.apache.org/docs/pekko-connectors-kafka/snapshot/consumer.html#draining-control

{
"logger": "org.apache.pekko.actor.RepointableActorRef",
"message": "Message [org.apache.pekko.kafka.internal.KafkaConsumerActor$Internal$StopFromStage]
 from Actor[pekko://main/system/Materializers/StreamSupervisor-1/$$Db#686591537]
 to Actor[pekko://main/system/kafka-consumer-4#-415773811] was not delivered.
 [4] dead letters encountered.
 If this is not an expected behavior then Actor[pekko://main/system/kafka-consumer-4#-415773811] may have terminated unexpectedly.
 This logging can be turned off or adjusted with configuration settings \u0027pekko.log-dead-letters\u0027 and \u0027pekko.log-dead-letters-during-shutdown\u0027."
}

@pjfanning
Copy link
Contributor

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

No branches or pull requests

3 participants