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

Show most recent scheduling errors #9161

Merged
merged 5 commits into from
Aug 22, 2022

Conversation

satishwaghela
Copy link
Contributor

On the TaskName->TableName page, the SCHEDULING ERRORS was previously TBD. Now we have the API for it: GET /tasks/generator/{tableNameWithType}/{taskType}/debug

@codecov-commenter
Copy link

codecov-commenter commented Aug 4, 2022

Codecov Report

Merging #9161 (3aa4f98) into master (fb4966b) will decrease coverage by 31.75%.
The diff coverage is 23.76%.

❗ Current head 3aa4f98 differs from pull request most recent head 66d3666. Consider uploading reports for the commit 66d3666 to get more accurate results

@@              Coverage Diff              @@
##             master    #9161       +/-   ##
=============================================
- Coverage     60.15%   28.40%   -31.76%     
+ Complexity     4862       53     -4809     
=============================================
  Files          1836     1845        +9     
  Lines         98217    98791      +574     
  Branches      14928    15040      +112     
=============================================
- Hits          59086    28059    -31027     
- Misses        34704    68035    +33331     
+ Partials       4427     2697     -1730     
Flag Coverage Δ
integration1 26.26% <22.61%> (?)
integration2 24.80% <22.20%> (-0.05%) ⬇️
unittests1 ?

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

Impacted Files Coverage Δ
.../pinot/broker/api/resources/PinotBrokerLogger.java 0.00% <0.00%> (ø)
...ot/broker/requesthandler/BrokerRequestHandler.java 0.00% <0.00%> (ø)
...mmon/assignment/InstanceAssignmentConfigUtils.java 14.63% <0.00%> (+1.81%) ⬆️
...he/pinot/common/assignment/InstancePartitions.java 40.00% <0.00%> (-1.18%) ⬇️
...ot/common/function/scalar/ArithmeticFunctions.java 16.66% <0.00%> (-52.90%) ⬇️
...e/pinot/common/function/scalar/ArrayFunctions.java 0.00% <0.00%> (-100.00%) ⬇️
...t/common/response/broker/BrokerResponseNative.java 91.12% <ø> (-4.15%) ⬇️
...ava/org/apache/pinot/common/utils/LoggerUtils.java 0.00% <0.00%> (ø)
...ontroller/api/resources/PinotControllerLogger.java 0.00% <0.00%> (ø)
...ources/PinotInstanceAssignmentRestletResource.java 0.00% <0.00%> (ø)
... and 1244 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@npawar
Copy link
Contributor

npawar commented Aug 5, 2022

Just tried this out. I'm not seeing the exception message be picked up. For example, here the response has only errors, and no success TS, but Scheduling Errors remains blank
Screen Shot 2022-08-04 at 10 48 16 PM

A sample response will look like this, for your reference:

[
  {
    "tableNameWithType": "githubEvents_OFFLINE",
    "taskType": "MergeRollupTask",
    "mostRecentSuccessRunTS": [],
    "mostRecentErrorRunMessages": {
      "2022-08-05T05:44:00.267Z": "java.lang.IllegalStateException: Dummy exception\n\tat org.apache.pinot.plugin.minion.tasks.mergerollup.MergeRollupTaskGenerator.generateTasks(MergeRollupTaskGenerator.java:135)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:536)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:620)\n\tat org.apache.pinot.controller.helix.core.minion.CronJobScheduleJob.execute(CronJobScheduleJob.java:53)\n\tat org.quartz.core.JobRunShell.run(JobRunShell.java:202)\n\tat org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)\n",
      "2022-08-05T05:45:00.005Z": "java.lang.IllegalStateException: Dummy exception\n\tat org.apache.pinot.plugin.minion.tasks.mergerollup.MergeRollupTaskGenerator.generateTasks(MergeRollupTaskGenerator.java:135)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:536)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:620)\n\tat org.apache.pinot.controller.helix.core.minion.CronJobScheduleJob.execute(CronJobScheduleJob.java:53)\n\tat org.quartz.core.JobRunShell.run(JobRunShell.java:202)\n\tat org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)\n"
    }
  }
]

@npawar
Copy link
Contributor

npawar commented Aug 5, 2022

cc @saurabhd336

@npawar npawar added enhancement ui UI related issue labels Aug 5, 2022
@npawar
Copy link
Contributor

npawar commented Aug 5, 2022

@joshigaurava please help review

@joshigaurava
Copy link
Contributor

Please eliminate code that is no longer required rather than simply commenting it out.

@npawar
Copy link
Contributor

npawar commented Aug 5, 2022

Looks like the text is spilling out of the Scheduling errors box. Can you just make the text box take up all the space from from left to right, instead of right aligned?
Also, the timezone of the Previous Fire Time and Next Fire Time is incorrect. The response says it is in America/Los_Angeles, but UI shows as GMT
Screen Shot 2022-08-05 at 2 12 24 PM

@satishwaghela
Copy link
Contributor Author

Also, the timezone of the Previous Fire Time and Next Fire Time is incorrect. The response says it is in America/Los_Angeles, but UI shows as GMT

@npawar, Server is sending PreviousFireTime and NextFireTime in epoch format that's why creating date object from that UI shows user's local time.

@satishwaghela satishwaghela marked this pull request as ready for review August 13, 2022 10:37
Copy link
Contributor

@npawar npawar left a comment

Choose a reason for hiding this comment

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

lgtm functionally

@npawar
Copy link
Contributor

npawar commented Aug 14, 2022

lgtm functionally

Will merge once @joshigaurava approves

Copy link
Contributor

@joshigaurava joshigaurava left a comment

Choose a reason for hiding this comment

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

My previous comment was to remove unused code. It's just that I didn't point all the places where we need to remove unused code. Please go through the entire PR and remove the code instead of commenting it out.

@joshigaurava
Copy link
Contributor

@satishwaghela can you please post an updated screenshot? For a UI change, it helps in correlating code with the output.

@satishwaghela
Copy link
Contributor Author

@satishwaghela can you please post an updated screenshot? For a UI change, it helps in correlating code with the output.

image

@npawar npawar merged commit 80e69c5 into apache:master Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ui UI related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants