Repository navigation
Open
Description
Search before asking
- I had searched in the issues and found no similar issues.
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)
- The test was added by [fix](iceberg) Fix MVCC and nested schema evolution edge cases #66345 (Aug 6) asserting
baseSnapshotId == nullfor an explicitly pinned empty read. - [fix](iceberg) Harden external-write lifecycle, OCC, memory, and file ownership #66348 (Aug 14) deliberately changed the semantics: an explicitly pinned
-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). - The old assertion was not updated, so this test has been failing on master since Aug 14.
2. PropertyAnalyzerTest.testAnalyzePartitionInvertedIndexFileStorageFormat
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.apache.doris.common.PropertyAnalyzerTest
.testAnalyzePartitionInvertedIndexFileStorageFormat(PropertyAnalyzerTest.java:412)
- The test was added by [feat](cloud) Support Cloud partition inverted format rollout #66475 (Sep 1) and expects
partition.inverted_index_storage_format = "V1"to be rejected with the partition-level message "only supports V2, V3 and SNII". - But [fix](fe) block inverted index V1 creation in FE #64522 (Aug 24) already made
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=PropertyAnalyzerTest
Suggested fixes:
- Failure 1: update the assertion to
assertEquals(Long.valueOf(-1L), txn.getBaseSnapshotId())(matching the intent documented in [fix](iceberg) Harden external-write lifecycle, OCC, memory, and file ownership #66348). - Failure 2: either accept either rejection message in the assertion, or have
analyzePartitionInvertedIndexFileStorageFormatsurface its own message forV1before delegating toanalyzeInvertedIndexFileStorageFormat.
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?
- Yes I am willing to submit a PR!
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-][UT] Two test failures on current master: IcebergWritePlanProviderTest and PropertyAnalyzerTest contradict behavior of #66348 / #64522[/-][+][Bug] Two FE UT failures on current master[/+]