lokeshj1703 opened a new pull request, #19755:
URL: https://github.com/apache/hudi/pull/19755
### Describe the issue this Pull Request addresses
closes #19754
### Summary and Changelog
For a pre-table-version-8 table, `HoodieWriteHandle#createLogWriter` opened
the log writer at the latest existing log file's version
(reopening/append-targeting it). This changes it to target a new version
(latest + 1) so the write does not depend on append support for the latest log
file. The table-version-8+ path derives log file names differently and is
unaffected.
Adds `TestHoodieAppendHandle.testCreateLogFileWriterLogVersion`,
parameterized over table versions {SIX, EIGHT, NINE}, asserting the pre-v8
writer increments the version when a log file is present and the v8+ path is
unchanged.
Mirrors the equivalent change on the Onehouse internal 1.x line.
### Impact
Pre-v8 MOR log writes create a new log file version instead of reopening the
latest one. The v8+ path is unchanged.
### Risk Level
low. Confined to pre-v8 log-writer version selection and covered by a unit
test.
### Documentation Update
none
### Contributor's checklist
- [ ] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Enough context is provided in the sections above
- [ ] Adequate tests were added if applicable
--
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]