Repository navigation
Fixes #28255: Pin MySQL charset and migrate Flowable tables - #33659
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
# Conflicts: # bootstrap/sql/migrations/native/2.1.0/mysql/schemaChanges.sql
|
Align OpenMetadata database defaults and Flowable table conversions with the existing MySQL 8 schema collation. This avoids mixed-collation joins while upgrading legacy utf8mb3 tables.
Code Review ✅ Approved 1 closed / 1 findings🔴 High risk · Database upgrades convert connected Flowable tables and change schema collation defaults Pins MySQL databases to ✅ 1 closed✅ Quality: DB default collation diverges from Flowable table collation
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |



Describe your changes:
Fixes #28255
Pins the OpenMetadata MySQL database default to
utf8mb4for fresh installs and upgrades. The upgrade also aligns all FlowableACT_*tables as one foreign-key-connected set while preserving the session'sFOREIGN_KEY_CHECKS, preventing legacyutf8mb3schemas from failing during restore.Type of change:
High-level design:
utf8mb4_unicode_ciexplicitly in the MySQL bootstrap scripts and current native migration.utf8mb4_0900_ai_cicollation.ACT_*family because changing only one side of a string foreign key is rejected by MySQL.Tests:
Use cases covered
utf8mb4default.utf8mb3Flowable tables with foreign keys migrate successfully without weakening the constraints.Unit tests
FlowableCharsetMigrationTest.java,FlowableCharsetMigrationMySqlTest.javaBackend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
mvn -pl openmetadata-service -Dtest=IngestionPipelineMigrationEntryPointTest,FlowableCharsetMigrationTest,FlowableCharsetMigrationMySqlTest testagainst MySQL 8; all 9 tests passed.mvn -pl openmetadata-service spotless:check,git diff --check, andmake harness-checksuccessfully.UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Open workspace in Conductor
The PR is not yet safe to merge because the charset work remains attached to an already-applied migration version and the mock-oriented tests still violate an explicit repository testing requirement.
Findings
Summary
This PR pins fresh MySQL databases to
utf8mb4_unicode_ciand adds a MySQL migration hook that aligns FlowableACT_*tables while preserving the session’s foreign-key-check setting.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Run MySQL 2.1.0 data migration] --> B[Query ACT_* table metadata] B --> C{Any charset or collation drift?} C -- No --> D[No-op] C -- Yes --> E[Read session FOREIGN_KEY_CHECKS] E --> F[Disable foreign-key checks] F --> G[Convert every selected ACT_* table] G --> H[Restore original session setting] H --> I[Continue remaining data migrations]Reviews (5) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..."