corgy-w commented on PR #10851:
URL: https://github.com/apache/seatunnel/pull/10851#issuecomment-6788855357

   Thanks @DanielLeens for the precise root-cause analysis of Issue 1. Fixed in 
`6b3f8e7820`, on top of a merge of current `dev` (`f5374addb3`) that resolved 
the `docs/zh/connectors/sink/Iceberg.md` conflict.
   
   **What changed**
   
   * Added `connector-cdc-base` as a `test`-scoped dependency of 
`connector-iceberg-e2e`. This is the convention the other CDC E2E modules 
already use (`connector-cdc-mysql-e2e`, `connector-cdc-postgres-e2e`, etc.): 
the CDC connectors declare `connector-cdc-base` as `provided`, but 
`FactoryUtil.discoverFactory` eagerly loads every `Factory` provider on the 
host test classpath, so the base module has to be present at test runtime. The 
two new tests keep using `sink.getSaveModeHandler()`, so the public discovery 
path stays covered instead of being bypassed.
   * Dropped the unused `Thread.currentThread().setContextClassLoader(...)` 
scaffolding from the two tests; it saved and restored the same loader without 
changing it.
   
   **Verification (JDK 11, local)**
   
   ```
   ./mvnw -pl seatunnel-e2e/seatunnel-connector-v2-e2e/connector-iceberg-e2e \
     -DskipUT=true -DskipIT=false \
     
-Dit.test='IcebergSinkWithBranchIT#testHardResetPersistsBranchAndFirstCheckpoint+testDefaultDeleteCommitCreatesMissingBranch'
 \
     verify
   Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
   BUILD SUCCESS
   ```
   
   The assertions now actually execute: the hard reset keeps the 
UUID/schema/spec/sort/location/properties, removes every ref and snapshot, 
recreates the configured non-main branch, the first checkpoint writes into it, 
and the schema-only restore does not truncate again; the default 
`DELETE_COMMIT` path keeps `main`, the retained branch/tag and the history, and 
creates the missing target branch empty.
   
   `connector-iceberg` unit tests also pass (137 tests, 0 failures). The branch 
is `MERGEABLE` again and the new-head Build is queued. Could you take another 
look when CI is green?
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to