You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VT server: a failed object pool update keeps the old pool instead of deleting it #958
When the End of Object Pool of an object pool update fails to parse (the working set already has a pool, sends more Object Pool Transfers and an End of Object Pool, and an object in them is faulty), the server answers with the error and the faulting object, but keeps the pool from before the update. The transfers of the failed run stay in the working set, unparsed. End of Object Pool response byte 7 bit 3 ("object pool was deleted from volatile memory") is never set.
ISO 11783-6:2018 describes it the other way:
C.2.6 (p. 209): after errors in an update, the VT deletes the whole pool from volatile memory, including the pool as it was before the update, and informs the operator with an alarm about the suspended working set and the reason.
C.2.5 (pp. 208-209): the same for any failed End of Object Pool, as a recommendation, with byte 7 bit 3 to tell the working set whether the pool was deleted.
C.2.2 c) 4) (p. 207): after the VT removed the pool, the working set may start the transfer again.
The working set has to go to its fail-safe state in either case, so keeping the old pool helps little, and the pool it keeps never got the update the working set expects.
Proposal
When the End of Object Pool fails to parse, update():
deletes the pool the way a dropped Object Pool Transfer does in Process VT server commands in update() #952 (remove_object_pool()), so the working set is deactivated and its objects and transfers are cleared, and a new Get Memory and transfer start from an empty pool;
sets byte 7 bit 3 in the End of Object Pool response, next to the error bits and the faulting object and parent;
A failed Load Version stays as it is, as it has its own response.
Context
Raised in the review of #949, which keeps main's behaviour here and documents it. #949 looks up the faulting object and its parent in join_parsing_thread(), so they are still available for the response after the pool is deleted. I'd do this after #949 and #952, on top of remove_object_pool().
Activity