googleapis / googleapis/google-cloud-java
[sdk-platform-java] gax-java(windows): Flaky BatcherImplTest.testElementsNotLeaking
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 157
描述
[Flaked](https://github.com/googleapis/gapic-generator-java/actions/runs/4109606391/jobs/7105503631) on Java 11
```
Error: Tests run: 24, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 25.322 s <<< FAILURE! - in com.google.api.gax.batching.BatcherImplTest
Error: com.google.api.gax.batching.BatcherImplTest.testElementsNotLeaking Time elapsed: 1.47 s <<< ERROR!
org.junit.runners.model.TestTimedOutException: test timed out after 500 milliseconds
at java.base@11.0.18/jdk.internal.misc.Unsafe.park(Native Method)
at java.base@11.0.18/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
at java.base@11.0.18/java.util.concurrent.FutureTask.awaitDone(FutureTask.java:447)
at java.base@11.0.18/java.util.concurrent.FutureTask.get(FutureTask.java:190)
at app//com.google.api.gax.batching.BatcherImplTest.testElementsNotLeaking(BatcherImplTest.java:448)
at java.base@11.0.18/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base@11.0.18/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base@11.0.18/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base@11.0.18/java.lang.reflect.Method.invoke(Method.java:566)
at app//org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at app//org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at app//org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at app//org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at app//org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
at app//org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
at java.base@11.0.18/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base@11.0.18/java.lang.Thread.run(Thread.java:829)
```
...
```
Error: Errors:
Error: BatcherImplTest.testElementsNotLeaking:448 � TestTimedOut test timed out after 500 milliseconds
```
贡献指南
调研方向
从第 448 行的 BatcherImplTest.testElementsNotLeaking 开始,并在观察到超时的 Windows 环境中使用 Java 11 运行测试。调查超时问题,并确认测试能够可靠地完成而不会出现 500 毫秒时的失败;该 issue 未指出源文件或具体修复方案。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- testing
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100