Skip to content

[Fix][CI] Wait for MinIO readiness in S3FileWithFilterIT and fix the benchmark MinIO images - #12478

Merged
davidzollo merged 3 commits into
apache:devfrom
goutamadwant:fix/ci-minio-image
Sep 27, 2026
Merged

davidzollo merged 3 commits into
apache:devfrom
goutamadwant:fix/ci-minio-image

Conversation

@goutamadwant

@goutamadwant goutamadwant commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

This PR first replaced the unpullable quay.io/minio/minio image in the S3-backed E2E tests. #12297 has since fixed the same problem on dev with ghcr.io/teableio/minio@sha256:a1ea29fa.... I merged dev and kept its version of all eight test classes, so this PR no longer changes any E2E test image. Two changes are left:

1. S3FileWithFilterIT: wait for MinIO to be ready

The container waited with Wait.forLogMessage(".*", 1), so start() returned on MinIO's first log line. That line is INFO: Formatting 1st pool, 1 set(s), 1 drives per set., and MinIO prints it before it serves S3 requests. S3Utils.initialize() calls doesBucketExistV2 / createBucket right after start(). It could therefore hit MinIO before MinIO was ready. Usually the AWS SDK's retries hide this.

The container now waits for Wait.forHttp("/minio/health/ready").forPort(S3_PORT), the same wait S3FileConnectDryRunIT already uses. The image, command, credentials and test logic are unchanged.

Local measurement with the dev image over 5 container starts: /minio/health/ready returned 200 between 0 and 36 ms after that first log line. The window is small but real.

2. seatunnel-cli/benchmark/docker: images that can no longer be pulled

#12297 did not touch the CLI benchmark compose file. It still references two images that can't be pulled anonymously:

$ docker compose -f seatunnel-cli/benchmark/docker/docker-compose.yml pull minio minio-init
 Image minio/mc:RELEASE.2024-06-12T14-34-03Z Error pull access denied for minio/mc, repository does not exist or may require 'docker login'

$ docker pull quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z
Error response from daemon: ... unexpected status from HEAD request to https://quay.io/v2/minio/minio/manifests/RELEASE.2024-06-13T22-53-53Z: 401 Unauthorized

The minio and minio-init services now use the same digest as the E2E tests. The image keeps the official entrypoint, so the server /data --console-address :9090 command and the mc ready local healthcheck stay unchanged. It includes mc (RELEASE.2025-04-16T18-13-26Z), so minio-init doesn't need the separate minio/mc image. The README table is updated to match. CI doesn't use this file.

Does this PR introduce any user-facing change?

No. The changes affect one E2E test's container wait and the CLI benchmark's local Docker Compose file. For transparency: the benchmark compose now pulls MinIO from the same pinned ghcr.io/teableio/minio@sha256:a1ea29fa... digest that dev already uses for the E2E tests. That is a third-party mirror, not MinIO's own registry.

How was this patch tested?

Tests ran locally on macOS arm64 with Docker Desktop. JDK 8 was 1.8.0_172 and JDK 11 was Temurin 11.0.19. Environment: TEST_IN_PR=true RUN_ALL_CONTAINER=false RUN_ZETA_CONTAINER=true, so Zeta was the only engine.

  • ./mvnw -B verify -DskipUT=true -DskipIT=false -DfailIfNoTests=false -pl seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-s3-e2e -am -Dit.test='S3FileWithFilterIT,S3FileConnectDryRunIT'
    • JDK 8: S3FileWithFilterIT 3/3, S3FileConnectDryRunIT 6/6, BUILD SUCCESS
    • JDK 11: S3FileWithFilterIT 3/3, S3FileConnectDryRunIT 6/6, BUILD SUCCESS
  • Benchmark compose: docker compose up -d minio minio-init. minio became healthy, and minio-init exited 0 after Bucket created successfully `local/bench`. /minio/health/ready on the host port returned 200.
  • ./mvnw spotless:apply on connector-file-s3-e2e.

The previous head's CI run also covered all eight classes, both Databend classes included. That run used this PR's earlier bitnamilegacy/minio@sha256:aa1752... image, not quay.io and not the ghcr.io/teableio/minio image dev uses now: updated-modules-integration-test-part-1, JDK 8 and JDK 11, with DatabendCDCSinkIT 6/6 and DatabendIT 42/42. This PR no longer changes those classes.

Not verified locally: Flink and Spark engines for S3FileWithFilterIT, and linux/amd64. The rest of the benchmark stack was not run either.

Check list

quay.io/minio/minio now rejects anonymous pulls with 401 and Docker Hub
minio/minio no longer exists, so every S3-backed E2E test fails in
startUp with ContainerFetchException.

Switch the Databend, S3File, Hudi, Iceberg S3 and Paimon tests to
bitnamilegacy/minio:2024.6.13, a build of the same MinIO release, pinned
by digest. That image runs the container command as-is and has no
writable /data, so start the server explicitly on /bitnami/minio/data
(keeping --console-address :9001 for the MinIOContainer users).
S3FileWithFilterIT now waits for /minio/health/ready instead of the
first log line, since the image prints a banner before MinIO listens.

Update the CLI benchmark docker-compose file and README the same way;
its minio/mc init step now uses the same image, which ships mc.
@github-actions github-actions Bot added the e2e label Sep 25, 2026

@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.

What Problem Does This PR Solve?

Every S3-backed E2E test class (Databend x2, S3File x2, Hudi x2, Iceberg-S3, Paimon) has been failing in startUp() with ContainerFetchException since 2026-09-24, because quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z (itself a mid-week replacement for the earlier-dead minio/minio Docker Hub image, from #12287/#12302) now returns 401 UNAUTHORIZED on anonymous pulls. This PR re-points all eight E2E test classes plus the CLI benchmark's local docker-compose.yml at bitnamilegacy/minio:2024.6.13, pinned by digest, and adapts each container's startup command and one wait strategy to that image's different entrypoint/user/data-dir contract.

1. Code Change Review

1.1 Core Logic Analysis

Files/methods touched (all changes are inside startUp()/container-declaration blocks, no production code):

  • seatunnel-cli/benchmark/README.md, seatunnel-cli/benchmark/docker/docker-compose.yml — minio/minio-init service image + command (docker-compose.yml:150,155,167)
  • connector-databend-e2e/.../DatabendCDCSinkIT.java:210-220, DatabendIT.java:237-247 — GenericContainer<> image + .withCommand(...)
  • connector-file-s3-e2e/.../S3FileConnectDryRunIT.java:59-80 — IMAGE/MINIO_DATA_DIR constants + .withCommand(...)
  • connector-file-s3-e2e/.../S3FileWithFilterIT.java:57-79 — image constant + .withCommand(...) + wait strategy swap
  • connector-hudi-e2e/.../HudiSeatunnelS3MultiTableIT.java:57-93, HudiSparkS3MultiTableIT.java:57-93 — MinIOContainer + .withCommand(...)
  • connector-iceberg-s3-e2e/.../IcebergSourceIT.java:103-171 — same pattern
  • connector-paimon-e2e/.../PaimonWithS3IT.java:57-162 — same pattern

Representative before/after (S3FileConnectDryRunIT.java:59-78):

// before
private static final String IMAGE = "quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z";
...
.withCommand("server", "/data")

// after
private static final String IMAGE =
        "bitnamilegacy/minio@sha256:aa1752895e6d2b420e394d55241d5b2c948960715db0a50bb648f430e447e645";
private static final String MINIO_DATA_DIR = "/bitnami/minio/data";
...
.withCommand("minio", "server", MINIO_DATA_DIR)

MinIOContainer usage (IcebergSourceIT.java:164-171, identical pattern in the other three MinIOContainer users):

new MinIOContainer(DockerImageName.parse(MINIO_DOCKER_IMAGE).asCompatibleSubstituteFor("minio/minio"))
        .withCommand("minio", "server", "--console-address", ":9001", MINIO_DATA_DIR)
        .withNetwork(NETWORK)
        ...

MinIOContainer's own constructor sets withCommand("server", "--console-address", ":9001", "/data"); the chained .withCommand(...) call after construction (a plain field overwrite in Testcontainers' fluent API) correctly replaces it before .start(). This is not just reasoning from the API contract — the author's own local runs (PaimonWithS3IT 4/4, both Hudi classes 1/1, IcebergSourceIT 1/1) empirically confirm the override takes effect and asCompatibleSubstituteFor accepts a digest reference.

Runtime path (container startup, all eight classes): startUp() → construct GenericContainer/MinIOContainer with the new image+explicit command → container.start() (Testcontainers pulls by digest, applies the wait strategy) → test body assumes an S3-compatible endpoint is reachable. No engine, checkpoint, serialization or cross-node code is touched — this is entirely test-container bootstrap.

Key Findings:

  • The normal CI path directly exercises this code: every one of the eight startUp() methods is a @BeforeAll/@BeforeEach hook, so any regression here fails the entire test class immediately, not a rare edge branch. This is a precise, load-bearing fix for a hard outage, not a defensive one.
  • The image-contract adaptation (explicit minio server ... command, /bitnami/minio/data instead of /data) is internally consistent across all seven Java files and the compose file, and matches the documented behavioral difference between bitnamilegacy and the official MinIO image (non-root user, no /data, entrypoint doesn't prepend minio).
  • I independently verified both the new digest (bitnamilegacy/minio@sha256:aa1752895e6d2b420e394d55241d5b2c948960715db0a50bb648f430e447e645) and the digest already merged on dev via a different mirror (ghcr.io/teableio/minio@sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e, see Issue 1) are both currently pullable anonymously — the manifest HEAD returns 200 for each on Docker Hub / GHCR respectively.
  • The S3FileWithFilterIT.java:79 wait-strategy fix (Wait.forHttp("/minio/health/ready") replacing Wait.forLogMessage(".*", 1)) is a genuine correctness improvement, independent of which MinIO mirror ultimately ships — the old strategy only proved a log line appeared, not that MinIO was ready to accept S3 calls.
  • Remaining hole: this PR's premise ("every S3-backed E2E test currently fails... on dev") is already false at review time — see Issue 1. That doesn't make the code wrong, but it means the PR cannot land as-is.

1.2 Compatibility Impact

Fully compatible. No production code, public API, config option, protocol, or serialization format is touched. Only E2E test container bootstrap and a local-only CLI benchmark compose file change. The author correctly leaves the "user-facing change" checklist unmarked.

1.3 Performance / Side-Effect Analysis

No new threads, locks, retries, or resource leaks are introduced — the diff only changes an image reference, an explicit command, and (in one file) a wait strategy; teardown code (@AfterAll/close()) is untouched and out of the diff's scope. Digest pinning is a positive: it prevents an upstream :2024.6.13 tag repoint from silently changing test behavior, which is exactly the failure class this whole incident stems from (mutable/unpinned or hub-availability-dependent references). One residual concern, not introduced by this PR but worth naming: relying on any anonymous-pull third-party Docker Hub/GHCR namespace re-introduces the same registry-availability risk category that has already caused two consecutive outages here (minio/minio → quay.io/minio/minio → now a third mirror). See Issue 4.

1.4 Error Handling and Logging

No new exception handling paths. Startup failures still surface as ContainerFetchException/IllegalStateException from Testcontainers, unchanged from before. No sensitive data is introduced (the minioadmin/minioadmin and minio/miniominio test credentials are pre-existing, unchanged, and match the project's established test-only convention). Numbered issues below.

2. Code Quality Assessment

2.1 Coding Standards

Comments are present at every changed constant/container declaration and correctly explain the "no /data, use the image's own volume" constraint — good adherence to the "explain why" expectation for non-trivial test-infra changes. One gap: S3FileWithFilterIT.java:78-79 changes the wait strategy but the comment block above it (lines 57-58) only explains the image swap, not why this file specifically needed a stronger readiness check when the other MinIOContainer-based files didn't touch their wait strategy at all — see Issue 3.

2.2 Test Coverage and Test Stability

This PR only touches E2E test-container bootstrap, so the mandatory flaky-test analysis applies to every changed startUp().

  • No hard sleeps, timing races, or floating-point comparisons are introduced by this diff.
  • DatabendIT.java:254-255's pre-existing Thread.sleep(5000) after minioContainer.start() is unchanged by this PR (outside the diff hunk) — a pre-existing minor flakiness risk, not attributable to this change.
  • The one substantive stability change, S3FileWithFilterIT.java:79, strictly strengthens the readiness signal (HTTP health check vs. "any first log line"), reducing flakiness rather than adding it.
  • CI evidence: gh pr checks on the current head (b4cac43a7c1d) reports Build | pass (fork run goutamadwant/seatunnel#36181020922, 1h9m). Digging into that run's jobs, the updated-modules-integration-test-part-* shards (16 jobs, 8 parts × JDK 8/11) and a separate paimon-connector-it job (JDK 8/11) all report success, and I confirmed by grepping job logs that S3FileConnectDryRunIT, S3FileWithFilterIT, IcebergSourceIT, HudiSeatunnelS3MultiTableIT, HudiSparkS3MultiTableIT, and PaimonWithS3IT each actually ran and passed in at least one shard. DatabendIT/DatabendCDCSinkIT never appear by class name in any of the 16 shard logs, even though connector-databend-e2e is listed in the CI's own detected IT_MODULES set for that run — see Issue 2.

Rating: Risk present — driven specifically by the unconfirmed Databend coverage (Issue 2), not by anything unsound in the code itself.

2.3 Documentation Updates

Not applicable — no user-facing behavior changes, correctly no docs/en/docs/zh updates.

3. Architectural Soundness

3.1 Elegance of the Solution

Precise fix for the immediate CI outage, and digest-pinning is the right instinct. However, as a long-term solution it's explicitly self-described by the author as a stopgap: "bitnamilegacy is also a third-party namespace that could be removed later... I left [an Apache-controlled mirror] out of this PR." I agree with that framing — see Issue 4.

3.2 Maintainability

The per-file MINIO_DOCKER_IMAGE/MINIO_IMAGE/IMAGE constant is duplicated verbatim across seven files rather than centralized in a shared test-util/constants class. Given this exact string has now had to change twice in two weeks across all seven files, a single shared constant would cut future incident-response changes from a 7-file diff to a 1-file diff. Low-severity suggestion, not a blocker.

3.3 Extensibility

No structural concerns beyond 3.2.

3.4 Historical-Version Compatibility

Not applicable — test/CI infrastructure only, no release artifact or upgrade-path impact.

4. Issue Summary

# Issue Location Severity
1 dev already merged a conflicting, independently-developed fix for the identical outage (ghcr.io/teableio/minio, via PR #12297's squash commit 025d08f9bcb), landed after this PR branched. GitHub reports mergeable: CONFLICTING / mergeStateStatus: DIRTY with real textual conflicts in 8 of 10 changed files. DatabendCDCSinkIT.java, DatabendIT.java, S3FileConnectDryRunIT.java, S3FileWithFilterIT.java, HudiSeatunnelS3MultiTableIT.java, HudiSparkS3MultiTableIT.java, IcebergSourceIT.java, PaimonWithS3IT.java High
2 DatabendIT/DatabendCDCSinkIT are in the CI's detected IT_MODULES set but never appear as executed in any of the 16 updated-modules-integration-test-part-* job logs on the current head; author's own description confirms these two classes were not rerun locally against the final commit either. DatabendIT.java:237-247, DatabendCDCSinkIT.java:210-220 Medium
3 Wait-strategy change lacks an inline comment explaining why only this file needed a stronger readiness check (rationale only lives in the PR description). S3FileWithFilterIT.java:78-79 Low
4 bitnamilegacy/* is Bitnami's own frozen/deprecated namespace — same third-party/no-SLA risk category that has already caused two outages for this suite in ~2 weeks. Author already discloses this and scopes a real fix (Apache-hosted mirror) out of the PR. All 7 Java files + docker-compose.yml:150,167 Medium

Issue 3 raised independently; no overlap with Issue 1/2/4 across other reviewers (no prior reviews exist — see Merge Recommendation).

5. Merge Recommendation

Conclusion: Not recommended for merge

1. Blockers — must be fixed

  • Issue 1 (High): The PR cannot be merged as-is — GitHub reports a real CONFLICTING state against the current dev tip, not a stale-branch false positive. This needs a human/maintainer decision, not just a mechanical rebase: dev already ships a working alternative (ghcr.io/teableio/minio) for 8 of these 10 files. Someone needs to decide whether to (a) drop this PR's changes to the 8 overlapping files and keep dev's existing fix, or (b) supersede dev's fix with bitnamilegacy/minio here. Either way, the two files dev's fix never touched — seatunnel-cli/benchmark/README.md and docker-compose.yml — still need this PR's fix regardless of which mirror wins, and the S3FileWithFilterIT.java:79 wait-strategy hardening is valuable independent of the final image choice.
  • Issue 2 (Medium): Before merge, get one confirmed CI (or fresh local) pass of DatabendIT/DatabendCDCSinkIT against the exact final commit — right now the only evidence for those two classes is an earlier, not-quite-final local run plus "it's the same pattern as the other five," which is plausible but not verified.

2. Recommended fixes — non-blocking

  • Issue 3 (Low): add a one-line comment on S3FileWithFilterIT.java:78-79 explaining the banner-vs-listening timing reason for the wait-strategy change, since it's the one file that diverges from the "just swap the image" pattern used everywhere else.
  • Issue 4 (Medium but non-blocking): already disclosed responsibly by the author; worth a maintainer follow-up issue for an Apache-controlled mirror (as publish-e2e-spark-images.yaml does for Spark), not something this PR needs to solve.
  • Consider centralizing the repeated MINIO_DOCKER_IMAGE constant (3.2) so the next mirror change is a one-file diff.

Overall assessment: The engineering here is careful and well-evidenced — digest-pinned, per-file rationale comments, a real before/after local test matrix, and a genuine readiness-check improvement. The blocking problem isn't a defect in this PR's own logic; it's that this is effectively two independent, correct fixes for the same incident racing each other, and dev already merged one of them first (bundled inside an unrelated SMB-connector PR, which is itself worth a quick maintainer note — squash-merging an unrelated CI fix into a feature PR makes it easy to miss in review).

Option A vs Option B for the 8 overlapping files:

  • Option A — keep dev's already-merged ghcr.io/teableio/minio: Zero additional work for those 8 files (already green on dev), and it's a closer drop-in (same entrypoint contract as official MinIO, no command overrides needed). Downside: it's a personal/unofficial GitHub user's re-host with less institutional traceability than Bitnami, and it doesn't fix the CLI benchmark compose file.
  • Option B — this PR's bitnamilegacy/minio: Comes from a named organization's own (if deprecated) namespace, and additionally fixes the CLI benchmark files dev's fix left broken. Downside: needs the extra command/wait-strategy adaptation in 5 files, and requires unwinding dev's already-shipped alternative.

My recommendation: rebase this PR onto current dev, drop the redundant hunks for the 8 conflicting files (deferring to whichever the community prefers, most simply dev's already-landed Option A), and keep only this PR's two genuinely additive contributions — the CLI benchmark fix and the S3FileWithFilterIT wait-strategy hardening — unless a maintainer has a concrete reason to prefer bitnamilegacy over teableio for the shared files.

…hmark MinIO images

Keep dev's MinIO mirror for the E2E tests (from apache#12297) and only add
what it does not cover:

- S3FileWithFilterIT waited for MinIO's first log line, which is printed
  before MinIO serves S3 requests, while S3Utils.initialize() calls the
  bucket API right after start(). Wait for /minio/health/ready instead,
  as S3FileConnectDryRunIT does.
- The CLI benchmark compose still used quay.io/minio/minio and minio/mc,
  which no longer allow anonymous pulls. Use the same digest-pinned
  MinIO image for both services; it ships the mc client.
@goutamadwant goutamadwant changed the title [Fix][CI] Replace the unpullable MinIO image in S3-backed E2E tests [Fix][CI] Wait for MinIO readiness in S3FileWithFilterIT and fix the benchmark MinIO images Sep 26, 2026
@goutamadwant

Copy link
Copy Markdown
Collaborator Author

Thanks for the review. I merged dev (no force push) and trimmed the PR to what dev doesn't cover:

  1. Images: test classes now match dev (ghcr.io/teableio/minio); bitnamilegacy is gone. What's left is the benchmark compose, which uses the same digest for minio and minio-init, because minio/mc no longer allows anonymous pulls (L148-L167).
  2. Databend: DatabendIT and DatabendCDCSinkIT passed on the previous head (JDK 8, JDK 11). This PR no longer touches them.
  3. Wait strategy: comment added (L80-L83).
  4. Shared constant / Apache mirror: left for a separate PR if wanted.

@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 for the quick turnaround — I re-reviewed the full diff against the latest head (7b3cdfeba7). All three items from my previous review are resolved, and I don't see any new blockers introduced by the trim. Details below.

What Problem Does This PR Solve?

  • User pain point: S3FileWithFilterIT waits for MinIO's first log line before calling S3Utils.initialize(), which immediately issues a real S3 doesBucketExistV2/createBucket call. MinIO prints that first log line before it actually starts serving S3 requests, so the test can race MinIO's startup and fail intermittently, independent of which MinIO image is used. Separately, the CLI benchmark's local docker-compose.yml still pointed at quay.io/minio/minio and minio/mc, both of which now reject anonymous pulls, so the benchmark tool is currently broken for anyone who pulls fresh images.
  • Fix approach: Replace the log-line wait with Wait.forHttp("/minio/health/ready").forPort(S3_PORT), the same real readiness check already used by S3FileConnectDryRunIT in the same package. Re-point the benchmark's minio and minio-init services at the same digest-pinned ghcr.io/teableio/minio image dev already uses for the E2E tests (from #12297), since that image ships mc and the benchmark's own healthcheck already assumed an mc-capable image.
  • One-sentence summary: A precise, condition-based readiness fix for a real startup race in S3FileWithFilterIT, plus a matching image fix so the CLI benchmark tooling isn't broken by the same registry-availability problem the E2E tests already hit.

1. Code Change Review

1.1 Core Logic Analysis

Files touched (final, trimmed diff — 3 files, +10/-6):

  • seatunnel-e2e/.../file/s3/S3FileWithFilterIT.java:80-83 — wait-strategy swap only.
  • seatunnel-cli/benchmark/docker/docker-compose.yml:150,167 — minio/minio-init image swap.
  • seatunnel-cli/benchmark/README.md:174 — doc table update to match.

Before/after (S3FileWithFilterIT.java, the only functional change):

// before (still on dev today)
.withCommand("server", "/data")
.waitingFor(Wait.forLogMessage(".*", 1));

// after
.withCommand("server", "/data")
// MinIO logs its first line before it serves S3 requests, and
// S3Utils.initialize() below calls the bucket API right away. Wait for
// MinIO's readiness endpoint, as S3FileConnectDryRunIT does.
.waitingFor(Wait.forHttp("/minio/health/ready").forPort(S3_PORT));

I checked S3Utils.initialize() directly: it calls s3Client.doesBucketExistV2(BUCKET) and, if absent, s3Client.createBucket(BUCKET) immediately after s3Container.start() returns — so the stated race is real, not hypothetical.

Runtime path: startUp() (@BeforeAll) → construct GenericContainer with the new wait strategy → s3Container.start() blocks on Testcontainers' HttpWaitStrategy polling GET /minio/health/ready on the container's mapped port → only once that returns 2xx does start() return → S3Utils.initialize(...) issues the first real S3 call. This is the normal path for every run of this test class, not an edge case — @BeforeAll runs unconditionally before any of the class's test methods.

Key findings:

  • The normal path directly exercises the changed line on every run of the class; this isn't a defensive/rare-path fix.
  • Wait.forHttp(...) is Testcontainers' standard HttpWaitStrategy: it polls the given path with a bounded default startupTimeout (60s) and throws a ContainerLaunchException (wrapping a TimeoutException, with a clear "container startup failed" message) if MinIO never becomes ready — this is a real condition-based wait, not a disguised Thread.sleep, and it cannot hang forever.
  • This is the same idiom already used one file over in S3FileConnectDryRunIT.java (Wait.forHttp("/minio/health/ready").forPort(9000)), so it's consistent with an established, working pattern in this package rather than a novel approach.
  • I confirmed on the current head's own CI run that S3FileWithFilterIT actually executed and passed under this exact wait strategy: updated-modules-integration-test-part-1 (JDK 8 and JDK 11) both report Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 for this class, and both jobs finished BUILD SUCCESS. That's real evidence the new wait strategy works in CI, not just a plausible-looking diff.
  • This version fully resolves what I flagged last round: the branch was merged with dev (merge commit e096bcfadf, no force-push) and the PR was trimmed to drop every file dev already fixed via #12297 (DatabendCDCSinkIT, DatabendIT, S3FileConnectDryRunIT, HudiSeatunnelS3MultiTableIT, HudiSparkS3MultiTableIT, IcebergSourceIT, PaimonWithS3IT). compare(dev...head) now shows ahead_by=3, behind_by=0 with no conflicts — the CONFLICTING/DIRTY state I saw last round is gone.

1.2 Compatibility Impact

Fully compatible. No production code, public API, config option, protocol, or serialization format is touched — this is entirely E2E test-container bootstrap plus a local-only benchmark compose file.

1.3 Performance / Side-Effect Analysis

No new threads, retries, locks, or resource leaks. The wait-strategy change can only make the container-start phase take up to ~60s longer in the pathological case where MinIO is genuinely slow to become ready (versus the old strategy which returned as soon as any log line appeared); in the common case both strategies return quickly since MinIO logs its banner and becomes ready within a couple of seconds. Net effect is a small stability trade for a tiny bit of possible extra wait, which is the right trade for a startup readiness check.

1.4 Error Handling and Logging

No new exception paths. If MinIO fails to become ready, Testcontainers surfaces a clear ContainerLaunchException/timeout, an improvement over the old strategy's failure mode (which would have let the test proceed to a real S3 call against a not-yet-ready server, producing a less obvious AmazonS3Exception/connection-refused failure downstream). No sensitive data introduced; the minioadmin/minioadmin credentials are pre-existing, unchanged, test-only.

2. Code Quality Assessment

2.1 Coding Standards

The new comment on S3FileWithFilterIT.java:80-82 directly addresses what I flagged as missing last round — it now explains why this file needs the stronger check (S3Utils.initialize() calls the bucket API right away) rather than just describing the mechanism. Good, targeted fix.

2.2 Test Coverage and Test Stability

Mandatory stability analysis for the one test file this PR touches:

a) Intermittent-failure risk: None introduced. The change replaces a weak, log-line-based readiness signal with a real HTTP health-check poll — this is a fix in the reduce-flakiness direction, not a new risk.

b) Flaky-test anti-patterns: None present. No Thread.sleep, no fixed-duration wait, no reliance on log-message content, no hard-coded ports (the mapped port is resolved dynamically via .forPort(S3_PORT)), no shared static/global state touched, no order dependency.

c) Stability rating: Stable.
Evidence: S3FileWithFilterIT.java:80-83 uses Testcontainers' HttpWaitStrategy (Wait.forHttp(...)), which polls an actual service-readiness endpoint (/minio/health/ready) rather than sleeping a fixed duration, has a bounded default timeout (60s) with a clear ContainerLaunchException on timeout rather than hanging forever, and mirrors the already-working pattern in S3FileConnectDryRunIT.java in the same package. Real CI evidence on the current head (updated-modules-integration-test-part-1, JDK 8 and JDK 11) confirms the class passes 3/3 tests under this exact strategy.

One non-blocking observation: unlike S3FileConnectDryRunIT, which pairs the same wait strategy with an explicit .withStartupTimeout(Duration.ofMinutes(2)), this file relies on the Testcontainers default of 60 seconds. That's not wrong — it already passed in CI — but under a loaded CI runner it leaves less margin than the sibling file. See Issue 1 below (Low, non-blocking).

2.3 Documentation Updates

Not applicable — no user-facing behavior change. The README.md table update is itself the "documentation," and it correctly matches the new docker-compose.yml image.

3. Architectural Soundness

3.1 Elegance of the Solution

Precise fix. The scope reduction from the previous version is exactly right: it stops re-litigating the MinIO-mirror choice that dev already settled via #12297, and keeps only the two genuinely additive contributions (the readiness-wait hardening and the benchmark compose fix).

3.2 Maintainability

Small, self-contained diff with a clear rationale comment at the point of change. No concerns.

3.3 Extensibility

N/A for a test-infra readiness fix of this size.

3.4 Historical-Version Compatibility

N/A — test/CI and local benchmark-tooling only, no release artifact or upgrade-path impact.

4. Issue Summary

# Issue Location Severity
1 No explicit .withStartupTimeout(...) on the new Wait.forHttp(...) strategy, unlike the sibling S3FileConnectDryRunIT which sets 2 minutes; relies on the Testcontainers default of 60s. S3FileWithFilterIT.java:83 Low

Issue 1 is a new, minor consistency observation on this version's own diff — not a carryover from the previous review (which was superseded by the trim) and not raised by another reviewer.

5. Merge Recommendation

Conclusion: Ready to merge

1. Blockers — must be fixed

  • None. All three items from my previous CHANGES_REQUESTED round are resolved by this commit: the conflicting image fix is gone (branch is merged with dev, ahead_by=3/behind_by=0, no conflicts), the unverified Databend coverage concern is moot (those files are no longer touched), and the missing rationale comment is now present.

2. Recommended fixes — non-blocking

  • Issue 1 (Low): consider adding .withStartupTimeout(Duration.ofMinutes(2)) to match S3FileConnectDryRunIT for a bit more margin under loaded CI. Purely cosmetic/defensive; the test already passes reliably at the default timeout.

Overall assessment: This is now a clean, minimal, well-evidenced fix. The readiness-wait change targets a real race (verified by reading S3Utils.initialize()), matches an established pattern already used elsewhere in the same test package, and is backed by real CI evidence on the current head (3/3 passing on both JDKs) rather than just a plausible-looking diff. The benchmark compose/README fix is a straightforward, low-risk follow-on. I don't see a better alternative implementation for this scope — happy to approve.

davidzollo

This comment was marked as off-topic.

@davidzollo davidzollo 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.

+1 if CI passes.
LGTM, thanks for your work and keep up the good effort!

@davidzollo
davidzollo added this pull request to the merge queue Sep 27, 2026
Merged via the queue into apache:dev with commit cba65b1 Sep 27, 2026
8 checks passed
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.

3 participants