Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactiveMongodbPanacheResourceTest is regularly failing #11711

Closed
jaikiran opened this issue Aug 28, 2020 · 6 comments · Fixed by #11828
Closed

ReactiveMongodbPanacheResourceTest is regularly failing #11711

jaikiran opened this issue Aug 28, 2020 · 6 comments · Fixed by #11828
Assignees
Labels
Milestone

Comments

@jaikiran
Copy link
Member

ReactiveMongodbPanacheResourceTest has been failing in our CI jobs. Initially the await timeout used in that test was 1 second. Given our CI issues, I thought it was just a case of the runtime being slow, so I increased the timeout to 10 seconds, but it still fails:

2020-08-28T12:07:01.1800062Z [ERROR] Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 23.519 s <<< FAILURE! - in io.quarkus.it.mongodb.panache.reactive.ReactiveMongodbPanacheResourceTest
2020-08-28T12:07:01.1899699Z [ERROR] io.quarkus.it.mongodb.panache.reactive.ReactiveMongodbPanacheResourceTest.testReactiveBookEntity  Time elapsed: 10.922 s  <<< ERROR!
2020-08-28T12:07:01.2022093Z org.awaitility.core.ConditionTimeoutException: Condition returned by method "callReactiveBookEndpoint" in class io.quarkus.it.mongodb.panache.reactive.ReactiveMongodbPanacheResourceTest was not fulfilled within 10 seconds.
2020-08-28T12:07:01.2039988Z 	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
2020-08-28T12:07:01.2040849Z 	at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
2020-08-28T12:07:01.2041735Z 	at org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
2020-08-28T12:07:01.2042449Z 	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
2020-08-28T12:07:01.2159429Z 	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:864)
2020-08-28T12:07:01.2266484Z 	at io.quarkus.it.mongodb.panache.reactive.ReactiveMongodbPanacheResourceTest.callReactiveBookEndpoint(ReactiveMongodbPanacheResourceTest.kt:203)
2020-08-28T12:07:01.2327458Z 	at io.quarkus.it.mongodb.panache.reactive.ReactiveMongodbPanacheResourceTest.testReactiveBookEntity(ReactiveMongodbPanacheResourceTest.kt:46)
2020-08-28T12:07:01.2627127Z 	at 
@jaikiran jaikiran added the kind/bug Something isn't working label Aug 28, 2020
@jaikiran
Copy link
Member Author

Here's the PR which shows this failure #11690

@quarkusbot
Copy link

/cc @loicmathieu, @evanchooly
/cc @FroMage, @loicmathieu

@FroMage
Copy link
Member

FroMage commented Aug 31, 2020

I dunno, the error I get myself with this test is:

Underlying exception : java.lang.IllegalStateException: Error invoking java.lang.reflect.Executable#getParameters
	at io.quarkus.test.junit.mockito.internal.CreateMockitoMocksCallback.createMockAndSetTestField(CreateMockitoMocksCallback.java:44)
	at io.quarkus.test.junit.mockito.internal.CreateMockitoMocksCallback.beforeAll(CreateMockitoMocksCallback.java:28)
	... 67 more
Caused by: java.lang.IllegalStateException: Error invoking java.lang.reflect.Executable#getParameters
	at net.bytebuddy.description.method.ParameterDescription$ForLoadedParameter$Dispatcher$ForJava8CapableVm.getParameter(ParameterDescription.java:523)
	at net.bytebuddy.description.method.ParameterDescription$ForLoadedParameter$Dispatcher$ForJava8CapableVm.isNamePresent(ParameterDescription.java:489)
	at net.bytebuddy.description.method.ParameterDescription$ForLoadedParameter.isNamed(ParameterDescription.java:277)
	at net.bytebuddy.description.method.ParameterDescription$TypeSubstituting.isNamed(ParameterDescription.java:1080)
	at net.bytebuddy.description.method.ParameterDescription$AbstractBase.asToken(ParameterDescription.java:181)
	at net.bytebuddy.description.method.ParameterDescription$AbstractBase.asToken(ParameterDescription.java:129)
	at net.bytebuddy.description.method.ParameterList$AbstractBase.asTokenList(ParameterList.java:98)
	at net.bytebuddy.description.method.MethodDescription$AbstractBase.asToken(MethodDescription.java:801)
	at net.bytebuddy.description.method.MethodDescription$AbstractBase.asToken(MethodDescription.java:373)
	at net.bytebuddy.dynamic.Transformer$ForMethod.transform(Transformer.java:298)
	at net.bytebuddy.dynamic.Transformer$ForMethod.transform(Transformer.java:253)
	at net.bytebuddy.dynamic.Transformer$Compound.transform(Transformer.java:645)
	at net.bytebuddy.dynamic.scaffold.MethodRegistry$Default$Entry.asPreparedEntry(MethodRegistry.java:596)
	at net.bytebuddy.dynamic.scaffold.MethodRegistry$Default.prepare(MethodRegistry.java:484)
	at net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder.make(SubclassDynamicTypeBuilder.java:213)
	at net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder.make(SubclassDynamicTypeBuilder.java:204)
	at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3595)
	at org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator.mockClass(SubclassBytecodeGenerator.java:199)
	at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:46)
	at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator$1.call(TypeCachingBytecodeGenerator.java:43)
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:152)
	at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:365)
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:174)
	at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:376)
	at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:36)
	at org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker.createMockType(SubclassByteBuddyMockMaker.java:77)
	at org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker.createMock(SubclassByteBuddyMockMaker.java:43)
	at org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker.createMock(ByteBuddyMockMaker.java:29)
	at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:52)
	at org.mockito.internal.MockitoCore.mock(MockitoCore.java:61)
	at org.mockito.Mockito.mock(Mockito.java:1949)
	at org.mockito.Mockito.mock(Mockito.java:1860)
	... 69 more
Caused by: java.lang.reflect.MalformedParametersException: Invalid parameter name ""
	at java.lang.reflect.Executable.verifyParameters(Executable.java:386)
	at java.lang.reflect.Executable.privateGetParameters(Executable.java:416)
	at java.lang.reflect.Executable.getParameters(Executable.java:357)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.bytebuddy.description.method.ParameterDescription$ForLoadedParameter$Dispatcher$ForJava8CapableVm.getParameter(ParameterDescription.java:519)
	... 100 more

@cescoffier cescoffier self-assigned this Aug 31, 2020
@loicmathieu
Copy link
Contributor

This seems to be related to SSE event comming from different threads not correctly handled by RestEasy.
The same kind of test starts failing at the same time on the resteasy-mutiny IT, see #11687

@cescoffier
Copy link
Member

Investigation in progress in #11727.
It seems to be the same SSE related issue.

@cescoffier
Copy link
Member

Handled by #11828.

@cescoffier cescoffier linked a pull request Sep 4, 2020 that will close this issue
@cescoffier cescoffier removed their assignment Sep 4, 2020
@gsmet gsmet added this to the 1.8.0.Final milestone Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants