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

Box native integration test failure #2830

Closed
jamesnetherton opened this issue Jun 23, 2021 · 2 comments
Closed

Box native integration test failure #2830

jamesnetherton opened this issue Jun 23, 2021 · 2 comments
Assignees
Milestone

Comments

@jamesnetherton
Copy link
Contributor

Not sure why, but the native application is taking 10 seconds or more to fully start:

Apache Camel 3.10.0 (camel-1) started in 10s509ms (build:0ms init:1ms start:10s508ms)

Hence we get:

ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.161 s <<< FAILURE! - in org.apache.camel.quarkus.component.box.it.BoxIT
[ERROR] testUploadDownloadDeleteFile  Time elapsed: 0.011 s  <<< ERROR!
java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details
	at io.quarkus.test.common.LauncherUtil.waitForCapturedListeningData(LauncherUtil.java:74)
	at io.quarkus.test.common.NativeImageLauncher.start(NativeImageLauncher.java:118)
	at io.quarkus.test.junit.IntegrationTestUtil.startLauncher(IntegrationTestUtil.java:132)
	at io.quarkus.test.junit.NativeTestExtension.doNativeStart(NativeTestExtension.java:150)
	at io.quarkus.test.junit.NativeTestExtension.ensureStarted(NativeTestExtension.java:92)
	at io.quarkus.test.junit.NativeTestExtension.beforeAll(NativeTestExtension.java:65)
@jamesnetherton jamesnetherton self-assigned this Jun 23, 2021
jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Jun 23, 2021
@jamesnetherton
Copy link
Contributor Author

The reason for the slowness is that there seems to be 4 box authentication events that occur before the CamelContext is considered started. In the logs I see:

2021-06-23 13:52:33,180 DEBUG [org.apa.cam.imp.eng.InternalRouteStartupManager] (main) Warming up route id: route1 having autoStartup=true
2021-06-23 13:52:33,655 FINE  [com.box.sdk.BoxAPIRequest] (main) Request
POST https://api.box.com/oauth2/token
Accept-Charset: utf-8
X-Box-UA: agent=box-java-sdk/2.54.0; env=Java/11.0.11
User-Agent: Box Java SDK v2.54.0 (Java 11.0.11)
Accept-Encoding: gzip

jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Jun 23, 2021
ffang pushed a commit to ffang/camel-quarkus that referenced this issue Jun 24, 2021
@jamesnetherton
Copy link
Contributor Author

jamesnetherton added a commit to jamesnetherton/camel-quarkus that referenced this issue Aug 5, 2021
@ppalaga ppalaga closed this as completed in 08615de Aug 5, 2021
@ppalaga ppalaga added this to the 2.2.0 milestone Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants