Depends on D4320
fixed the bug in if else in terminateCallback
The problem was that we were checking for the put reactor state only in the else if block, we should check for it always.
Differential D4321
[services] Backup - Send Log - Fix logic in terminate callback • karol on Jun 22 2022, 3:30 AM. Authored by Tags None Referenced Files
Details Depends on D4320 fixed the bug in if else in terminateCallback The problem was that we were checking for the put reactor state only in the else if block, we should check for it always. Services build, for now this went out of sync with the integration tests
Diff Detail
Event Timeline
Comment Actions For the future, probably the best way would be to introduce a small change and in the same diff, do necessary changes in tests so all tests pass. But I spent some time debugging and wanted to put this up ASAP now as this also brings some changes to the overall logic. Comment Actions It's hard to tell which code change corresponds to which action
Could you split this diff so that each change is a separate one? Comment Actions Defer to @palys-swm on most of this, don't have time to do a full review
Comment Actions As I said in the description:
I'm going to assume that the high-level idea is accepted and just split this.
Comment Actions
The language says:
The readability of this ternary expression isn't great... it seems easy to miss that there is a conditional occuring here. As for the best alternative... I am not sure about that. I don't feel that strongly about this case honestly, but I'm sure there is some alternative if you look into it. I don't have the time right now to do that research... in general, the expectation is that the diff author does research in response to requests from diff reviewers. Comment Actions Please describe in the summary what this bug was about. The test plan should describe how it was verified that the bug was fixed.
This comment was removed by • karol. Comment Actions
|