You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "hudi-bot (via GitHub)" <gi...@apache.org> on 2025/11/30 06:28:12 UTC
[I] TestHoodieDeltaStreamer.testHoodieIndexer failure [hudi]
hudi-bot opened a new issue, #15772:
URL: https://github.com/apache/hudi/issues/15772
Sometimes it fails because in the metadata table a rollback occurs and rolls back a commit but the deltastreamer tries to change the instance from requested to inflight. This fails because the requested file has been removed from the timeline
Here is an example of a failing [test stack trace|https://dev.azure.com/apache-hudi-ci-org/apache-hudi-ci/_build/results?buildId=15021&view=logs&j=dcedfe73-9485-5cc5-817a-73b61fc5dcb0&t=746585d8-b50a-55c3-26c5-517d93af9934&l=30526]
{code:java}
Caused by: java.lang.IllegalArgumentException
at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:31)
at org.apache.hudi.common.table.timeline.HoodieActiveTimeline.transitionState(HoodieActiveTimeline.java:633)
at org.apache.hudi.common.table.timeline.HoodieActiveTimeline.transitionRequestedToInflight(HoodieActiveTimeline.java:698)
at org.apache.hudi.table.action.commit.BaseCommitActionExecutor.saveWorkloadProfileMetadataToInflight(BaseCommitActionExecutor.java:147)
at org.apache.hudi.table.action.commit.BaseSparkCommitActionExecutor.execute(BaseSparkCommitActionExecutor.java:172)
at org.apache.hudi.table.action.deltacommit.SparkUpsertPreppedDeltaCommitActionExecutor.execute(SparkUpsertPreppedDeltaCommitActionExecutor.java:44)
at org.apache.hudi.table.HoodieSparkMergeOnReadTable.upsertPrepped(HoodieSparkMergeOnReadTable.java:111)
at org.apache.hudi.table.HoodieSparkMergeOnReadTable.upsertPrepped(HoodieSparkMergeOnReadTable.java:80)
at org.apache.hudi.client.SparkRDDWriteClient.upsertPreppedRecords(SparkRDDWriteClient.java:154)
at org.apache.hudi.metadata.SparkHoodieBackedTableMetadataWriter.commit(SparkHoodieBackedTableMetadataWriter.java:172)
at org.apache.hudi.metadata.HoodieBackedTableMetadataWriter.processAndCommit(HoodieBackedTableMetadataWriter.java:823)
at org.apache.hudi.metadata.HoodieBackedTableMetadataWriter.update(HoodieBackedTableMetadataWriter.java:890)
at org.apache.hudi.client.BaseHoodieWriteClient.lambda$writeTableMetadata$1(BaseHoodieWriteClient.java:355)
at org.apache.hudi.common.util.Option.ifPresent(Option.java:97)
at org.apache.hudi.client.BaseHoodieWriteClient.writeTableMetadata(BaseHoodieWriteClient.java:355)
at org.apache.hudi.client.BaseHoodieWriteClient.commit(BaseHoodieWriteClient.java:282)
at org.apache.hudi.client.BaseHoodieWriteClient.commitStats(BaseHoodieWriteClient.java:233)
at org.apache.hudi.client.SparkRDDWriteClient.commit(SparkRDDWriteClient.java:102)
at org.apache.hudi.client.SparkRDDWriteClient.commit(SparkRDDWriteClient.java:61)
at org.apache.hudi.client.BaseHoodieWriteClient.commit(BaseHoodieWriteClient.java:199)
at org.apache.hudi.utilities.deltastreamer.DeltaSync.writeToSink(DeltaSync.java:713)
at org.apache.hudi.utilities.deltastreamer.DeltaSync.syncOnce(DeltaSync.java:395)
at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer$DeltaSyncService.lambda$startService$1(HoodieDeltaStreamer.java:716)
{code}
## JIRA info
- Link: https://issues.apache.org/jira/browse/HUDI-5733
- Type: Bug
- Epic: https://issues.apache.org/jira/browse/HUDI-4302
- Fix version(s):
- 1.1.0
---
## Comments
10/Feb/23 17:20;shivnarayan;Recently we added eager rollbacks to MDT. Hence a delta commit started by HoodieIndexer will be rolledback by regular writer process.
Similarly, a HoodieIndexer delta commit when started, could rollback a delta commit in MDT from regular ingestion writer.
;;;
---
10/Feb/23 17:23;shivnarayan;Two viable options I see:
# Make LogRecordReader to work w/ multi-writer wrt rollback blocks. then we can make MDT to lazy clean policy for rollbacks. Neat approach, but needs good testing since this is touching regular log blog reads (for any MOR table).
# Little more invovled and not so clean fix. Apply eager rollbacks only for regular delta commits. Deduce delta commits from HoodieIndexer and employ lazy clean policy(based on heartbeat). ;;;
---
10/Feb/23 18:23;guoyihua;We'll take the second approach for fixing 0.13.0 and follow up with the first approach to properly fix the problem.;;;
--
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@hudi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TestHoodieDeltaStreamer.testHoodieIndexer failure [hudi]
Posted by "deepakpanda93 (via GitHub)" <gi...@apache.org>.
deepakpanda93 commented on issue #15772:
URL: https://github.com/apache/hudi/issues/15772#issuecomment-4851580404
This is resolved. The flakiness came from the async HoodieIndexer and the regular ingestion writer both writing to the metadata table with eager rollbacks — one would roll back the other's MDT delta commit, and the other would then fail transitionRequestedToInflight on a now-missing .requested instant (IllegalArgumentException in transitionState).
The fix is HUDI-5817 / [#8001](https://github.com/apache/hudi/pull/8001) ("Fix async indexer metadata writer to avoid eager rollback and failed write cleaning") — the approach @guoyihua outlined here — which shipped in 0.13.1 and is in all later releases, including 1.x. TestHoodieDeltaStreamer.testHoodieIndexer is enabled and stable in CI on current master.
Closing as fixed. (Note: the separate testHoodieIndexerExecutionAfterCommit / testHoodieIndexerExecutionAfterClustering tests are disabled under HUDI-8951, and another indexer test under HUDI-6753 — those are tracked independently of this issue.)
--
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@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TestHoodieDeltaStreamer.testHoodieIndexer failure [hudi]
Posted by "rangareddy (via GitHub)" <gi...@apache.org>.
rangareddy commented on issue #15772:
URL: https://github.com/apache/hudi/issues/15772#issuecomment-4903024031
This issue was reviewed as part of the JIRA-migrated backlog triage.
Findings: This appears to be fixed by #8001 (HUDI-5817) in SparkHoodieBackedTableMetadataWriter. The metadata-table writer was hard-coded to roll back failed writes even for the async indexer (LAZY policy); that eager rollback removed another writer's .requested MDT delta-commit instant, causing the IllegalArgumentException in transitionRequestedToInflight. The PR disables that rollback for the async indexer and adds a guard test. Its description reproduces this exact stack trace. Shipped in 0.13.1 and all later releases.
If you're still hitting this on a recent version, please reopen with repro steps.
Closing as fixed.
--
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@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TestHoodieDeltaStreamer.testHoodieIndexer failure [hudi]
Posted by "deepakpanda93 (via GitHub)" <gi...@apache.org>.
deepakpanda93 closed issue #15772: TestHoodieDeltaStreamer.testHoodieIndexer failure
URL: https://github.com/apache/hudi/issues/15772
--
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@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org