Skip to content

Conversation

@morningman
Copy link
Contributor

@morningman morningman commented Aug 21, 2019

Add a new column 'JobDetails' to show more info of a load job.
Loaded rows will be updated periodically by query report. So that
user can see that a load job is still running or being blocked.

eg:

         JobId: 12010
         Label: fact_20190811_0000
         State: LOADING
      Progress: ETL:N/A; LOAD:0%
          Type: BROKER
       EtlInfo: N/A
      TaskInfo: cluster:N/A; timeout(s):36000; max_filter_ratio:0.01
      ErrorMsg: N/A
    CreateTime: 2019-08-21 23:38:40
  EtlStartTime: 2019-08-21 23:38:41
 EtlFinishTime: 2019-08-21 23:38:41
 LoadStartTime: 2019-08-21 23:38:41
LoadFinishTime: N/A
           URL: N/A
    JobDetails: {"LoadedRows":1875968,"TaskNumber":1,"FileNumber":1,"FileSize":940754064}

Loaded rows will be updated periodically by query report. So that
user can see that a load job is still running or being blocked.

// number of rows processed on BE, this number will be updated periodically by query report.
// A load job may has several load tasks, so the map key is load task's plan load id.
protected Map<TUniqueId, AtomicLong> numLoadedRows = Maps.newConcurrentMap();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better to make RuntimeStatics, not only numLoadedRows.
And it name should be xxxMap.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

chaoyli
chaoyli previously approved these changes Aug 22, 2019
Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

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

LGTM

@imay imay merged commit a1b9276 into apache:master Aug 27, 2019
@imay imay mentioned this pull request Sep 26, 2019
swjtu-zhanglei pushed a commit to swjtu-zhanglei/incubator-doris that referenced this pull request Jul 25, 2023
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.

3 participants