Skip to content

Unclear error message from cluster sharding when no cluster has formed #24295

@TimMoore

Description

@TimMoore

When starting an application that uses Akka Cluster Sharding, if no cluster has been joined (e.g., because of forgotten seed node configuration) there is a cryptic error message:

Trying to register to coordinator at [None], but no acknowledgement.

This doesn't communicate the underlying issue, which is usually a misconfiguration.

Reproduction

  1. Clone the akka-samples repo and cd to akka-sample-sharding-scala
  2. Edit src/main/resources/application.conf and delete the seed-nodes setting
  3. sbt "runMain sample.sharding.ShardingApp 2551"
  4. It logs an INFO-level message saying "Cluster Node [akka.tcp://ShardingSystem@127.0.0.1:2551] - No seed-nodes configured, manual cluster join required", but because the application continues normally and the message is at INFO level, it is easy to miss this.
  5. Eventually, you will begin to see "Trying to register to coordinator at [None], but no acknowledgement." warnings logged. It isn't clear that this is connected to the fact that the actor system hasn't joined a cluster.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - triagedTickets that are safe to pick up for contributing in terms of likeliness of being accepted2 - pick nextUsed to mark issues which are next up in the queue to be worked on. The tag is non-bindinghelp wantedIssues that the core team will likely not have time to work ont:cluster-tools

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions