Skip to content

[Fix][API] Make the API identifier and type matching independent of the default locale - #13170

Open
sharpca wants to merge 4 commits into
apache:devfrom
sharpca:fix/api-locale-independent-identifier-matching
Open

sharpca wants to merge 4 commits into
apache:devfrom
sharpca:fix/api-locale-independent-identifier-matching

Conversation

@sharpca

@sharpca sharpca commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Purpose of this pull request

Yes, I am contributing this fix to Apache SeaTunnel.

This pull request fixes #13169.

Several seatunnel-api code paths match an identifier or a type name with String#toUpperCase() / String#toLowerCase() without Locale.ROOT, so the result depends on the JVM default locale of the worker.

In a Turkish or Azerbaijani locale an upper-case I lower-cases to the dotless ı and a lower-case i upper-cases to the dotted İ, so a name that contains an i or an I no longer matches the constant it was compared against.

Class Call site Effect under tr-TR
org.apache.seatunnel.api.common.PluginIdentifier hashCode() lower-cases the engine type, the plugin type and the plugin name equals() compares with StringUtils.equalsIgnoreCase, which is locale independent, so two equal identifiers got different hash codes and a HashMap lookup could miss
org.apache.seatunnel.api.metalake.MetalakeConfigUtils MetaLakeType.valueOf(metalakeType.toUpperCase()) the configured type gravitino became GRAVİTİNO, which is not a MetaLakeType constant
org.apache.seatunnel.api.metalake.MetaLakeFactory the client and the mapper registries are keyed by the lower-cased type name and are looked up with the lower-cased enum constant name the registry key was gravitino while the lookup key was gravıtıno, so the lookup failed with Unknown MetalakeClient type: gravıtıno
org.apache.seatunnel.api.metalake.gravitino.GravitinoTableSchemaConvertor the Gravitino type names are lower-cased before they are matched a type name that contains an upper-case I, for example INTEGER, was lower-cased to ınteger and no longer matched, so the column type was not converted

All of these conversions now use Locale.ROOT.

The metalake path is not dead code: MetalakeConfigUtils.getMetalakeConfig is called by the Flink and Spark starters and by the Zeta job config parser, so a job that enables the metalake failed to start on such a worker.

This is disjoint from the other locale pull requests: #13074 covers SeaTunnelDataTypeConvertorUtil and VectorIndex, #13063 covers JdbcDialect and CatalogUtils, and #12269 covers the plugin discovery.

Does this PR introduce any user-facing change?

Yes, in one way:

  • Only for JVMs whose default locale is Turkish or Azerbaijani. A job that enables the metalake now starts instead of failing with No enum constant org.apache.seatunnel.common.constants.MetaLakeType.GRAVİTİNO, and the metalake column types are now converted.

Nothing else changes for the default locale or for the configuration. The change is documented in docs/en/introduction/concepts/incompatible-changes.md and docs/zh/introduction/concepts/incompatible-changes.md.

How was this patch tested?

Three unit tests were added:

  • PluginIdentifierTest#testHashCodeIsIndependentOfDefaultLocale builds two identifiers that are equal ignoring case and asserts that their hash codes are equal under a Turkish default locale.
  • MetalakeLocaleTest resolves the metalake type, and the metalake client and mapper registries, under a Turkish default locale.
  • GravitinoTableSchemaConvertorTest#testConvertTypeIsIndependentOfDefaultLocale converts a column of type INTEGER under a Turkish default locale.

Each test switches the default locale to tr-TR and restores it in a finally block, so the locale cannot leak into the other tests that share the JVM.

./mvnw -pl seatunnel-api -am install \
  -Dtest='PluginIdentifierTest,MetalakeLocaleTest,GravitinoTableSchemaConvertorTest' test

Result: 59 tests, 0 failures. spotless:check passes.

The new tests were also run against the unpatched sources to confirm that they fail there:

  • PluginIdentifierTest: the two identifiers are equal but their hash codes differ (expected: <-1353815929> but was: <1534074303>).
  • MetalakeLocaleTest: the metalake type lookup fails with IllegalArgumentException: No enum constant org.apache.seatunnel.common.constants.MetaLakeType.GRAVİTİNO, and the mapper registry lookup fails with IllegalArgumentException: Unknown MetalakeClient type: gravıtıno.
  • GravitinoTableSchemaConvertorTest: the INTEGER column is not converted.

Check list

…he default locale

Several seatunnel-api code paths matched an identifier or a type name with
String#toUpperCase()/toLowerCase() without Locale.ROOT, so the result depended
on the JVM default locale of the worker. Under a Turkish or Azerbaijani locale
an upper-case "I" lower-cases to a dotless "ı" and a lower-case "i"
upper-cases to a dotted "İ", so a name that contains an "i" or an "I" no
longer matched the constant it was compared against.

PluginIdentifier#hashCode could then return a different value for two
identifiers that equals considers equal, and a job that enables the metalake
failed to start with "No enum constant
org.apache.seatunnel.common.constants.MetaLakeType.GRAVİTİNO".

Use Locale.ROOT in PluginIdentifier, MetalakeConfigUtils, MetaLakeFactory and
GravitinoTableSchemaConvertor, and add a regression test to each of them.

Fixes apache#13169

Signed-off-by: sharpca <110613026+sharpca@users.noreply.github.com>
@sharpca

sharpca commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

CI status on 0604e39ba, the head of this branch.

  • Workflow run 42390745316 (workflow_dispatch of the Build workflow in the fork): success, 96 jobs, 0 failures. That covers License header, Code style, and unit-test on JDK 11 and JDK 17 on both Ubuntu and Windows.
  • The push-triggered run 42390711226 on the same SHA failed in unit-test (17, ubuntu-latest), and I have started a re-run of its failed jobs. The failure is not related to this pull request:
    • it is org.apache.seatunnel.engine.client.SeaTunnelClientTest#testGetMultiTableJobMetrics in seatunnel-engine-client, a module this pull request does not touch;
    • the three test classes this pull request adds all ran and passed in that same job (PluginIdentifierTest 2/0/0, GravitinoTableSchemaConvertorTest 55/0/0, MetalakeLocaleTest 2/0/0);
    • the same job passed in the workflow_dispatch run on the identical commit;
    • seatunnel-api does not enable JUnit parallel execution and Surefire forks one JVM per module, so the default locale that these tests set cannot reach the engine module.
  • The other red jobs in that run were rocketmq-connector-it (container startup) and two shards that were cancelled by the failure.

The change is limited to seatunnel-api plus the two documentation entries, and it is disjoint from #13074, #13063 and #12269. Nothing is pending on the author side.

@sharpca

sharpca commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Both fork runs on this head are green now:

  • 42390745316 (workflow_dispatch): success, 96 jobs, 0 failures.
  • 42390711226 (push): success after re-running its failed jobs. The re-run cleared SeaTunnelClientTest#testGetMultiTableJobMetrics in seatunnel-engine-client, which this pull request does not touch.

The apache-side Build check has not appeared on this pull request yet, because the PR signal workflow that creates it is waiting for approval:

https://github.com/apache/seatunnel/actions/runs/42390733170

Approving that run would let the privileged workflow_run workflow report the fork result as the Build check. Until then gh pr checks reports "no checks reported" for this pull request, although both fork runs above are already green on 0604e39ba.

Nothing is pending on the author side.

@sharpca

sharpca commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

The Build check on this pull request is now green on 0604e39ba, after the PR signal run was approved. Both fork runs on this head were already green before that.

Status on 0604e39ba: Build: pass, Signal pull request update: pass.

Nothing is pending on the author side. The change is limited to seatunnel-api plus the two documentation entries, and it is disjoint from #13074, #13063 and #12269.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this fix, @sharpca. The description is very clear, the regression tests were checked against the unpatched sources, and the scope is nicely tight. I went through the full diff on 0604e39ba and the real call chain in dev.

What Problem Does This PR Solve?

Several seatunnel-api paths fold identifiers or type names with toUpperCase() / toLowerCase() using the JVM default locale. Under tr/az, I folds to dotless ı and i to dotted İ, so:

  • PluginIdentifier#hashCode disagreed with its locale-independent equals (StringUtils.equalsIgnoreCase), breaking the equals/hashCode contract for names containing I/i (for example Iceberg).
  • MetalakeConfigUtils turned gravitino into GRAVİTİNO, so MetaLakeType.valueOf threw and a metalake-enabled job could not start.
  • MetaLakeFactory registry keys and lookup keys diverged.
  • GravitinoTableSchemaConvertor could not match type names such as INTEGER.

Fixes #13169.

1. Code Change Review

1.1 Core logic

Every changed call site now passes Locale.ROOT, which is exactly what the comparisons intend (ASCII identifiers / type keywords):

  • seatunnel-api/src/main/java/org/apache/seatunnel/api/common/PluginIdentifier.java:74-80 - hashCode() now folds with Locale.ROOT, so it is consistent with equals() for every ASCII name.
  • seatunnel-api/src/main/java/org/apache/seatunnel/api/metalake/MetaLakeFactory.java:42-58 - register and lookup use the same root-locale key.
  • seatunnel-api/src/main/java/org/apache/seatunnel/api/metalake/MetalakeConfigUtils.java:58-75 - MetaLakeType.valueOf(metalakeType.toUpperCase(Locale.ROOT)).
  • seatunnel-api/src/main/java/org/apache/seatunnel/api/metalake/gravitino/GravitinoTableSchemaConvertor.java:206, 274, 350 - complex type, simple type and length/scale matching.

Runtime path (verified in dev):

Zeta MultipleTableJobConfigParser / Flink & Spark Task*Command / Conf*ValidateCommand
  -> MetalakeConfigUtils.getMetalakeConfig(jobConfig)        [only when metalake_enabled]
     -> MetaLakeType.valueOf(type.toUpperCase(Locale.ROOT))   (was: GRAVİTİNO -> IllegalArgumentException)
     -> MetaLakeFactory.createClient(...) -> CLIENT_REGISTRY.get(root-lower key)
  -> GravitinoTableSchemaConvertor.convertor(...) per column type

Plugin discovery / any HashMap/HashSet<PluginIdentifier>
  -> PluginIdentifier.hashCode() now agrees with equalsIgnoreCase

The normal path is hit only on a JVM whose default locale is tr/az; on every other locale the folded strings are byte-identical to before, so behavior is unchanged there.

1.2 Compatibility

  • No public API signature, option name, default value or serialized format changes.
  • PluginIdentifier#hashCode values change only on tr/az JVMs, and the hash code is not persisted anywhere (it is only used for in-memory hash collections), so there is no checkpoint/savepoint or wire impact.
  • The env-var name lookups (METALAKE_ENABLED, METALAKE_TYPE, METALAKE_URL) contain no i, so that part is a consistency change with no behavioral effect.

1.3 Side effects

None observed: no extra allocations on a hot path beyond what the old code already did, no new dependency, no new configuration.

1.4 Error handling / logging

Unchanged; the existing IllegalArgumentException messages are kept.

2. Code Quality

2.1 Standards

Style is consistent with existing Locale.ROOT usage in ConfigUtil.convertToEnum. ASF headers are present on the new test files.

2.2 Tests

  • PluginIdentifierTest#testHashCodeIsIndependentOfDefaultLocale - fails on the old code (hash mismatch for Iceberg/iceberg). Stable.
  • MetalakeLocaleTest - both cases throw on the old code. Stable. The assertNotNull checks are weak on their own, but the failure mode being guarded is an exception, so the tests still go red on a regression.
  • GravitinoTableSchemaConvertorTest#testConvertTypeIsIndependentOfDefaultLocale - exact type assertion (BasicType.INT_TYPE). Stable.
  • Locale is restored in finally, and seatunnel-api has no junit-platform.properties enabling parallel execution, so the default-locale mutation cannot leak into concurrent tests. Stability: Stable.

2.3 Docs

The incompatible-changes.md entries are present in both docs/en and docs/zh, and the content matches.

3. Architecture

Doing the fix at each folding site is the right granularity: the comparisons are local and there is no shared helper whose semantics would need to change. The remaining locale-less folds in seatunnel-api are either covered by #13074 (SeaTunnelDataTypeConvertorUtil, VectorIndex) or symmetric within one JVM (DataTypeConvertorFactory registers and looks up with the same fold; ConfigUtil.convertToBoolean only matches TRUE/FALSE, which have no i), so I agree the scope is complete for this issue.

Overlap note for maintainers: draft #13187 (opened later, on 2026-11-08) changes exactly the same four main classes (PluginIdentifier, MetaLakeFactory, MetalakeConfigUtils, GravitinoTableSchemaConvertor) for the same root cause. Since this PR was opened first and also carries the docs entries, it would be good to converge on one of the two so the work is not duplicated.

4. Issue Table

# Location Problem Severity
1 seatunnel-api/src/test/java/org/apache/seatunnel/api/metalake/gravitino/GravitinoTableSchemaConvertorTest.java:972-974 The comment says a lower-case i is upper-cased to a dotted I, but the case this test covers (INTEGER) is an upper-case I lower-cased to a dotless ı. Rewording it would help future readers. Nit, non-blocking
2 seatunnel-api/src/test/java/org/apache/seatunnel/api/metalake/MetalakeLocaleTest.java:64 Optional: assert something concrete about the returned config (for example that the env block is still there) instead of only assertNotNull. Nit, non-blocking

No other reviewer has raised findings yet.

5. Merge Recommendation

Ready to merge. There are no blockers. CI is green on 0604e39ba (Build: pass), and the PR is one commit behind dev with no conflicts. The two items above are optional polish. Thank you again for the careful work!

Address the two optional nits raised on apache#13170:
- GravitinoTableSchemaConvertorTest: the covered case is an upper-case
  I lower-cased to a dotless i (U+0131), not a lower-case i upper-cased to a
  dotted I, so the comment was pointing in the wrong direction.
- MetalakeLocaleTest: assert the content of the returned env block instead of
  only asserting that the returned config is not null.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the quick follow-up, @sharpca! I re-reviewed the current head 31f57240b in full (the whole PR diff against dev, plus the delta 0604e39ba..31f57240b).

What Problem Does This PR Solve?

Several seatunnel-api paths folded identifiers and type names with the JVM default locale. Under tr/az, I/i fold to ı/İ, which broke the PluginIdentifier equals/hashCode contract, made MetaLakeType.valueOf throw for gravitino, desynchronized the MetaLakeFactory registry keys, and stopped GravitinoTableSchemaConvertor from matching names such as INTEGER. Fixes #13169.

What changed since my last review (0604e39ba)

The new commit only touches tests, and it addresses both optional nits from my previous review:

  • seatunnel-api/src/test/java/org/apache/seatunnel/api/metalake/gravitino/GravitinoTableSchemaConvertorTest.java:972-974 - the comment now correctly describes the upper-case I -> dotless ı case that INTEGER exercises. Fixed.
  • seatunnel-api/src/test/java/org/apache/seatunnel/api/metalake/MetalakeLocaleTest.java:66-75 - the test now asserts the env block values (metalake_enabled, metalake_type, metalake_url) instead of only assertNotNull. Fixed. The imports (EnvCommonOptions, Constants.ENV) resolve to existing symbols in seatunnel-api / seatunnel-common.

No production code changed in this commit, so my earlier analysis of the main classes still holds:

Zeta MultipleTableJobConfigParser / Flink & Spark starters
  -> MetalakeConfigUtils.getMetalakeConfig(jobConfig)        [only when metalake_enabled]
     -> MetaLakeType.valueOf(type.toUpperCase(Locale.ROOT))
     -> MetaLakeFactory.createClient(...) -> registry lookup with the same root-locale key
  -> GravitinoTableSchemaConvertor per column type
Any HashMap/HashSet<PluginIdentifier>
  -> PluginIdentifier.hashCode() now agrees with equalsIgnoreCase

On non-tr/az locales the folded strings are byte-identical to before, so behavior is unchanged; no option, default, API signature or serialized format changes. Tests remain stable (locale restored in finally, no parallel JUnit execution in seatunnel-api). Docs entries are present in both docs/en and docs/zh.

Overlap with other PRs

  • #13187 (draft, opened later) changes the same four main classes for the same root cause. This PR was first and also carries the docs entries, so maintainers may want to converge on one of them to avoid duplicated work.
  • #13063 (JDBC field_ide locale) touches JdbcDialect / CatalogUtils in the JDBC connector, so there is no file overlap with this PR.

Issues

# Location Problem Severity
1 docs/en/introduction/concepts/incompatible-changes.md:8, docs/zh/introduction/concepts/incompatible-changes.md The PR currently has merge conflicts with dev. #13061 (Lance BIGINT as int64) was merged and added its entry at the same spot, right under ## dev, in both docs files. Resolving it is just keeping both entries. Blocker (merge conflict)

Best improvement: please sync the latest dev and resolve the conflict by keeping both the Lance entry and your API locale entry in both docs/en and docs/zh.

CI

The fork Build run on this head (42624783515) has 80 successful jobs, including Code style, License header and all four unit-test jobs (JDK 11/17, Ubuntu/Windows). The 4 red jobs are not related to this change:

  • connector-file-sftp-it (JDK 11 and 17): the atmoz/sftp:alpine-3.7 Docker image no longer exists (manifest unknown), which currently breaks SftpFileIT on every PR.
  • all-connectors-it-5: a Hive metastore TTransportException during save-mode handling, an environment issue in a file/Hive connector IT.
  • Dependency licenses: a 40-minute job timeout.

The apache-side PR signal run for this head (42624794011) is waiting for approval, so gh pr checks reports no checks yet. After you sync dev and push, a fresh run will start anyway; please re-run any of the failed jobs above if they hit the same environmental errors.

Merge Recommendation

Ready to merge after fixes. The code and tests look good, and both earlier nits are addressed. The only blocker is the merge conflict in the two incompatible-changes.md files. After that, I will approve again once CI is green on the new head. Thank you again for the careful work!

Sync with the latest dev (apache#13061 merged the Lance BIGINT incompatible-change
entry right under '## dev'). Resolve the conflict in docs/en and docs/zh by keeping
both the Lance entry and the API locale entry.
@sharpca

sharpca commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Hi @DanielLeens, thanks for the re-review. The merge conflict is resolved and dev is synced.

Conflict resolution — merge of dev (535d4237d) into this branch, commit 89e3aa1ef:

  • docs/en/introduction/concepts/incompatible-changes.md and docs/zh/introduction/concepts/incompatible-changes.md: both entries are kept — the Lance BIGINT entry from [Fix][Connector-V2] Create Lance BIGINT columns as int64 #13061 and the API locale entry from this PR. No production code was touched by the merge.
  • The diff against dev is now exactly: PluginIdentifier, MetaLakeFactory, MetalakeConfigUtils, GravitinoTableSchemaConvertor, the three test classes, and +7 lines in each of the two incompatible-changes.md files.

Local verification (JDK 11, Maven 3.9.9):

  • spotless:check is clean.
  • seatunnel-api module: 416 tests run, 0 failures, 0 errors.

CI on this head: the fork Build run 42736298199 finished with 79 jobs successful and 11 skipped. Code style, License header, Dependency licenses and all four unit-test jobs (JDK 11/17, Ubuntu/Windows) are green.

The three red jobs are the same environmental ones you saw on the previous head — connector-file-sftp-it (11 and 17), where the atmoz/sftp:alpine-3.7 image is no longer available, and all-connectors-it-6 with the Hive metastore TTransportException. As you suggested, I re-ran the failed jobs, which is attempt 2 of the same run; it is in progress now.

The apache-side PR signal run for this head is still waiting for approval, as on the previous heads.

Thanks again!

@sharpca

sharpca commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Update on the re-run (attempt 2 of the same run): connector-file-sftp-it failed again with exactly the same error, and the log confirms it is the missing Docker image, not anything in this PR:

com.github.dockerjava.api.exception.NotFoundException: Status 404:
{"message":"manifest for atmoz/sftp:alpine-3.7 not found: manifest unknown: manifest unknown"}
org.testcontainers.containers.ContainerFetchException: Can't get Docker image:
RemoteDockerImage(imageName=atmoz/sftp:alpine-3.7, ...)

The image is referenced by seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-sftp-e2e/src/test/java/org/apache/seatunnel/e2e/connector/file/fstp/SftpFileIT.java:70, which is unchanged on dev as well, so it currently breaks SftpFileIT on every PR. The versioned tags are gone from Docker Hub: atmoz/sftp now only publishes alpine, debian and latest. I can open a separate PR that moves that constant to atmoz/sftp:alpine if you want it fixed.

The remaining jobs of the re-run (all-connectors-it-6 on JDK 11, connector-file-local-it, transform-v2-it-part-2) are still running; I will report the final result here.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sharpca, thanks for resolving the conflict so quickly, and for the detailed CI notes.

Re-checked the new head 89e3aa1e: the only change since my last review (31f57240) is a merge of the latest dev (535d4237). The PR's own diff is unchanged: the same 9 files with identical added and removed lines. The conflict in docs/en/introduction/concepts/incompatible-changes.md and docs/zh/introduction/concepts/incompatible-changes.md is resolved correctly. Both the API locale entry and the Lance BIGINT entry from #13061 are kept under ## dev, no conflict markers are left, and GitHub now reports the PR as mergeable.

Previous review points

  • Issue 1 (merge conflict with dev): Fixed in 89e3aa1e.
  • Both earlier test nits are still fixed. No production code changed.

CI (fork run https://github.com/sharpca/seatunnel/actions/runs/42736298199, attempt 4 still running; the apache-side PR signal run for this head is waiting for workflow approval)

  • unit-test (11, ubuntu-latest) failed with one error: JobStateCleanupDelayTest hit IllegalStateException: Node failed to start! in AbstractSeaTunnelServerTest.before after the 300s Hazelcast startup wait. This is the known environmental Hazelcast startup flake in seatunnel-engine-server. This PR does not touch the engine, and the other 712 tests in that job plus the other three unit-test jobs passed.
  • connector-file-sftp-it will keep failing on this head for the reason you already found (atmoz/sftp:alpine-3.7 is gone). #13203 has now been merged to dev and switches it to atmoz/sftp:alpine. Your merge took dev at 535d4237, two commits before that fix, so you don't need a separate PR.

Suggested next step: merge the latest dev once more (2 commits, including #13203). That picks up the SFTP fix and starts a fresh run, which also re-runs the flaky unit-test job.

Conclusion: Ready to merge

  • Blockers (non-CI): None. The only previous blocker, the merge conflict, is resolved.
  • I'll approve again once Build is green on the head that includes #13203.

Thanks again for the careful work!

Pick up apache#13203, which switches the SFTP E2E image to atmoz/sftp:alpine after
the alpine-3.7 tag was removed from Docker Hub. This clears the two
connector-file-sftp-it failures on this head.
@sharpca

sharpca commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Hi @DanielLeens, done — I merged the latest dev again, so this head now includes #13203.

  • New head 7235d6a32: merge of dev (379292194), which brings in [Fix][E2E] Use an atmoz/sftp tag that still exists in SftpFileIT #13203 (atmoz/sftp:alpine) and [Fix][Connector-V2][Jdbc] Read PostgreSQL binary numeric Infinity as null #12919.
  • The PR's own diff is unchanged: the same 9 files with identical added and removed lines. The only new code on the branch is what dev already carries.
  • Locally: spotless:check is clean and the seatunnel-api module runs 416 tests with 0 failures.
  • A fresh fork Build run is starting on this head (42802276450). connector-file-sftp-it should now pass with the new image tag, and unit-test (11, ubuntu-latest) re-runs; if the Hazelcast startup flake (JobStateCleanupDelayTest, Node failed to start!) shows up again, I will re-run that job.

No separate PR for the SFTP image is needed — thanks for pointing me to #13203.

Thanks again!

@sharpca

sharpca commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Hi @DanielLeens, the Build on this head is green now.

  • Head 7235d6a32 (merge of dev = 379292194, which includes [Fix][E2E] Use an atmoz/sftp tag that still exists in SftpFileIT #13203).
  • The fork Build run 42802276450 finished with success: 85 jobs passed, 11 skipped, 0 failed, 0 cancelled.
  • connector-file-sftp-it (11 and 17) now pass with the atmoz/sftp:alpine image from [Fix][E2E] Use an atmoz/sftp tag that still exists in SftpFileIT #13203.
  • connector-file-local-it needed a couple of re-runs. That job has a 120 minute budget in .github/workflows/backend.yml, and the JDK 17 variant hit that limit on some attempts — GitHub reports such a job as cancelled rather than failure, so it was never a test failure. On the last attempt both variants finished inside the budget.
  • All four unit-test jobs (JDK 11/17, Ubuntu/Windows), Code style, License header and Dependency licenses are green.
  • The PR's own diff is unchanged: the same 9 files with identical added and removed lines.

The apache-side PR signal run for this head is still waiting for workflow approval, as on the previous heads. Ready for your approval whenever you can.

Thanks!

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sharpca, thank you for both updates and for driving CI all the way to green. I checked what you reported and it matches: the new head 7235d6a3 is a merge of dev at 37929219, so it includes #13203, and the fork Build run 42802276450 finished with success on attempt 4 (85 jobs passed, 11 skipped, none failed or cancelled). Your note on connector-file-local-it is also right: a cancelled there means the job hit its 120-minute budget, not a test failure, and both JDK variants passed on the final attempt.

Re-checked the new head 7235d6a3: the only change since my last review (89e3aa1e) is a merge of the latest dev; the PR's own diff is unchanged (the same 9 files with identical patches), and the merge did not touch any PR file.

Previous review points

  • Issue 1 (merge conflict with dev): still fixed.
  • Both earlier test nits remain fixed. No production code changed since my approval of the original change.

CI

Conclusion: Ready to merge

Blockers

  • None.

Thanks again for the careful, locale-safe fix!

@sharpca

sharpca commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Hi @DanielLeens, thank you — glad we could get it to green, and thanks for the three careful reviews along the way.

Nothing is pending on my side for this PR. The only remaining step is the apache-side PR signal run (42802286511), which is waiting for a maintainer to approve the workflow.

One unrelated follow-up worth mentioning, since it keeps interfering with PRs: connector-file-local-it has a 120 minute budget in .github/workflows/backend.yml, and on the current runners its JDK 17 variant regularly hits that limit. GitHub then reports the job as cancelled rather than failure, so it shows up as a red job on runs that are otherwise fine — that is what needed a couple of re-runs here. transform-v2-it-part-2 was raised to 210 minutes for a similar reason, so raising this job to the same budget would stop it from intermittently cancelling unrelated PRs. I can open a small PR for that if you think it is worthwhile.

Thanks again!

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sharpca. The timeout follow-up is now tracked in #13219, which I reviewed separately. Keeping that workflow change in its own PR is appropriate. Its current build skipped the affected file-local IT lane, so the longer budget itself has not been exercised by that run.

The CI fact cited previously has changed. On unchanged head 7235d6a326fbbcfac8e8fc07187fe34210b3ddbe, fork Build 42802276450 completed successfully, and the Apache Build check is now green. My earlier pending/missing-workflow guidance is obsolete. My previous conclusion had no remaining source-side blocker. CI was previously the only remaining blocker from my side; CI is now passing, so the conclusion is being changed to approve.

5. Merge Recommendation

Conclusion: Ready to merge

  1. Blockers — must be fixed: None from my existing source review or current CI. Effective maintainer review remains required; other reviewers retain control of their own outstanding review records.
  2. Recommended fixes — non-blocking: Earlier optional suggestions remain optional. No unrelated source change is requested to chase CI.

Comparison with dev: diverged, ahead 4 / behind 11; no conflict was reported in the comparison snapshot. Behind is metadata, not a sync request. This is a discussion and CI-gate update on an already-reviewed head, not another full source review. No local build or job was executed. Daniel has READ permission: this technical approval does not substitute for a write-capable maintainer's approval/dismissal or merge action.

@sharpca

sharpca commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Hi @DanielLeens, thanks for the approval and for updating the CI gate.

Understood on the permission boundary: your approval is the technical sign-off, and the remaining step is the write-capable maintainer's approval/merge.

I will not sync dev again, since you noted the drift is metadata and no conflict was reported. For the record, against the current dev (dcf97867ac) the diff is still the same 9 files with identical patches, and the head that CI validated (7235d6a32) is the one you reviewed.

Nothing else is pending on the author side for this PR.

Thanks again!

@DanielLeens

Copy link
Copy Markdown
Contributor

Thanks for confirming the reviewed head. The Build for 7235d6a3 is still green and GitHub reports no merge conflict. There is no sync request or other author action from my side; the effective maintainer review is the remaining gate.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A merge-gate correction for unchanged 7235d6a326fbbcfac8e8fc07187fe34210b3ddbe: GitHub now reports actual content conflicts with current dev (compare diverged, ahead 4, behind 44). The earlier statement that there was no conflict / only approval remained no longer describes the branch. Please resolve the conflicts with current dev and link checks for the resulting head. The existing source-clear assessment and successful old-head CI are preserved; neither makes the conflicted branch mergeable. This is a gate clarification, not a new numbered source review. Daniel has READ permission; effective maintainer approval remains separate. No local tests were run.

@SEZ9

SEZ9 commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Hi @sharpca, thanks for the patience on this one, and for confirming the reviewed head.

The merge gate has changed since your last comment. On the unchanged head 7235d6a326fbbcfac8e8fc07187fe34210b3ddbe, GitHub now reports actual content conflicts with current dev (diverged, ahead 4 / behind 44). The earlier "no conflict, no sync needed" guidance no longer applies, and the branch can't be merged as it stands.

The existing source review found no blockers, and that assessment still holds. The successful Build run 42802276450 only covers the old head, so it won't carry over to the resolved one.

Remaining asks:

  1. Please resolve the conflicts against current dev and push the result.
  2. Please link the checks for the new head once they have run.
  3. Please confirm whether the diff is still the same 9 files with the same patches as before. If resolving the conflicts changed any of the PR's own changes, point out where, so that part can be re-checked rather than the whole PR.

The connector-file-local-it timeout follow-up stays separate in #13219, so nothing for it is needed here.

Once the resolved head is up and its checks are linked, the remaining step is the maintainer approval and merge.

@DanielLeens

Copy link
Copy Markdown
Contributor

Thanks @SEZ9, agreed. The unchanged head remains source-clear from my previous full review, but the current comparison still reports actual content conflicts with dev. The author needs to resolve those conflicts and run checks for the resulting head before effective maintainer approval. The separate file-local timeout follow-up stays outside this PR. No new source finding is being added on this unchanged head.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][API] The API level identifier and type matching depends on the JVM default locale

3 participants