Describe the bug
Restarting resource in onResourcePreStart causes an infinite loop.
To reproduce
Restart starting resource in onResourcePreStart.
Expected behaviour
Resource should not be restarted while in starting state.
Is it really a bug when you produce an infinite loop and then complain it shouldn't loop forever?
Furthermore, the resource restart is a queued task and not immediate, so that means the resource probably starts successfully and then gets restarted, and not during the onResourcePreStart event.
I don't think this is a concern and to be honest expected behavior.
You are right.
Most helpful comment
Is it really a bug when you produce an infinite loop and then complain it shouldn't loop forever?
Furthermore, the resource restart is a queued task and not immediate, so that means the resource probably starts successfully and then gets restarted, and not during the onResourcePreStart event.