-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(azure event hub): wrong calc of the remaining items #3912
Conversation
as the scenario covered in this line is for the case in which the partition reached maxInt and started from zero. the calc is done wrongly. Signed-off-by: Yoav Dobrin <37622785+yodobrin@users.noreply.github.com>
/run-e2e event_hub* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! ❤️
LGTM, but I'm not an expert in EH, @v-shenoy , do you know if this change is correct?
The most common scenario would be that the partition.lastseq would be larger than the checkpoint.seq – this is addressed in previous lines of code. Lets say max is 100 How many records do we need to process? Since the number of records from 6 to 100 is 94, and the number of newly created records is 3, the number of records we need to handle is 97, not 103. |
I have been checking your numbers and makes sense in my mind (I'm not really good at mathematics imaging shapes TBH), let's way till other folk confirms this and we can merge it. |
I will spend some time on this later today, and get back. |
Hi @v-shenoy and @JorTurFer - please update with your decsion |
/run-e2e event_hub* |
/run-e2e event_hub* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Let's wait some time for giving the option to @v-shenoy to check this if he has time, and if not I'll merge it in a few days
I am not completely sure about this either, but this seems right. |
as the scenario covered in this line is for the case in which the partition reached maxInt and started from zero. the calc is done wrongly. Signed-off-by: Yoav Dobrin <37622785+yodobrin@users.noreply.github.com> Signed-off-by: Yoav Dobrin <37622785+yodobrin@users.noreply.github.com>
as the scenario covered in this line is for the case in which the partition reached maxInt and started from zero. the calc is done wrongly.
Signed-off-by: Yoav Dobrin 37622785+yodobrin@users.noreply.github.com
the calc of the remaining items to process is wrong
Checklist