fix(k1): retire terminal control before read-only recovery
This commit is contained in:
@@ -17994,7 +17994,15 @@ class XgridsK1CompatibilityService:
|
||||
raise RuntimeError(
|
||||
"retained PREPARED STOP owner changed before topology commit"
|
||||
)
|
||||
self._retire_application_control_for_network_change()
|
||||
# Verify owns a read-only replacement of the local control
|
||||
# generation. A terminal device fault may leave that dead
|
||||
# generation in ``failed`` even though its worker/socket are
|
||||
# already gone. Retire only that local owner; the physical
|
||||
# ledger remains unresolved until fresh DeviceInfo/Status
|
||||
# evidence below classifies it.
|
||||
self._retire_application_control_for_network_change(
|
||||
allow_terminal_failure=True,
|
||||
)
|
||||
projected_intent_id = self._apply_read_only_device_topology(
|
||||
transport_ref=actual_transport_ref,
|
||||
connection_mode=requested_mode,
|
||||
|
||||
Reference in New Issue
Block a user