Search before asking
Version
master: 5fbe3600024 (Sep 1); failure 1 also reproduced on d454100765c (Aug 31 master)
What's Wrong?
Two FE unit tests fail on current master itself. Both are test-vs-code contradictions introduced by upstream PRs landing in a conflicting order.
Found while running the full local FE unit test suite to validate #67310; unrelated to that PR (it only touches MasterOpExecutor / FrontendServiceImpl / thrift definitions, zero overlap with these modules).
1. IcebergWritePlanProviderTest.planMergePreservesExplicitlyEmptyReadAcrossConcurrentFirstAppend
org.opentest4j.AssertionFailedError: an explicitly empty read must leave RowDelta validation unbounded across the first append ==> expected: <null> but was: <-1>
at org.apache.doris.connector.iceberg.IcebergWritePlanProviderTest
.planMergePreservesExplicitlyEmptyReadAcrossConcurrentFirstAppend(IcebergWritePlanProviderTest.java:1727)
2. PropertyAnalyzerTest.testAnalyzePartitionInvertedIndexFileStorageFormat
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.apache.doris.common.PropertyAnalyzerTest
.testAnalyzePartitionInvertedIndexFileStorageFormat(PropertyAnalyzerTest.java:412)
What You Expected?
Both tests should pass on master.
How to Reproduce?
cd fe && mvn test -pl fe-connector/fe-connector-iceberg -am -Dtest=IcebergWritePlanProviderTest
cd fe && mvn test -pl fe-core -am -Dtest=PropertyAnalyzerTest
Suggested fixes:
Anything Else?
- JDK 17, Maven 3.9.16, single-fork surefire
- Failing test files verified identical to master (zero diff)
Are you willing to submit PR?
Search before asking
Version
master:
5fbe3600024(Sep 1); failure 1 also reproduced ond454100765c(Aug 31 master)What's Wrong?
Two FE unit tests fail on current master itself. Both are test-vs-code contradictions introduced by upstream PRs landing in a conflicting order.
Found while running the full local FE unit test suite to validate #67310; unrelated to that PR (it only touches
MasterOpExecutor/FrontendServiceImpl/ thrift definitions, zero overlap with these modules).1.
IcebergWritePlanProviderTest.planMergePreservesExplicitlyEmptyReadAcrossConcurrentFirstAppendbaseSnapshotId == nullfor an explicitly pinned empty read.-1is kept as an OCC fence (IcebergConnectorTransaction.applyBeginGuards, comment "An explicitly pinned -1 is the empty-table generation and must remain an OCC fence"), and thenull-arm was replaced byLong.valueOf(pinnedReadSnapshot).2.
PropertyAnalyzerTest.testAnalyzePartitionInvertedIndexFileStorageFormatpartition.inverted_index_storage_format = "V1"to be rejected with the partition-level message "only supports V2, V3 and SNII".analyzeInvertedIndexFileStorageFormatthrow "Inverted index V1 is deprecated and no longer allowed for new index creation" for anyv1input — which fires before the partition-levelV1check, making that check (and the expected message) unreachable dead code.What You Expected?
Both tests should pass on master.
How to Reproduce?
cd fe && mvn test -pl fe-connector/fe-connector-iceberg -am -Dtest=IcebergWritePlanProviderTestcd fe && mvn test -pl fe-core -am -Dtest=PropertyAnalyzerTestSuggested fixes:
assertEquals(Long.valueOf(-1L), txn.getBaseSnapshotId())(matching the intent documented in [fix](iceberg) Harden external-write lifecycle, OCC, memory, and file ownership #66348).analyzePartitionInvertedIndexFileStorageFormatsurface its own message forV1before delegating toanalyzeInvertedIndexFileStorageFormat.Anything Else?
Are you willing to submit PR?