You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/03/01 18:47:42 UTC
[GitHub] mcvsubbu commented on issue #3893: Reduce
MAX_SEGMENT_COMPLETION_TIME_MILLIS to 5 minutes
mcvsubbu commented on issue #3893: Reduce MAX_SEGMENT_COMPLETION_TIME_MILLIS to 5 minutes
URL: https://github.com/apache/incubator-pinot/pull/3893#issuecomment-468769213
> Are we not using compare and set. Why do we need time based checks
> […](#)
> On Thu, Feb 28, 2019 at 8:20 AM Subbu Subramaniam ***@***.***> wrote: ***@***.**** commented on this pull request. Dont we also need to check time of idealstate update (step 3) ? The entire segment metadata commit should happen within a time t < MAX_SEGMENT_COMPLEZTION_TIME_MILLIS, so it is good to check before idealstate update whether that time is already past. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <[#3893 (review)](https://github.com/apache/incubator-pinot/pull/3893#pullrequestreview-209170058)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAz7Z5CiEpIB5H6gmH-UosniFMuC9Xlmks5vSAHRgaJpZM4bVu5M> .
@kishoreg we had discussed this sometime back, I think. The segment completion takes 3 steps (as documented in the code). There is also a ReatimeSegmentValidationManager that auto-creates non-consuming segments, if any (detected by the absence of step 2 or step 3 for the latest segment), and recognizes any new kafka partitions and starts consuming segments for them. It is possible that the RealtimeSegmentValidationManager recognizes an in-process segment commit as an incomplete one, and starts an attempt to fix it. It is also possible (in theory) that a segment completion takes so long that the ReatimeSegmentValidationManager has already fixed the segment before step 2 or 3. It is this case that we are protecting in the time check.
We will add this as a section to the realtime design doc.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org