-
Notifications
You must be signed in to change notification settings - Fork 735
YQ-4085 FQ: Add partition id check in row dispatcher #14178
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
YQ-4085 FQ: Add partition id check in row dispatcher #14178
Conversation
|
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
| Y_ENSURE(sessionInfo.Consumers.count(consumer->ReadActorId)); | ||
| if (!sessionInfo.Consumers.contains(consumer->ReadActorId)) { | ||
| LOG_ROW_DISPATCHER_ERROR("Wrong readActorId " << consumer->ReadActorId << ", no such consumer"); | ||
| } |
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.
Nit: if (!erase())
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.
.erase возвращает false если не нашёл, можно просто его проверять, минус строчка (и минус лукап)
|
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
| Y_ENSURE(sessionInfo.Consumers.count(consumer->ReadActorId)); | ||
| if (!sessionInfo.Consumers.contains(consumer->ReadActorId)) { | ||
| LOG_ROW_DISPATCHER_ERROR("Wrong readActorId " << consumer->ReadActorId << ", no such consumer"); | ||
| } |
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.
.erase возвращает false если не нашёл, можно просто его проверять, минус строчка (и минус лукап)
| partition.PendingNewDataArrived = true; | ||
| it->second->Counters.NewDataArrived++; | ||
| it->second->EventsQueue.Send(ev->Release().Release(), it->second->Generation); | ||
| auto consumerInfoPtr = it->second; |
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.
nit: можно передвинуть на пару строчек выше и упростить LWPROBE/TRACE
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.
Поправлю в любом следующем pr
Changelog entry
...
Changelog category
Additional information
...