KAFKA-20633: Update the default value of remote copy lag bytes#22394
Conversation
|
Ping for review. |
|
@kamalcph LGTM. thanks. help to merge. the test should be flaky |
Update documentation for remote copy lag configurations to clarify eligibility checks
|
@kamalcph already passed the flaky test. |
|
Will review this week or next week. Thanks. |
showuon
left a comment
There was a problem hiding this comment.
Changing the default of log.remote.copy.lag.bytes to -1 will change the existing behavior of tiered storage. If user sets [log.local.retention.ms=-1 and log.local.retention.bytes=100000], after this PR, the remote copy lag will become 100000 bytes, instead of the existing behavior: immediately. I don't think this is expected, right?
This trade-off was discussed in the thread. So, the change in behaviour is expected. |
Thanks for the discussion. if (copyLagMs == 0 || copyLagBytes == 0) { cc @kamalcph @showuon @chia7712 is there any issue for this design we missed? the original design is that two default configure items' default is 0. currently. one is -1 and another is 0 to reduce the configure effort for most of the cases. |
Thanks for the explanation. I re-read the KIP and previous PR, I have more understanding now. I think the point is that because lag.ms is 0, it'll be uploaded immediately no matter what lag.bytes is set. OK, looks good. @jiafu1115 , could you please add a short section in tiered storage section to talk about the delay upload feature? It'd be good if you can mention something like what we have in log deletes section:
This can be a separate PR. Thanks. |
|
Thanks for the review! |


Summary
log.remote.copy.lag.bytesto -1eligibility checks
Reviewers: Jian fujian1115@gmail.com, Luke Chen showuon@gmail.com,
Satish Duggana satishd@apache.org