Reworked completed MST batches propagation to PCS:
completed batches are sent to an instance of MstToPcsPropagation
MstToPcsPropagation tries to pass them to PCS
if PCS rejects them, MstToPcsPropagation waits till a notification with available room for transactions and resends the fitting batches
MstToPcsPropagation uses the same shared limit with the rest MST batches storages, which prevents new batches from being accepted until previously accepted either expire or come to PCS.
Description of the Change
Reworked completed MST batches propagation to PCS:
MstToPcsPropagation
MstToPcsPropagation
tries to pass them to PCSMstToPcsPropagation
waits till a notification with available room for transactions and resends the fitting batchesMstToPcsPropagation
uses the same shared limit with the rest MST batches storages, which prevents new batches from being accepted until previously accepted either expire or come to PCS.Benefits
Solves the memory growth problem.
Possible Drawbacks
Usage Examples or Tests [optional]
Please see
mst_to_psc_propagation_test
.Alternate Designs [optional]