You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've come across a side of effect of this fix. If you've something like below -
public void onApplicationEvent(ContextRefreshedEvent event) {
// some code
System.exit(0);
}
This creates a deadlock as the shutdown hook is created first and it acquires the very lock which System.exit(0) tries acquiring later on. I'm not sure if using System.exit(0) in context refreshed event listener would be discouraged for this reason.
The text was updated successfully, but these errors were encountered:
Problem
I've come across a side of effect of this fix. If you've something like below -
This creates a deadlock as the shutdown hook is created first and it acquires the very lock which System.exit(0) tries acquiring later on. I'm not sure if using System.exit(0) in context refreshed event listener would be discouraged for this reason.
The text was updated successfully, but these errors were encountered: