You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "Dev-next-gen (via GitHub)" <gi...@apache.org> on 2026/09/11 08:23:33 UTC

[PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Dev-next-gen opened a new pull request, #12269:
URL: https://github.com/apache/seatunnel/pull/12269

   ### Purpose of this pull request
   
   While going through the recent locale fixes (#11894 for `JobStatus`, #11994 for the rename transforms) I looked for the same `valueOf(x.toUpperCase())` pattern elsewhere and found one in `AbstractPluginDiscovery.findPluginJarPath`:
   
   ```java
   final String pluginType = pluginIdentifier.getPluginType().toLowerCase();
   ...
   PluginType type = PluginType.valueOf(pluginType.toUpperCase());
   ```
   
   The plugin type comes in as `"sink"`, `"source"` or `"transform"`. When the JVM default locale is Turkish (or Azerbaijani), `"sink".toUpperCase()` returns `"SİNK"` with a dotted capital I, so the lookup throws:
   
   ```
   java.lang.IllegalArgumentException: No enum constant org.apache.seatunnel.common.constants.PluginType.SİNK
   ```
   
   This line runs as soon as a matching jar is found under `connectors/`, so on such a JVM every sink that is resolved from the connectors directory fails to load. Sources and transforms are not affected because neither word contains an `i`.
   
   The fix passes `Locale.ROOT`, like the earlier locale fixes did. I left the `toLowerCase()` calls on the identifier alone: as far as I can tell from the code, their results only feed `equalsIgnoreCase`, `startsWithIgnoreCase` and `contains("cdc")`, which do not break the lookup, so I kept the diff to the line that actually throws.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Only for JVMs running with a Turkish or Azerbaijani default locale, where sink plugin jars are now discovered instead of failing with the exception above. No public signature changes: the edited line is inside the private `findPluginJarPath`, and for the three inputs it can receive (`source`, `sink`, `transform`) `toUpperCase(Locale.ROOT)` returns the same string as `toUpperCase()` under every other default locale, so behaviour elsewhere is unchanged.
   
   ### How was this patch tested?
   
   I added `getSinkPluginJarPathsUnderTurkishLocale` to `SeaTunnelSourcePluginDiscoveryTest`. It reuses the existing `duplicate` fixture, sets the default locale to `tr-TR`, resolves the `Clickhouse` sink jar and restores the locale afterwards (guarded with `@ResourceLock("default-locale")`, as in `JobStatusTest`).
   
   Without the change in `AbstractPluginDiscovery` the new test fails:
   
   ```
   [ERROR] getSinkPluginJarPathsUnderTurkishLocale  Time elapsed: 0.013 s  <<< ERROR!
   java.lang.IllegalArgumentException: No enum constant org.apache.seatunnel.common.constants.PluginType.SİNK
   [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0
   ```
   
   With the change:
   
   ```
   ./mvnw test -pl seatunnel-plugin-discovery
   [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```
   
   The spotless check runs as part of that build and passes. I ran it locally on JDK 17.
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If necessary, please update `incompatible-changes.md` to describe the incompatibility caused by this PR.
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     2. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
     3. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
     4. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
     5. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)
   
   AI tools used
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6964384270

   @Dev-next-gen thanks for the follow-up. Keeping `getSinkPluginJarPathsUnderTurkishLocale` in `SeaTunnelSourcePluginDiscoveryTest` is fine with me. Reusing the `duplicate` fixture and the jars from `before()` is a reasonable justification, and the comment you added in 528f5e3a1 settles the test-placement point.
   
   From the latest review on this thread, I understand the earlier points now stand as follows:
   
   - **CLI converters:** the two converters in seatunnel-starter that used `PluginType.valueOf(value.toUpperCase())` now use `Locale.ROOT`, so `-pt sink` resolves under tr-TR.
   - **Multi-jar branch:** the Turkish-locale test now covers the multiple-jar selection as well as the single-jar case.
   - **Core fix:** the `Locale.ROOT` change in `AbstractPluginDiscovery` remains correct and minimal, and no docs or changelog action is needed.
   
   Two small things I'd still like you to confirm:
   
   1. **Resource lock on the Turkish-locale test:** the lock was flagged earlier as inert in this module, and a sibling test uses a different lock key. Does the lock actually take effect here, and are the keys aligned so the locale-mutating tests can't run concurrently? If it has no effect in this module, please say so in the PR.
   2. **Remaining `toLowerCase()` calls:** have the bare calls on the identifier in the same method been switched to `Locale.ROOT` too? This one is style-level and not a blocker.
   
   Thanks also for the local JDK 17 run (`spotless:check` passing, `SeaTunnelSourcePluginDiscoveryTest` with 6 tests, 0 failures and 0 errors).
   
   <!-- streview-comment:2424 -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-7065156039

   @DanielLeens thanks for pinning down that the check payload means "no fork run found" rather than a pending approval; that narrows it to the fork itself. I went through your steps again today on the unchanged head `8a49d71e4e3094e5ebb9d512801708978d48b1c3`. Re-enabling from the API is accepted (`PUT .../actions/workflows/355892482/enable` and `PUT .../actions/permissions` with `enabled=true` both return success), but the dispatch is still refused:
   
   ```
   $ gh workflow run build_main.yml -R Dev-next-gen/seatunnel --ref fix/plugin-discovery-sink-locale
   could not create workflow dispatch event: HTTP 422: Actions has been disabled for this repository.
   ```
   
   The runs API still returns 0 runs for `8a49d71e4`, and the newest run on the fork is still 34970053909 from 2026-09-15. Other forks under the same account have no runs either, so this looks like a restriction at the account level and not something in this repository's settings. I can't lift it from here, so there is no exact-head Build to link yet.
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-7212903074

   Thanks for correcting the description and separating the starter-converter fix already on dev from this plugin-discovery change. No new code fix is claimed or requested on this unchanged head. Please keep the prose count consistent with the six Locale.ROOT sites in the line list you supplied (430-432, 459-460 and 470); that wording detail does not reopen my source clearance. Current-head CI and the repository approval gate remain separate.
   
   This is a discussion/gate follow-up on unchanged head `8086fa78333040068ec1f56595f1b6a2a3a9d9d7`, not a new full source review. Base `dev` compare: `diverged`, ahead 8 / behind 2. Branch drift alone is not a request to sync. No local build/test/runtime execution was performed. Daniel has READ permission; any required write-capable maintainer approval or historical-review dismissal remains separate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-7098511635

   Thanks for the concrete API results. I agree that the repository enable switch alone has not restored execution: the dispatch refusal is the actionable fact, and there is still no Build for this head in the current snapshot. The account owner needs to resolve the Actions restriction with GitHub Support or the relevant account administrator, then dispatch the existing Build on this branch. The cause may be above repository settings, but billing is not independently confirmed. No locale-code change, empty commit or sync with dev is requested to work around an account-level refusal.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-7208008177

   @DanielLeens you're right that the description had drifted from the code. I've updated it. The Purpose section now says that all five `toLowerCase()` calls in `getPluginMappingPrefix` and `findPluginJarPath` pass `Locale.ROOT`, and that the two starter converters were fixed on `dev` by #13081. The test paragraph now covers the Jdbc two-jar case and the per-category locale restore. The code is unchanged: at `8086fa783` the only case conversions left in `AbstractPluginDiscovery.java` are on lines 430-432, 459-460 and 470, and all six pass `Locale.ROOT`.
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6905386566

   @Dev-next-gen thanks for the follow-up. From your description, b76ec3a51 should cover the open points from the earlier round: the `toUpperCase(Locale.ROOT)` change in `ConnectorCheckCommandArgs` and `MetadataExportCommandArgs`, the `Locale.ROOT` arguments on the remaining `toLowerCase()` calls in `getPluginMappingPrefix`/`findPluginJarPath`, and the discovery test now resolving the `Jdbc` sink so the fixed line is exercised through `selectPluginJar`/`findMatchingUrl`. The before/after run you pasted is helpful context, but I'd like to confirm against the actual diff before marking those items resolved, so I'll go through the changed files in b76ec3a51 rather than rely on the summary.
   
   One minor leftover: the sink-resolution test still lives in `SeaTunnelSourcePluginDiscoveryTest` while asserting sink behaviour. I'm fine keeping it there if moving it would only duplicate fixture setup — a short comment on the test explaining why is enough. Your call.
   
   Once CI has run on b76ec3a51 I'll do a final pass. Thanks again for the thorough trace.
   
   <!-- streview-comment:2374 -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6964677302

   @SEZ9 You were right in your first review: the lock does nothing in either module. Nothing in the repository turns on JUnit parallel execution. Grepping `junit.jupiter.execution` across every `pom.xml` and `junit-platform.properties` only finds `parallel.mode.default = same_thread` in five e2e resource files and never `parallel.enabled = true`, so Jupiter runs the tests in `seatunnel-plugin-discovery` and `seatunnel-starter` one at a time. On the keys: both new tests use `default-locale`, the same key as `JobStatusTest`. The `java.util.Locale` key belongs to the DuckDB tests in `connector-jdbc`, and those run in that module's own surefire JVM (no pom overrides `forkCount` or `reuseForks`), so they can't share a default locale with these tests either way. I kept the annotations so the guard is already there if parallel execution is turned on later. On `toLowerCase()`: yes, b76ec3a51 changed all five, and every case conversion left in `AbstractPluginDiscovery.java` now passes `Local
 e.ROOT` (lines 430-432, 459-460 and 470).
   
   @DanielLeens I applied Issue 1 in 8cef2c678. Both Turkish-locale tests now save `Locale.getDefault(Locale.Category.DISPLAY)` and `Locale.getDefault(Locale.Category.FORMAT)` before switching to tr-TR, and restore them after the global default in `finally`. On JDK 17, `spotless:check` passes on both modules and both classes pass (`SeaTunnelSourcePluginDiscoveryTest`: 6 tests, `ConnectorCheckCommandArgsTest`: 2 tests, 0 failures, 0 errors). The fork has no Build run for 528f5e3a1 or 8cef2c678 (the Actions API returns 0 runs for both SHAs), so I can't link an exact-head CI run yet.
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub)" <gi...@apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-5633400671

   Thanks for the review, @DanielLeens.
   
   The red Build check isn't caused by the diff. My fork was created this morning, and GitHub keeps workflows disabled on a new fork until they're turned on from its Actions tab. The Actions API on Dev-next-gen/seatunnel currently returns zero registered workflows and zero runs for 822e49b, so the detector had nothing to pick up. I'll enable them on the fork and push an empty commit so the Build workflow runs against this branch.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "davidzollo (via GitHub) via commits" <co...@seatunnel.apache.org>.
davidzollo commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6885971367

   ### Implementation Notes and Trade-offs
   
   Head: `760bc09c9bacf540731f7ff6794aeb54c410c6ee`
   
   I synced this branch with `dev` to give the existing plugin-discovery fix a current Build. The old fork Build failed in other suites, including the MinIO image pull and worker-crash cancellation cases described above. The updated branch includes the upstream fixes for those two failures (#12287 and #12377).
   
   The PR still changes only the original plugin-discovery line and its Turkish-locale regression test. The patch is identical relative to the updated base; the merge commit preserves the original branch history. No plugin mapping, API, configuration, or state format changed. The old run was outside GitHub's retry window, and retrying it would have kept the pre-fix base.
   
   Scoped Spotless apply/check and the diff whitespace check passed. The updated head and two-file PR diff were verified on GitHub, which reports no merge conflict. Runtime verification awaits the Build on the updated head.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6905613932

   @SEZ9 I kept the test where it is and added the comment in 528f5e3a1. It reuses the `duplicate` fixture and the jars that `before()` creates, and `getPluginBaseClass` in the same class already resolves `Kafka-Blcs` and `Jdbc` sink identifiers from that fixture, so a separate sink class would only duplicate that setup. The commit only adds the two comment lines above `getSinkPluginJarPathsUnderTurkishLocale`.
   
   On JDK 17 with the new head, `spotless:check` passes and `SeaTunnelSourcePluginDiscoveryTest` runs 6 tests with 0 failures and 0 errors.
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6975956731

   Thanks for supplying the actual dispatch error. That corrects the next step in my previous review: a workflow listed as active does not prove that GitHub will permit repository Actions execution. The HTTP 422 you reported needs the fork owner or GitHub account support to lift the repository restriction first; repeatedly dispatching the same workflow, adding an empty commit, or changing connector code will not resolve it. Once execution is restored, run the existing Build on this same branch and link the result for `8cef2c6783550503fa9a3b0caebb6bc74d9bfb21`. The current API still returns no exact-head Build, and my source assessment remains clear. A write-capable maintainer review is a separate gate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6991939056

   @SEZ9 @DanielLeens the branch had picked up a conflict with `dev`: #13081 (merged today) made the same `toUpperCase(Locale.ROOT)` change to `ConnectorCheckCommandArgs` and `MetadataExportCommandArgs`, with its own Turkish-locale test in `ConnectorCheckCommandArgsTest`. I merged `dev` in 8a49d71e4 (a merge commit, no rewrite) and took the `dev` version of that test, since it covers the same `-pt sink` case. The two starter main files were already identical to `dev`, so the PR diff is now `AbstractPluginDiscovery.java` and `SeaTunnelSourcePluginDiscoveryTest.java` only, and GitHub reports it as mergeable again.
   
   On the merged tree, JDK 17: `spotless:check` passes on both modules, `SeaTunnelSourcePluginDiscoveryTest` runs 6 tests and `ConnectorCheckCommandArgsTest` 2, with 0 failures and 0 errors. With `AbstractPluginDiscovery.java` reverted to `dev`, `getSinkPluginJarPathsUnderTurkishLocale` still fails with `No enum constant org.apache.seatunnel.common.constants.PluginType.SİNK`.
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-7214585873

   Thanks for making the six-site count explicit. It now matches the unchanged head: five Locale.ROOT lower-case conversions at lines 430-432 and 459-460, plus the upper-case conversion at line 470. That closes the wording follow-up; no code update is needed from my side on this point. My existing source clearance stands, with repository CI/reviewer gates still separate.
   
   This is a reply to the description clarification, not another source review or a claim of local runtime validation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-7213390702

   @DanielLeens the description now gives the count explicitly. The Purpose section says "all six case conversions in `AbstractPluginDiscovery`" and names the `toUpperCase` on line 470 and the five `toLowerCase` calls on lines 430-432 and 459-460. The code is unchanged, and at `8086fa783` the file has exactly those six:
   
   ```
   $ git grep -n -E 'to(Upper|Lower)Case' 8086fa783 -- '*/AbstractPluginDiscovery.java'   # path prefix trimmed below
   430  final String engineType = pluginIdentifier.getEngineType().toLowerCase(Locale.ROOT);
   431  final String pluginType = pluginIdentifier.getPluginType().toLowerCase(Locale.ROOT);
   432  final String pluginName = pluginIdentifier.getPluginName().toLowerCase(Locale.ROOT);
   459  final String pluginName = pluginIdentifier.getPluginName().toLowerCase(Locale.ROOT);
   460  final String pluginType = pluginIdentifier.getPluginType().toLowerCase(Locale.ROOT);
   470  PluginType type = PluginType.valueOf(pluginType.toUpperCase(Locale.ROOT));
   ```
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub)" <gi...@apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-5640575217

   @DanielLeens workflows are now enabled on the fork, and the empty commit (5f09e8b) triggered a full Build run: https://github.com/Dev-next-gen/seatunnel/actions/runs/34614982562
   
   The plugin-discovery tests passed on all four unit-test jobs (JDK 8 and 11, Ubuntu and Windows), including `getSinkPluginJarPathsUnderTurkishLocale`. Because the change sits in core, the e2e jobs ran against every engine container rather than Zeta only, and several of them failed. I went through each failing log, and none of them points at plugin discovery:
   
   - all-connectors-it-6 (JDK 11, HudiSeatunnelS3MultiTableIT and HudiSparkS3MultiTableIT) and all-connectors-it-2 (JDK 11, IcebergSourceIT): the MinIO container can't be pulled. Docker answers `pull access denied for minio/minio, repository does not exist`, and when I checked today hub.docker.com returned 404 for the `minio/minio` repository. Every test that starts `minio/minio:RELEASE.2024-06-13T22-53-53Z` should fail the same way until that image reference changes.
   - transform-v2-it-part-2 (JDK 8 and 11, TestPythonTransformIT): the test installs python3 with apt-get inside the Flink 1.13.6 container, and `apt-get update` stops on `Release file for http://deb.debian.org/debian-security/dists/bullseye-security/InRelease is expired`. That InRelease is dated 2026-08-31 with Valid-Until 2026-09-07. The same test passed today in the Build run for #12271, but that run only starts the Zeta container (`Run all container: false` in its log, `true` in this one).
   - all-connectors-it-1 (JDK 8): Maven Central returned 502 Bad Gateway for `retrofit-converters-2.6.0.pom` while resolving the connector-datahub dependencies, before any test ran.
   - engine-v2-it (JDK 8 and 11): `SplitClusterFaultToleranceIT.testStreamJobCancelResolvesWhenWorkerCrashesBeforeCancelAck` expected CANCELED and got FAILED. The same assertion fails at the same line in the Build run for #12265.
   - transform-v2-it-part-1 (JDK 11): `TestFilterRowKindIT.testFilterRowKindMultiTable` on Flink 1.18, where the assert sink counted 93 and 97 rows against a MIN_ROW of 100 and 125 and 150 against a MAX_ROW of 100. The same test fails the same way in the Build run for #12251.
   - all-connectors-it-2 (JDK 8): `CouchbaseIT.testFakeSourceToCouchbaseSink`, where the Couchbase client timed out in WAIT_FOR_CONFIG after an authentication failure against the container. The job was already running the Couchbase sink at that point, so the connector jar had been resolved. The same test also fails at the same assertion in the Build run for #12265.
   - unit-test (JDK 11, Windows) and kudu-connector-it (JDK 11) were cancelled by the 90-minute job timeout. The Windows job had already run SeaTunnelSourcePluginDiscoveryTest (6 tests, 0 failures) before it stalled.
   
   The diff only changes behaviour when the JVM default locale is Turkish or Azerbaijani. Under any other default locale, `toUpperCase()` and `toUpperCase(Locale.ROOT)` return the same string for `source`, `sink` and `transform`. The MinIO and bullseye failures are in the test environment and don't depend on this branch, so I expect them to show up on any PR that runs the full e2e matrix until they are fixed separately.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6890004515

   @SEZ9 the two starter converters were a real gap, thanks for tracing them through to the misleading "only support these options" message. I pushed b76ec3a51 on top of the sync: `ConnectorCheckCommandArgs` and `MetadataExportCommandArgs` now use `toUpperCase(Locale.ROOT)`, the five `toLowerCase()` calls in `getPluginMappingPrefix`/`findPluginJarPath` pass `Locale.ROOT`, and the Turkish-locale discovery test also resolves the `Jdbc` sink, so the `PluginType` from the fixed line now goes through `selectPluginJar`/`findMatchingUrl`. I added `testSinkPluginTypeUnderTurkishLocale` to `ConnectorCheckCommandArgsTest`, which parses `-pt sink` under tr-TR and also calls `MetadataExportCommandArgs.PluginTypeConverter` directly.
   
   I ran both test classes on JDK 17 with the new tests, first against the `dev` versions of the three main files, then with the change:
   
   ```
   # main sources from dev
   getSinkPluginJarPathsUnderTurkishLocale  <<< ERROR!
   java.lang.IllegalArgumentException: No enum constant org.apache.seatunnel.common.constants.PluginType.SİNK
   testSinkPluginTypeUnderTurkishLocale  <<< ERROR!
   java.lang.IllegalArgumentException: The plugin type of seaTunnel only support these options: [source, transform, sink]
   
   # with b76ec3a51
   Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 - in ...SeaTunnelSourcePluginDiscoveryTest
   Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 - in ...ConnectorCheckCommandArgsTest
   ```
   
   `spotless:check` passes on both modules.
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Core] Make plugin type lookup in plugin discovery locale independent [seatunnel]

Posted by "Dev-next-gen (via GitHub) via commits" <co...@seatunnel.apache.org>.
Dev-next-gen commented on PR #12269:
URL: https://github.com/apache/seatunnel/pull/12269#issuecomment-6967062102

   @DanielLeens thanks for checking the workflow state on the fork rather than assuming it, and for the full re-read of 8cef2c678. I tried to start the Build exactly as you suggested, with a manual dispatch of `build_main.yml` on `fix/plugin-discovery-sink-locale` (whose head is 8cef2c6783550503fa9a3b0caebb6bc74d9bfb21), and GitHub refused it:
   
   ```
   $ gh workflow run build_main.yml -R Dev-next-gen/seatunnel --ref fix/plugin-discovery-sink-locale
   could not create workflow dispatch event: HTTP 422: Actions has been disabled for this repository.
   ```
   
   So you're right that the Build workflow itself is listed as `active` and `actions/permissions` answers `enabled: true`, but the repository still won't create runs: the most recent run on the fork is from 2026-09-15 (34970053909), and the runs API returns 0 for 8cef2c678. That's a setting on our side, not something in the PR, and I can't link an exact-head Build until it's lifted.
   
   Found by a defect-hunting pipeline I build and run ([Dev-next-gen](https://github.com/Dev-next-gen)), using Claude Code with Anthropic's Claude Opus 5.5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org