[WIP] FIX loop protection#3893
Conversation
|
Fail in 3694_logs_improvements/log_notifications.test case shows that the fix is not so simple as I originally thought :) Removing the Thus, if for instance we have A possible solution is not storing any last_correlator in DB while the batch is being processed. Instead of that, store in temporal memory structure, then flush that memory structure to DB once batch processing ends. However, this solution may be complex. |
This would be easier if issue #1153 is implemented. Do that issue before completing this PR. |
This PR improves loop protection. Until this PR, this protection only works for self-custom notifications but now it works in any case (e.g. CEP loops).
It is not easy to test this PR without adding an extra tool (i.e. accumulator-py like) to redirect a notification back to the CB with a modification in the attribute name (pure self-notification doesn't work, as the attribute value doesn't change so a new notification is not triggered). Thus in this case no ftest can be added and we have tested manually the following way:
"timesSent": 961instead of"timesSent": 1and step 05 doesn't show the expected line in the logs). This validates the fix done.