You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/16 01:57:30 UTC
[GitHub] [pulsar] codelipenghui opened a new issue #14699: Flaky-test: SimpleProducerConsumerStatTest.testAddBrokerLatencyStats
codelipenghui opened a new issue #14699:
URL: https://github.com/apache/pulsar/issues/14699
[example failure](https://github.com/apache/pulsar/runs/5558349881?check_suite_focus=true)
```
Error: Tests run: 32, Failures: 1, Errors: 0, Skipped: 31, Time elapsed: 47.676 s <<< FAILURE! - in org.apache.pulsar.client.api.SimpleProducerConsumerStatTest
Error: testAddBrokerLatencyStats(org.apache.pulsar.client.api.SimpleProducerConsumerStatTest) Time elapsed: 0.453 s <<< FAILURE!
org.apache.pulsar.client.admin.PulsarAdminException: java.lang.IllegalArgumentException: Unable to resolve generic type value of javax.ws.rs.client.InvocationCallback<T> for an instance of class org.apache.pulsar.client.admin.internal.BaseResource$4.
at org.apache.pulsar.client.admin.internal.BaseResource.getApiException(BaseResource.java:251)
at org.apache.pulsar.client.admin.internal.BaseResource$4.failed(BaseResource.java:301)
at org.glassfish.jersey.client.JerseyInvocation.submit(JerseyInvocation.java:908)
at org.glassfish.jersey.client.JerseyInvocation.submit(JerseyInvocation.java:800)
at org.glassfish.jersey.client.JerseyInvocation$AsyncInvoker.method(JerseyInvocation.java:614)
at org.glassfish.jersey.client.CompletableFutureAsyncInvoker.get(CompletableFutureAsyncInvoker.java:30)
at org.glassfish.jersey.client.CompletableFutureAsyncInvoker.get(CompletableFutureAsyncInvoker.java:26)
at org.apache.pulsar.client.admin.internal.BaseResource.asyncGetRequest(BaseResource.java:169)
at org.apache.pulsar.client.admin.internal.BaseResource.asyncGetRequest(BaseResource.java:292)
at org.apache.pulsar.client.admin.internal.BrokerStatsImpl.getMetricsAsync(BrokerStatsImpl.java:55)
at org.apache.pulsar.client.admin.internal.BrokerStatsImpl.lambda$getMetrics$0(BrokerStatsImpl.java:49)
at org.apache.pulsar.client.admin.internal.BaseResource.sync(BaseResource.java:309)
at org.apache.pulsar.client.admin.internal.BrokerStatsImpl.getMetrics(BrokerStatsImpl.java:49)
at org.apache.pulsar.client.api.SimpleProducerConsumerStatTest.testAddBrokerLatencyStats(SimpleProducerConsumerStatTest.java:407)
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)
Caused by: java.lang.IllegalArgumentException: Unable to resolve generic type value of javax.ws.rs.client.InvocationCallback<T> for an instance of class org.apache.pulsar.client.admin.internal.BaseResource$4.
at org.glassfish.jersey.internal.util.ReflectionHelper.getParameterizedTypeArguments(ReflectionHelper.java:1060)
at org.glassfish.jersey.client.JerseyInvocation.submit(JerseyInvocation.java:830)
... 23 more
```
<!-- optionally provide the full stacktrace ->
<details>
<summary>Full exception stacktrace</summary>
<code><pre>
full exception stacktrace here
</pre></code>
</details>
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] michaeljmarshall commented on issue #14699: Flaky-test: SimpleProducerConsumerStatTest.testAddBrokerLatencyStats
Posted by GitBox <gi...@apache.org>.
michaeljmarshall commented on issue #14699:
URL: https://github.com/apache/pulsar/issues/14699#issuecomment-1069295083
@codelipenghui - I don't think this is a flaky test. I think this is because of the way the generic method is defined in https://github.com/apache/pulsar/pull/12248.
```java
public <T> CompletableFuture<T> asyncGetRequest(final WebTarget target)
```
It's interesting because it compiles, but the error message seems to indicate that it cannot resolve the generic type.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org