Skip to content

Fix DataProduct inputPorts/outputPorts orphaned fields migration issue after migration from 1.10.x to 1.12.x - #25634

Merged
sonika-shah merged 3 commits into
mainfrom
fix/data-product-inputports-migration
Jan 30, 2026
Merged

sonika-shah merged 3 commits into
mainfrom
fix/data-product-inputports-migration

Conversation

@sonika-shah

@sonika-shah sonika-shah commented Jan 30, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Summary

  • Fix DataProduct inputPorts/outputPorts orphaned fields migration issue
  • Add SQL migration to remove these fields from data_product_entity JSON

Root Cause

In 1.10.x, inputPorts and outputPorts were added to the DataProduct schema with default empty arrays. In 1.12.x, these fields were removed (ports are now
relationship-based), but no data migration was added to clean up existing data.

When deserializing DataProducts with these orphaned fields, Jackson fails because the schema has additionalProperties: false, resulting in 404 errors, also affecting reindex

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@sonika-shah
sonika-shah requested a review from a team January 30, 2026 06:32
@sonika-shah sonika-shah changed the title Fix DataProduct inputPorts/outputPorts orphaned fields migration issu… Fix DataProduct inputPorts/outputPorts orphaned fields migration issue after migration from 1.10.x to 1.12.x Jan 30, 2026
@github-actions github-actions Bot added the safe to test Add this label to run secure Github workflows on PRs label Jan 30, 2026
@sonika-shah sonika-shah added the To release Will cherry-pick this PR into the release branch label Jan 30, 2026
@gitar-bot

gitar-bot Bot commented Jan 30, 2026 •

Copy link
Copy Markdown
🔍 CI failure analysis for f540d57: Same test (AppsResourceIT.test_triggerApp_200) fails on both PostgreSQL and MySQL with concurrent job conflict. Migration fix working correctly (>99.9% test pass rate).

Integration Test Failures (Both Databases)

Commit: f540d57 (merged with main) ✅ Migration fix working correctly

Same Test Fails on Both Environments

Test: AppsResourceIT.test_triggerApp_200

Error:

ApiException (500): Job is already running, please wait for it to complete.

Affected Jobs:

  1. integration-tests-postgres-opensearch (job 61976559678)

    • 8472/8473 tests passed (99.99% pass rate)
  2. integration-tests-mysql-elasticsearch (job 61976559707)

    • 70/71 AppsResourceIT tests passed
    • Overall high pass rate

Analysis

Type: Consistent test infrastructure issue (race condition)

Root Cause: Test attempts to trigger an application while another job is already running. System correctly rejects duplicate execution, but test doesn't handle this scenario.

Key Insights:

  • ⚠️ Same test fails on both databases → Not database-specific
  • ⚠️ Consistent error pattern → Not random/flaky
  • ✅ Application logic correct → Proper concurrent job protection
  • ⚠️ Test infrastructure issue → Missing concurrent execution handling
  • ✅ Unrelated to PR changes → Only touches DataProduct migration scripts

Migration Fix Status: ✅ SUCCESS

  • No migration errors on either database
  • Integration tests run successfully
  • JDBI ?? operator fix functioning perfectly
  • 99.9% test pass rate confirms system stability

Additional Note

maven-sonarcloud-ci (job 61964596284) is from OLD commit 2896a3e (before JDBI fix) and is no longer relevant.

Code Review ✅ Approved

Clean data migration fix that properly removes orphaned JSON fields from both MySQL and PostgreSQL. The SQL syntax is correct, efficient (only updates affected rows), and well-documented.

Tip

Comment Gitar fix CI or enable auto-apply: gitar auto-apply:on

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonika-shah
sonika-shah merged commit cec1829 into main Jan 30, 2026
@sonika-shah
sonika-shah deleted the fix/data-product-inputports-migration branch January 30, 2026 09:56
sonika-shah added a commit that referenced this pull request Jan 30, 2026
…e after migration from 1.10.x to 1.12.x (#25634)

* Fix DataProduct inputPorts/outputPorts orphaned fields migration issue after migration from 1.10.x to 1.12.x

* escape ? as ?? for JDBI
@sonika-shah

sonika-shah commented Jan 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

cherry-picked to 1.12.0

This branch was previously deployed

1 inactive deployment
test — f540d579 Deployed Jan 30, 2026 by sonika-shah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants