RFR: 1035: Race when creating backports for bug spanning multiple repos [v2]

Erik Joelsson erikj at openjdk.org
Thu Feb 16 20:02:13 UTC 2023


On Thu, 16 Feb 2023 17:22:11 GMT, Zhao Song <zsong at openjdk.org> wrote:

>> Yes, I agree, used the more specific exception as suggested.
>> 
>> Regarding the specific exception code, yes I tried to run two test cases in parallel by putting the debug points to simulate the race condition but TestHost returned 2nd issue as a new one. I guess because of two instances of TestHost (one per test case). So could not verify the exception code.
>
> If you are interested, I think you can add the status code to the log with method `UncheckedRestException#getStatusCode`.

I think logging the statusCode as suggested by Zhao is a good idea.

-------------

PR: https://git.openjdk.org/skara/pull/1476


More information about the skara-dev mailing list