Skip to content

fix: add missing space in StageActor PoisonPill/Kill warning message#3040

Merged
He-Pin merged 1 commit into
mainfrom
fix-stage-actor-warning-space
Jun 3, 2026
Merged

fix: add missing space in StageActor PoisonPill/Kill warning message#3040
He-Pin merged 1 commit into
mainfrom
fix-stage-actor-warning-space

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 3, 2026

Copy link
Copy Markdown
Member

Motivation

The warning message logged when PoisonPill or Kill is sent to a StageActor was missing a space between the period and the next sentence, resulting in:

"...not a real Actor.Use a custom message type to communicate with it instead."

Modification

Add the missing space after the period in the warning message in GraphStage.scala, and after the comma in the corresponding test regex in StageActorRefSpec.scala.

Result

Warning message reads correctly:

"...not a real Actor. Use a custom message type to communicate with it instead."

Tests

  • sbt "stream-tests / Test / testOnly org.apache.pekko.stream.scaladsl.StageActorRefSpec" — 8/8

References

None - minor formatting fix

Motivation:
The warning message logged when PoisonPill or Kill is sent to a StageActor
was missing a space between the period and the next sentence, resulting in
"...not a real Actor.Use a custom..." instead of "...not a real Actor.
Use a custom...".

Modification:
Add the missing space after the period in the warning message in
GraphStage.scala, and after the comma in the corresponding test regex
in StageActorRefSpec.scala.

Result:
Warning message reads correctly: "...not a real Actor. Use a custom
message type to communicate with it instead."

Tests:
- sbt "stream-tests / Test / testOnly org.apache.pekko.stream.scaladsl.StageActorRefSpec" — 8/8

References:
None - minor formatting fix
@He-Pin He-Pin merged commit 1dc0932 into main Jun 3, 2026
9 checks passed
@He-Pin He-Pin deleted the fix-stage-actor-warning-space branch June 3, 2026 05:58
@He-Pin He-Pin added this to the 2.0.0-M4 milestone Jun 3, 2026
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

Successfully merging this pull request may close these issues.

2 participants