Skip to content

Conversation

@tibrewalpratik17
Copy link
Contributor

@tibrewalpratik17 tibrewalpratik17 commented May 6, 2024

label:
bugfix
minion

This patch validates whether the configured minionInstanceTag actually exists in the list of instance-tags or not. Before this, if a wrong instanceTag was configured for a task, Pinot scheduled those tasks and they got stuck in IN_PROGRESS state. Until the task is timed out, no another task scheduling for that table and task type was possible. Or you need to update some minion instance with the specified instanceTag. Ideally, we should error out by throwing an exception for instanceTag not found which this patch achieves.

There is a more proactive way of doing this at table-config updation itself. We will try to achieve that when we introduce minionTenant config itself.

@codecov-commenter
Copy link

codecov-commenter commented May 6, 2024

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.20%. Comparing base (59551e4) to head (a0047f1).
⚠️ Report is 2923 commits behind head on master.

Files with missing lines Patch % Lines
...controller/helix/core/minion/PinotTaskManager.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13092      +/-   ##
============================================
+ Coverage     61.75%   62.20%   +0.45%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2514      +78     
  Lines        133233   137793    +4560     
  Branches      20636    21321     +685     
============================================
+ Hits          82274    85715    +3441     
- Misses        44911    45683     +772     
- Partials       6048     6395     +347     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 62.15% <0.00%> (+0.44%) ⬆️
java-21 62.07% <0.00%> (+0.44%) ⬆️
skip-bytebuffers-false 62.19% <0.00%> (+0.44%) ⬆️
skip-bytebuffers-true 62.03% <0.00%> (+34.30%) ⬆️
temurin 62.20% <0.00%> (+0.45%) ⬆️
unittests 62.20% <0.00%> (+0.45%) ⬆️
unittests1 46.86% <ø> (-0.03%) ⬇️
unittests2 27.76% <0.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ankitsultana ankitsultana merged commit 5440c6e into apache:master May 9, 2024
@ankitsultana
Copy link
Contributor

@tibrewalpratik17 : let's also emit numErrorTasksScheduled metric in a follow-up PR so we can setup alerting/monitoring

@tibrewalpratik17 tibrewalpratik17 deleted the validate_minion_config branch May 16, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants