Bump scheduled exports count only in case it has been scheduled#1499
Open
arthurpassos wants to merge 3 commits intoantalya-26.1from
Open
Bump scheduled exports count only in case it has been scheduled#1499arthurpassos wants to merge 3 commits intoantalya-26.1from
arthurpassos wants to merge 3 commits intoantalya-26.1from
Conversation
Collaborator
Author
|
cc @Selfeer |
Collaborator
Author
Collaborator
PR #1499 Audit ReviewAI audit note: This review was generated by AI (gpt-5.3-codex). Audit update for PR #1499 (scheduled export counter update placement in partition export scheduler) Confirmed defectsMedium: Scheduler capacity counter no longer increments in
Code evidence — loop guards using the counter: // Outer loop (by task entry)
if (scheduled_exports_count >= available_move_executors)
{
LOG_INFO(storage.log, "ExportPartition scheduler task: Scheduled exports count is greater than available move executors, skipping");
break;
}
// ...
// Inner loop (by part)
for (const auto & zk_part_name : parts_in_processing_or_pending)
{
if (scheduled_exports_count >= available_move_executors)
{
LOG_INFO(storage.log, "ExportPartition scheduler task: Scheduled exports count is greater than available move executors, skipping");
break;
}Code evidence — if (manifest.lock_inside_the_task)
{
// ...
if (!storage.background_moves_assignee.scheduleMoveTask(part_export_manifest.task))
{
storage.export_manifests.erase(part_export_manifest);
LOG_INFO(storage.log, "ExportPartition scheduler task: Failed to schedule export part task, skipping");
return;
}
// ← no scheduled_exports_count++ here
}
else
{
try
{
// ... zk lock + exportPartToTable(...)
}
catch (const Exception &) { /* ... */ }
}
scheduled_exports_count++; // only reached after the else block; lock_inside_the_task success skips thisSo when
Coverage summary
|
Collaborator
Author
|
That is true, and shame on me for forgetting that :) |
mkmkme
previously approved these changes
Mar 16, 2026
mkmkme
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixes the below by incrementing the scheduled counter only in case it has successfully scheduled the task
Partially fix #1498
Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: