You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "goutamadwant (via GitHub)" <gi...@apache.org> on 2026/08/26 05:38:00 UTC
[PR] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
goutamadwant opened a new pull request, #11967:
URL: https://github.com/apache/seatunnel/pull/11967
### Purpose of this pull request
Related to #10394.
This adds the Google Cloud Storage source slice only.
- Reuses the existing multiple-table file source for formats, schema discovery, splitting, and continuous discovery
- Supports `gs://` bucket URIs with object paths configured separately
- Supports Application Default Credentials, an optional service-account JSON key file, and additional `fs.gs.*` properties
- Registers the connector in plugin mapping, distribution packaging, and default plugin configuration
- Adds English and Chinese documentation and dependency license metadata
GCS sink, BigQuery, and AlloyDB are outside the scope of this PR.
### Does this PR introduce _any_ user-facing change?
Yes. Users can configure `GcsFile` as a source for files stored in Google Cloud Storage. Existing file connectors are unchanged.
### How was this patch tested?
Added focused tests for bucket validation, ADC and service-account configuration, property precedence, factory options, and Hadoop `gs` filesystem class resolution.
Verified on JDK 8 and JDK 11:
```shell
./mvnw -pl seatunnel-connectors-v2/connector-file/connector-file-gcs test
./mvnw -q -DskipTests verify
```
Both focused runs passed with 8 tests. A credentialed GCS environment was not available, so this PR does not claim a live cloud read.
### Check list
* [x] Added the GCS connector license and NOTICE information for the new shaded runtime JAR.
* [x] Added English and Chinese connector documentation.
* [x] No update to `incompatible-changes.md` is required because this only adds a new connector.
* [x] Connector packaging was reviewed:
1. Updated `plugin-mapping.properties`
2. Updated `seatunnel-dist/pom.xml`
3. Existing connector and file label scopes cover the new module
4. Focused tests cover configuration and the filesystem integration boundary; no credentialed cloud E2E was added
5. Updated `config/plugin_config`
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx merged PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5504624834
@davidzollo CI's are clear and green and reviews are clean too. Can you check and R&M this? thanks!
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5469801714
<img width="1290" height="160" alt="image" src="https://github.com/user-attachments/assets/36e305ca-5424-44e1-b625-afcd162a228d" />
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5476960503
Thanks for checking back in, @SEZ9. Just to make sure we're not talking past each other: my previous review (posted a few hours before this one, on the same head `d4835e525870`) went through all 8 of these findings individually with source evidence, and I ended up in a different place on most of them — happy to recap so we're arguing from the same starting point:
- **F8 (enum ordinal)** — resolved by the `dev` merge, verified against `origin/dev`'s current `FileSystemType.java` (GCS is appended last, no existing constant's ordinal moved).
- **F1 (`hadoop_gcs_properties` passthrough)** and **F7 (non-atomic rename vs. `exactly-once`)** — I checked and both patterns are pre-existing and identical in `connector-file-s3` (`hadoop_s3_properties` is the same unrestricted map; S3A's `rename()` is also copy-then-delete with the same `exactly-once` claim). I don't think it's right to hold GCS to a stricter bar than the sibling connector it's modeled on for something this PR doesn't introduce — I'd rather see these filed as cross-cutting issues against `connector-file-base` / all cloud connectors. Downgraded to Low.
- **F2 (SPI file collision)** — the root `pom.xml`'s shared `maven-shade-plugin` execution already configures `ServicesResourceTransformer`, which is exactly what merges colliding `META-INF/services/org.apache.hadoop.fs.FileSystem` files at shade time, and S3/OBS ship the identical hand-written SPI file for the identical reason. Downgraded to Low, "watch if the connector version bumps."
- **F6 (no fail-fast validation of `service_account_key_file`)** — agreed this is real, rated Low-Medium, non-blocking.
- **F3/F4 (license inventory)** and **F5 (no e2e for a real `gs://` read)** — these are the two I kept as genuine **Medium, blocking** issues, for the reasons in my last review: the `Dependency licenses` CI job has actually been `skipped` (not `success`) on every run since the original failure, so the `known-dependencies.txt` removal is asserted but not CI-proven; and `connector-file-s3-e2e` shows a credential-free Testcontainer e2e (MinIO for S3, `fake-gcs-server` would be the GCS equivalent) is the established in-repo pattern, not an optional nice-to-have gated behind a live cloud account.
So my current position is: this PR is "ready to merge after fixes," with exactly two concrete blockers — an actual (non-skipped) run of the license check, and a no-credential e2e test — and the rest resolved or downgraded with the reasoning above. If you still see it differently on any of the downgraded points, I'm glad to keep digging, but it'd help to know specifically which piece of that counter-evidence you think doesn't hold (e.g., if you think `ServicesResourceTransformer` isn't actually wired into this module's effective shade config, or the S3 precedent doesn't actually apply here) — the two open blockers themselves I think we're already aligned on.
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5520688582
Thank you for your contribution. This is a great job
Non blocking suggestion:
Further annotations on core methods and special fields can be added based on Daniel suggestions,
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5459176784
Follow-up on CI status for this review round: the `Build` check has now completed on the head I reviewed (`0287252d`), and it is `FAILURE` — specifically the **`Dependency licenses`** job. The diff it reports is a real, single-line gap:
```
-gcs-connector-hadoop3-2.2.33-shaded.jar
```
`tools/dependencies/known-dependencies.txt` is missing the `gcs-connector-hadoop3-2.2.33-shaded.jar` entry, so the automated dependency-license cross-check fails. This directly narrows what I said in my review under the registration-matrix check (I listed `known-dependencies.txt` as cross-checked and complete — that was based on a source read, not a CI-verified diff, and the CI run had not finished at review time). Concrete next step: add `gcs-connector-hadoop3-2.2.33-shaded.jar` to `tools/dependencies/known-dependencies.txt` and push; that should be sufficient to turn the `Dependency licenses` job green.
The other failing job on this head (`jdbc-connectors-it-part-1 (11, ubuntu-latest)`) failed on a Maven Central `429 Too Many Requests` while resolving the wrapper jar (infra flake, unrelated to this PR's code) — a rerun should clear that one on its own, no action needed there.
Once the `known-dependencies.txt` entry is added and the full build is green, this is good to merge from my side; the rest of my review (Recommended fixes, non-blocking) still stands.
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5488206647
@DanielLeens @SEZ9 Addressed the two remaining review items
- added a real fake-gcs-server E2E that opens gs:// discovers the object split reads the file and verifies the parsed rows
- scoped the GCS OpenCensus daemon thread exemptions to the GCS E2E lifecycle so thread leak detection stays active for other connectors
- ran the dependency license check and confirmed the known dependency inventory is unchanged
Local verification with Java 11
- GCS unit tests: 8 passed
- thread exemption tests: 24 passed
- focused reactor package: 66 modules passed
- full reactor install: 289 modules passed
- fake GCS E2E on Zeta and Spark 3.3: 2 passed
- tools/dependencies/checkLicense.sh: passed
Flink and Spark 2.4 are excluded because their current E2E images use Hadoop 2.7 while the GCS connector uses the Hadoop 3 artifact
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5518355885
@davidzollo confirming from my side: this is accurate. I re-reviewed on this same head (`1adc17f`) after the fork's full `Build` run finished, including `connector-file-gcs-e2e` running green rather than relying on local-only verification, and I don't have any open blockers left. Both items I'd flagged earlier (dependency-license check, no-credential e2e) are addressed on this head.
No objection from me to merging. Thanks for the good work here, @goutamadwant.
--
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] [Feature][Connector-V2] Add Google Cloud Storage file source [seatunnel]
Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on PR #11967:
URL: https://github.com/apache/seatunnel/pull/11967#issuecomment-5460632704
Addressed the dependency-license failure by removing the standalone GCS connector inventory entry. The dependency is shaded into the connector jar and is not shipped separately. I also added the requested Javadocs and the focused module passes with 8 tests.
--
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