apache / apache/hudi

Throw exception for invalid write table version for writers

Open
#17,146 2 comments 0 reactions 1 assignee Claimed by @linliu-code View on GitHub
from-jira priority:high status:pr-available type:improvement
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

https://github.com/apache/hudi/pull/13687#discussion_r2265064168

The following tests fail during writing which can corrupt the table.  There should be a validation to throw exception on such invalid table version.
{code:java}
testBaseHoodieWriteClientUpgradeDecisionLogic

// "8,6,true,NO_UPGRADE", // Auto-upgrade enabled: table=8, write=6, autoUpgrade=true → no version change
// "8,6,false,NO_UPGRADE", // Auto-upgrade disabled: table=8, write=6, autoUpgrade=false → no version change
{code}

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-9701
- Type: Improvement
- Fix version(s):
- 1.1.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.