Skip to content

fix(setup): warn in "check" about an engine the bundled plugins do not fit - #4039

Merged
marevol merged 1 commit into
mainfrom
fix/setup-check-engine-version
Dec 4, 2026
Merged

marevol merged 1 commit into
mainfrom
fix/setup-check-engine-version

Conversation

@marevol

@marevol marevol commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Problem

fess-setup check reported OK engine version 3.10.0 and Everything checks out. against an OpenSearch 3.10.0
engine, while fess-setup install opensearch-plugins without --version fails on that engine: it installs the
3.10.1 plugins, and OpenSearch refuses a plugin built for another version.

Change

check compares the version the nodes report with the plugin version that install opensearch-plugins installs when
no --version is given (component.opensearch.plugin.version; both commands read it through the same method). A
different version is reported as a warning:

  WARN  engine version                3.10.0 (this Fess installs the engine plugins for OpenSearch 3.10.1; for this engine, fess-setup install opensearch-plugins needs --version 3.10.0)
...
Usable, with warnings.

It is a warning, not a failure, and the exit status stays 0: an engine of another version with the plugins of its own
version can run Fess. The existing reports for a cluster whose nodes disagree and for an engine that reports no
version are unchanged.

Tests

  • FessSetupTest: check against a stub engine of another version warns and does not print Everything checks out.
    (fails without the change); against the bundled version it still does.
  • DiagnosticsTest: the new comparison, including a later patch release.
  • All tests of org.codelibs.fess.setup: 294 run, 0 failures.
  • Checked live against OpenSearch 3.10.0 with its 3.10.0 plugins, using the setup jar of a build with the changed
    classes: before the change check printed Everything checks out., after it the warning above (exit status 0 in
    both). install opensearch-plugins into a 3.10.0 home without --version failed and installed nothing; with
    --version 3.10.0 it installed the four plugins. Against OpenSearch 3.10.1 the changed check printed
    Everything checks out.

…t fit

"fess-setup check" said that everything checks out against an OpenSearch
version on which "fess-setup install opensearch-plugins" fails without
--version. Compare the engine version with the plugin version that command
installs, and report a difference as a warning.
@marevol marevol added this to the 15.10.0 milestone Dec 4, 2026
@marevol marevol added the bug label Dec 4, 2026
@marevol marevol self-assigned this Dec 4, 2026
@marevol
marevol merged commit a9f091b into main Dec 4, 2026
2 checks passed
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 this pull request may close these issues.

1 participant