Skip to content

[Console] Fix H2 quickstart project initialization - #4522

Open
sunlishuo25 wants to merge 1 commit into
apache:devfrom
sunlishuo25:fix/h2-quickstart-project-seed
Open

sunlishuo25 wants to merge 1 commit into
apache:devfrom
sunlishuo25:fix/h2-quickstart-project-seed

Conversation

@sunlishuo25

@sunlishuo25 sunlishuo25 commented Oct 3, 2026 •

Copy link
Copy Markdown

What changes were proposed in this pull request

Closes #4521.

Fix fresh H2 initialization silently omitting the streampark-quickstart project. The seed insert provides 18 values for a 17-column table after the salt column was removed. With the Console's continue-on-error setting, startup succeeds but the project row is missing.

Brief change log

  • Remove the one redundant null from the H2 project seed. No schema or MySQL/PostgreSQL changes.
  • Add H2InitializationTest, which executes the real schema and data scripts against a fresh in-memory H2 database without ignoring errors and checks the project row's field mapping.

Verifying this change

  • Before the SQL fix, the new regression test fails with Column count does not match (21S02 / 21002).
  • After the fix, the test passes; all 238 seed statements execute successfully.
  • Passed the Console service's focused Maven test, Spotless, Checkstyle and Apache RAT checks on JDK 11:
./mvnw -pl streampark-console/streampark-console-service \
  -Dtest=H2InitializationTest test spotless:check checkstyle:check apache-rat:check

CI: SonarCloud passed. The Backend workflow could not start because the pinned dorny/paths-filter action is not allowed by the repository's Actions policy. The E2E workflow is awaiting maintainer approval.

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): no

AI-assisted.

@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

@sunlishuo25
sunlishuo25 marked this pull request as ready for review October 3, 2026 02:31

This branch has not been deployed

No deployments
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.

[Bug] H2 initialization omits the quickstart project

1 participant