apple / swift-distributed-actors

Peer-to-peer cluster implementation for Swift Distributed Actors
https://apple.github.io/swift-distributed-actors/
Apache License 2.0
580 stars 54 forks source link

FAILED: ClusterSingletonPluginClusteredTests.test_singletonByClusterLeadership_withLeaderChange #1123

Closed ktoso closed 1 year ago

ktoso commented 1 year ago

17:38:04 Test Case 'ClusterSingletonPluginClusteredTests.test_singletonByClusterLeadership_withLeaderChange' started at 2023-06-29 08:37:56.010
17:38:04 [8:37:59.2690] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:230 : Nodes up: [sact://first:6486295814036128338@127.0.0.1:7111, sact://second:1261492871788397795@127.0.0.1:8222, sact://third:7176809043314686995@127.0.0.1:9333]
17:38:04 [8:37:59.2780] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:235 : All three nodes communicated with singleton
17:38:04 [8:38:00.4840] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:248 : Endpoint sact://first@127.0.0.1:7111 left cluster...
17:38:04 [8:38:00.4850] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:251 : Endpoint sact://fourth@127.0.0.1:7444 joining cluster...
17:38:04 [8:38:01.4890] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:264 :   Sending: Bob (1) -> DistributedClusterTests.TheSingleton (it may be terminated/not-re-pointed yet)
17:38:04 [8:38:01.4890] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:264 :   Sending: Charlie (1) -> DistributedClusterTests.TheSingleton (it may be terminated/not-re-pointed yet)
17:38:04 [8:38:02.4960] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:264 :   Sending: Bob (2) -> DistributedClusterTests.TheSingleton (it may be terminated/not-re-pointed yet)
17:38:04 [8:38:02.4960] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:264 :   Sending: Charlie (2) -> DistributedClusterTests.TheSingleton (it may be terminated/not-re-pointed yet)
17:38:04 [8:38:03.4990] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:264 :   Sending: Charlie (3) -> DistributedClusterTests.TheSingleton (it may be terminated/not-re-pointed yet)
17:38:04 [8:38:03.4990] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:264 :   Sending: Bob (3) -> DistributedClusterTests.TheSingleton (it may be terminated/not-re-pointed yet)
17:38:04 [8:38:04.4010] DistributedClusterTests/ClusterSingletonPluginClusteredTests.swift:282 : Fourth node joined, will become leader; Members now: [sact://fourth:10266702357827085039@127.0.0.1:7444, sact://second:1261492871788397795@127.0.0.1:8222, sact://third:7176809043314686995@127.0.0.1:9333]
17:38:04 <EXPR>:0: error: ClusterSingletonPluginClusteredTests.test_singletonByClusterLeadership_withLeaderChange : threw error "DeadLetterError([$wellKnown: the-one])"
17:38:04 ------------------------------------- ClusterSystem(first, sact://first@127.0.0.1:7111) ------------------------------------------------
17:38:04 [captured] [first] 8:37:56.0140 trace [/system/clusterEventStream] [ClusterSystem.swift:998] Assign identity
17:38:04 [captured] [first] // "actor/type": ClusterEventStreamActor
17:38:04 [captured] [first] 8:37:56.0150 trace [/system/clusterEventStream] [ClusterSystem.swift:1011] Actor ready
17:38:04 [captured] [first] // "actor/type": ClusterEventStreamActor
17:38:04 [captured] [first] 8:37:56.0150 trace [/user/swim] [ClusterSystem.swift:998] Assign identity
17:38:04 [captured] [first] // "actor/type": SWIMActor

This should not happen, so we need to solve this -- it is some lookup problem I believe