Sandor Molnar created KNOX-3388:
-----------------------------------
Summary: Single-EKU test gateway startup is slow/flaky: batch
credential-store alias creation
Key: KNOX-3388
URL: https://issues.apache.org/jira/browse/KNOX-3388
Project: Apache Knox
Issue Type: Improvement
Affects Versions: 3.0.0
Reporter: Sandor Molnar
Assignee: Sandor Molnar
Fix For: 3.0.0
The single-EKU compose entrypoint (gateway-single-eku.sh) creates its 5
credential-store aliases with one {{knoxcli.sh create-alias}} call each. Every
call is a cold JVM boot (~6-8s), so ~30-40s elapses before the gateway JVM even
starts. In CI the "sleep 30" wait starts at container start and is fully
consumed by alias creation, so the gateway binds 8443 only after {{pytest}}
connects -> intermittent "Connection refused" in the single-EKU mTLS suite.
Fix: create all 5 aliases in a single {{knoxcli.sh create-aliases}} invocation.
Container-start -> "Started gateway on port 8443" drops from ~35s to ~9s.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)