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

chore: session sum example #111

Merged
merged 2 commits into from
Mar 25, 2024
Merged

chore: session sum example #111

merged 2 commits into from
Mar 25, 2024

Conversation

yhl25
Copy link
Contributor

@yhl25 yhl25 commented Mar 25, 2024

fixes #110

yhl25 added 2 commits March 25, 2024 16:35
Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Yashash H L <[email protected]>
@yhl25 yhl25 requested review from vigith, whynowy and KeranYang March 25, 2024 12:05
Comment on lines +142 to +150
var eofResponse *v1.ReduceResponse
for _, task := range rtm.tasks {
tasks = append(tasks, task)
}

for _, task := range tasks {
<-task.doneCh
if eofResponse == nil {
eofResponse = task.buildEOFResponse()
}
}
rtm.responseCh <- eofResponse

Copy link
Member

Choose a reason for hiding this comment

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

Is this a behaviour change? Before, each task, if not merged, sends its own EOFResponse to responseCh. After, when receiving an EOF, we loop through the active tasks and only send the last EOFResponse.

Copy link
Member

@KeranYang KeranYang Mar 25, 2024

Choose a reason for hiding this comment

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

I think we should include verifying EOF in our unit tests. Currently, we are not.

Copy link
Member

Choose a reason for hiding this comment

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

I am approving as this is sort of urgent. We can address the unit test comment as a separate issue: #113

@KeranYang KeranYang merged commit 16c1c10 into main Mar 25, 2024
3 checks passed
@KeranYang KeranYang deleted the eof branch March 25, 2024 16:17
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.

Missing session-sum source code
2 participants