Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1366

Cluster sharding nnknown entity actor when passivating

$
0
0

@Hatebeingslow wrote:

When i do passivate, Shard doesn’t know which entity acor he should stop

def passivateEntity(): Unit = {
    log.info("Sending stop message to parent: {}", context.parent.path.toStringWithoutAddress)
    context.parent ! Passivate(stopMessage = PoisonPill)
  }

Logs:

[akka.tcp://CustomerSystem@10.244.1.149:2551/system/sharding/CustomerShard/41/50fa90e2-de5a-37c0-9c58-7fb7f1375077] k.d.m.c.e.Customer | Sending stop message to parrent: /system/sharding/CustomerShard/41
[akka.tcp://CustomerSystem@10.244.1.149:2551/system/sharding/CustomerShard/41] a.c.s.Shard | Unknown entity Actor[akka://CustomerSystem/user/$a#-903358967]. Not sending stopMessage back to entity.

actor entity with id name [akka.tcp://CustomerSystem@10.244.1.149:2551/system/sharding/CustomerShard/41/50fa90e2-de5a-37c0-9c58-7fb7f1375077] is sending stop message to context parent, but Shard receives another id name [akka://CustomerSystem/user/$a#-903358967] Why it happens?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1366

Trending Articles