Reuse Jetty server between unit test class.

2023-03-11 Thread adobewjl
I found some unit cost a lot time on setup and teardown jetty servlet server. if we can reuse servlet server make it stateless. may be we can save a lot developer time. eg. In UT `org.apache.pulsar.broker.admin.TopicPoliciesTest` there are 80 test case. each set && tearDown will cost 6 second

[DISCUSS] PIP-232: Introduce thread monitor to check if thread is blocked for long time.

2022-12-19 Thread adobewjl
Hello pulsar community, I've opened `PIP-232: Introduce thread monitor to check if thread is blocked for long time.` to discuss. For more details, please read the PIP at https://github.com/apache/pulsar/issues/18985 I'm looking forward to hearing what you think. Also the demo PR link at https://