time based checkpointing for Kafka Indexing Service#5255
time based checkpointing for Kafka Indexing Service#5255b-slim merged 5 commits intoapache:masterfrom pjain1:time_based_cp
Conversation
|
Would you add some tests? |
|
@jihoonson added |
|
👍 |
There was a problem hiding this comment.
Does this mean that time-based intermediate handoff is effectively disabled if it is null? What do you think about disabling it explicitly if it's null?
There was a problem hiding this comment.
Also, please check the formatting.
There was a problem hiding this comment.
Fixed formatting and yes it means the intermediate handoff is effectively disabled. I didn't wanted to have another flag check so that's why just setting it to a long period. If you see any issues with this then I can change.
There was a problem hiding this comment.
I think, from the user perspective, it looks not clear if they don't want to use this feature. If someone doesn't want to use it, then he/she might be confused what value should be set and should calculate how long period should be set to turn off this feature.
If we support turning it off explicitly in some ways, then it will be more clear for users. I think this is more valuable even though we need to add some more flag checks. Finally, I think it's enough if null intermediateHandoffPeriod means disabling time-based intermediate handoff. What do you think?
There was a problem hiding this comment.
How about just mentioning in the docs that null is default value and it means disabled. Internally, the null can be translated to a very long Period effectively disabling the intermediate handoff, does this sounds good ? Or should I introduce an explicit flag ?
There was a problem hiding this comment.
I think it would be nice if what the doc says and how the code actually works matches. If you think it's better to keep the current implementation, the doc also should say that the default intermediateHandoffPeriod is Integer.MAX_VALUE days as it currently does.
I don't have a strong feeling about this.
|
@jihoonson any more comments ? |
jihoonson
left a comment
There was a problem hiding this comment.
Sorry for the late review. Looks good to me.
Resolves #4815 (comment)