Skip to content
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 consumerDone doesn't update #681

Merged
merged 2 commits into from
Sep 10, 2022

Conversation

harryteng9527
Copy link
Collaborator

#680 (comment)

新增 consumerDone 未達100%時,繼續更新消費進度

@@ -175,6 +175,9 @@ static TrackerThread create(
// if producers are not DONE, consumers should keep running as there are more data in
// the future.
if (!producerDone) consumerDone = false;
// if consumers are not DONE, they should keep consuming records when producers were
// Done.
if (producerDone && !consumerDone) consumerDone = logConsumers.apply(duration);
Copy link
Contributor

@chia7712 chia7712 Sep 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

              if (!producerDone) producerDone = logProducers.apply(duration);
              // if producers are not DONE, consumers should keep running as there are more data in
              // the future.
              // if consumers are not DONE, they should keep consuming records when producers were
              // Done.
              if (!producerDone || !consumerDone) consumerDone = logConsumers.apply(duration);

麻煩看看這樣是否有更簡化

@chia7712 chia7712 merged commit 0ff6702 into opensource4you:main Sep 10, 2022
@harryteng9527 harryteng9527 deleted the tracker-consumer branch April 17, 2023 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants