Uh oh!
There was an error while loading. Please reload this page.
Fix embedded server rebuildIndex failing with Connect Error - #685
Merged
vharseko merged 1 commit intoJul 8, 2026
Merged
Conversation
EmbeddedDirectoryServer.rebuildIndex() is an offline-only operation (it requires the server to be stopped), but RebuildIndexParameters did not pass the --offline flag to the rebuild-index tool. Since TaskTool runs locally only when --offline is given, the tool went into task scheduling mode instead: it prompted for the bind password and tried to connect to the tasks backend of the stopped server, failing with 'Connect Error' and exit code 1. Move EmbeddedDirectoryServerTestCase out of the "slow" group into the default build (11 tests, ~1 minute). testSetupFromArchive stays in the "slow" group for now: it fails with "Time service not started" because the slf4j adapter still routes through the stopped main server's error log publishers; it will be enabled together with the fix for that.
maximthomas
approved these changes
Jul 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
EmbeddedDirectoryServer.rebuildIndex()always fails with:The tool output shows what actually happens:
rebuildIndex()is an offline-only operation (it requires the server to be stopped), butRebuildIndexParametersdid not pass--offlineto therebuild-indextool.TaskToolruns locally only when--offlineis given, so the tool went into task scheduling mode: prompted for the bind password and tried to connect to the tasks backend of the stopped server.Found by running the
slowTestNG group (excluded from CI), whereEmbeddedDirectoryServerTestCase.testRebuildIndexOfflinefails.Fix
--offlinetoRebuildIndexParameters.toCommandLineArguments().EmbeddedDirectoryServerTestCaseout of theslowgroup into the default build (11 tests, ~1 minute).testSetupFromArchivestays in theslowgroup for now: it fails with "Time service not started" because the slf4j adapter still routes through the stopped main server's error log publishers — it will be enabled together with the fix for that issue.Verification
testRebuildIndexOfflinepasses (offline rebuild executes and the server restarts).