deepthi912 opened a new pull request, #20301:
URL: https://github.com/apache/pinot/pull/20301
## Problem
A pauseless segment is committed before it is built, so a failed build is
repaired by consuming its offsets again.
For partial upsert and `dropOutOfOrderRecord`, that second pass can produce
different rows: the merge and the
out-of-order drop depend on the upsert metadata when each record arrives.
Today these tables are accepted, and
repair by re-consuming is disabled for them by default (#19909), which
leaves ERROR segments for manual repair.
## Change
- `TableConfigUtils.validatePauselessUpsertModes`, called from
`validateUpsertConfig`, rejects `mode: PARTIAL` or
`dropOutOfOrderRecord: true` on a pauseless table.
- Only a new table, or an update that turns either combination on, is
rejected. Existing tables that already have
the combination can still be updated, so no deployed table breaks.
- `outOfOrderRecordColumn` and dedup are not blocked here.
## Testing
`TableConfigUtilsTest` (96 tests) passes, including the new
`testValidatePauselessUpsertModes`: new-table
rejection for both modes, updates that turn the combination on (via
pauseless or via the upsert mode), and updates
of tables that already have it. Checkstyle, license and spotless pass on
`pinot-segment-local`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]