Technoboy- opened a new pull request, #15220:
URL: https://github.com/apache/pulsar/pull/15220
### Motivation
When cherry-pick #14856 to branch-2.9, the test failed.
Because in branch-2.9, the nsService is already a mocked object.
```
Error: Tests run: 17, Failures: 1, Errors: 0, Skipped: 9, Time elapsed:
28.159 s <<< FAILURE! - in org.apache.pulsar.broker.admin.AdminTest
Error: test500Error(org.apache.pulsar.broker.admin.AdminTest) Time
elapsed: 0.025 s <<< FAILURE!
java.lang.NoSuchFieldException: nsService
at java.base/java.lang.Class.getDeclaredField(Class.java:2411)
at
org.apache.pulsar.broker.admin.AdminTest.test500Error(AdminTest.java:848)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at
org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
at
org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
at
org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
```
### Documentation
- [x] `no-need-doc`
(Please explain why)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]