Commit 7031c04
Fix spurious "Unknown message" warnings in ConnectionPersistenceActor
During connection recovery, ConnectionPersistenceActor logged WARN-level
"Unknown message: ReceiveTimeout" and "Unknown message: PA_RECOVERED"
messages. These were harmless but added noise to logs, especially during
rolling deployments when many connections recover simultaneously.
Root causes:
- ReceiveTimeout: The 2s receive timeout set in ConnectionSupervisorActor
.preStart() could get stashed during startup and later forwarded to
the persistence actor via the supervisor's catch-all matchAny handler,
since activeBehaviour had no explicit ReceiveTimeout handler.
- PA_RECOVERED: The NoOpEnforcerActor's blanket matchAny echoed all
messages back to the sender. When the supervisor forwarded
PA_RECOVERED to the enforcer with sender=PA, the NoOpEnforcerActor
bounced it right back to the persistence actor.
Fixes:
- ConnectionSupervisorActor: Handle ReceiveTimeout in activeBehaviour
- NoOpEnforcerActorPropsFactory: Consume PA_RECOVERED control signal
instead of echoing it back to the persistence actor
- ConnectionPersistenceActor: Defense-in-depth handlers for both
messages at DEBUG level in matchAnyAfterInitialization
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e4a058a commit 7031c04
File tree
3 files changed
+20
-0
lines changed- connectivity/service/src/main/java/org/eclipse/ditto/connectivity/service
- enforcement
- messaging/persistence
3 files changed
+20
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
706 | 708 | | |
707 | 709 | | |
708 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
709 | 718 | | |
710 | 719 | | |
711 | 720 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
0 commit comments