[Broker]Signal main thread after close
The main thread wait on isClosedCondition but never gets notified.
@@ -322,6 +322,7 @@ public class PulsarService implements AutoCloseable {
}
state = State.Closed;
+ isClosedCondition.signalAll();
} catch (Exception e) {
throw new PulsarServerException(e);
} finally {
