Skip to content

[4.4.x] [itests] Fix flaky LogTest - #3007

Merged
jbonofre merged 1 commit into
apache:karaf-4.4.xfrom
jbonofre:backport-3006-karaf-4.4.x
Oct 16, 2026
Merged

jbonofre merged 1 commit into
apache:karaf-4.4.xfrom
jbonofre:backport-3006-karaf-4.4.x

Conversation

@jbonofre

Copy link
Copy Markdown
Member

Backport of #3006 to karaf-4.4.x.

LogTest fails randomly with IllegalStateException: Unrecognized configuration because log:set updates the pax-logging configuration asynchronously and the test read it back immediately.

  • assertSetLevel polls log:get and log:list (up to 30 seconds) until the new level is visible.
  • Alias calls (log:list, ld) no longer wait 30 seconds for a command service that is never registered.

Only LogTest is changed. itests/test compiles; LogTest was not run locally.

log:set updates the pax-logging configuration asynchronously, so reading it right after can fail with 'Unrecognized configuration' or return the previous level. Wait for the new level to be applied instead of failing right away.

log:list and ld are aliases, not command services: don't wait 30 seconds for a service that is never registered on each call.

(cherry picked from commit fd965a1)
@github-actions

Copy link
Copy Markdown

Test Results

  672 files  ±0    672 suites  ±0   59m 17s ⏱️ - 4m 35s
1 035 tests ±0    992 ✅ ±0   43 💤 ±0  0 ❌ ±0 
2 833 runs  ±0  2 713 ✅ ±0  120 💤 ±0  0 ❌ ±0 

Results for commit 417e3fb. ± Comparison against base commit c058cc3.

@jbonofre
jbonofre merged commit 498a2d9 into apache:karaf-4.4.x Oct 16, 2026
7 checks passed
@jbonofre
jbonofre deleted the backport-3006-karaf-4.4.x branch October 16, 2026 03:58
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

Successfully merging this pull request may close these issues.

1 participant