jmsperu commented on PR #14640: URL: https://github.com/apache/cloudstack/pull/14640#issuecomment-7315678872
@DaanHoogland on your two questions, here is what I measured. I drove `VirtualRoutingResource` from this PR (f7282a1d37) directly with a stub deployer, in the same style as `VirtualRoutingResourceAggregationTest`, and sent the commands in the order shown. **Commands after an aggregated set** | Sequence | Result | |---|---| | A Start, cmd, B Start, cmd, A Finish | success, one aggregated apply with both commands | | then 3 more commands | each answered success, each applied to the router on its own (3 applies) | | then B Finish, and one more Finish | both success, "Aggregated commands already applied", no further apply | **One stored failure per router** | Sequence | Answer to the last Finish | Applied on the router | |---|---|---| | A and B share a queue, apply fails, B Finish | failure, "vr_cfg.sh failed" | no | | Same, but C does Start, cmd, Finish with success before B Finish | success, "Aggregated commands already applied" | B's command was only in the failed apply | | Start, one queued command, new resource instance (as after an agent restart), Finish | success, "Aggregated commands already applied" | nothing was written to the router | The same Finish with no queue on the unpatched class ends in the `NullPointerException` at `Queue.clear()`. Scope of this test: agent class only. I did not produce the last two sequences from a management server. In my earlier lab runs on 4.22.1.1 (6 parallel tiers, reported above) the NPE did not occur with this PR and the "No command aggregation in progress ... last aggregated apply succeeded" line was logged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
