pvary commented on code in PR #18674:
URL: https://github.com/apache/iceberg/pull/18674#discussion_r4454578685


##########
docs/docs/flink-maintenance.md:
##########
@@ -114,9 +114,15 @@ Notes:
 **State and restart**
 
 - The PK-index worker keeps a keyed row-position index of the target branch in 
Flink state and **maintains it incrementally across checkpoints**: each trigger 
cycle only applies the commits added on the target branch since the last 
indexed snapshot, and the resulting index is persisted with the next Flink 
checkpoint. On failover, the worker resumes from the most recent checkpointed 
index rather than rebuilding from scratch. Its size scales with the number of 
live rows in the table for the configured equality columns; size Flink state 
backend, checkpoint storage, and TaskManager memory accordingly. **RocksDB is 
the preferred state backend** because the PK index can grow beyond the 
available heap and RocksDB spills to local disk instead of failing with an 
`OutOfMemoryError`.

Review Comment:
   ```suggestion
   - The PK-index worker keeps a keyed row-position index of the target branch 
in Flink state, persisted with each Flink checkpoint. Its size scales with the 
number of live rows in the table for the configured equality columns; size 
Flink state backend, checkpoint storage, and TaskManager memory accordingly. 
**RocksDB is the preferred state backend** because the PK index can grow beyond 
the available heap and RocksDB spills to local disk instead of failing with an 
`OutOfMemoryError`.
   ```



-- 
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]

Reply via email to