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

track progress from within segment processor framework #9457

Merged

Conversation

klsince
Copy link
Contributor

@klsince klsince commented Sep 23, 2022

Follow up on #9449 to get finer grained progress status from SegmentProcessorFramework as well, as that's usually the step takes most of task time, breaking it down to map/reduce/generation steps for now.

@klsince
Copy link
Contributor Author

klsince commented Sep 23, 2022

e.g. for those progress status from SegmentProcessorFramework:

{
      "ts": 1664225730371,
      "status": "Doing map phase on data from RecordReader (1 out of 3)"
    },
    {
      "ts": 1664225730377,
      "status": "Doing map phase on data from RecordReader (2 out of 3)"
    },
    {
      "ts": 1664225730378,
      "status": "Doing map phase on data from RecordReader (3 out of 3)"
    },
    {
      "ts": 1664225730378,
      "status": "Doing reduce phase on data from partition: 0 (1 out of 1)"
    },
    {
      "ts": 1664225730384,
      "status": "Creating segment of sequentId: 0 with data from partition: 0 and row range: [0, 3) out of [0, 3)"
    },

@klsince klsince force-pushed the track_progress_in_segment_processor_framework branch from dba00aa to 4143030 Compare September 23, 2022 18:56
} catch (Exception e) {
_eventObserver.notifyTaskError(pinotTaskConfig, e);
_minionMetrics.addMeteredTableValue(taskType, MinionMeter.NUMBER_TASKS_FAILED, 1L);
LOGGER.error("Caught exception while executing task: {}", _taskConfig.getId(), e);
return new TaskResult(TaskResult.Status.FAILED, e.toString());
return new TaskResult(TaskResult.Status.FAILED, StringUtil.getStackTraceAsString(e));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

e.toString() like e.getMessage() just returns the error msg (basically the first line of the stack trace).

@klsince klsince force-pushed the track_progress_in_segment_processor_framework branch from 4143030 to 1474e92 Compare September 23, 2022 20:15
@xiangfu0 xiangfu0 closed this Sep 24, 2022
@xiangfu0 xiangfu0 reopened this Sep 24, 2022
and keep full exception stack trace instead of the top line in task info field
@klsince klsince force-pushed the track_progress_in_segment_processor_framework branch from 1474e92 to d28ab78 Compare September 26, 2022 15:54
@klsince klsince force-pushed the track_progress_in_segment_processor_framework branch from 0bd1905 to 178eaa2 Compare September 26, 2022 20:47
Copy link
Contributor

@zhtaoxiang zhtaoxiang left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jackjlli jackjlli left a comment

Choose a reason for hiding this comment

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

LGTM

@npawar npawar merged commit 66a9e0e into apache:master Sep 27, 2022
@klsince klsince deleted the track_progress_in_segment_processor_framework branch September 27, 2022 02:08
61yao pushed a commit to 61yao/pinot that referenced this pull request Oct 3, 2022
* track progress from within segment processor framework

and keep full exception stack trace instead of the top line in task info field

* cr
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.

5 participants