Skip to content

Comments

KYLIN-4689 BuildJobSubmitter should obey MaxJobLimit#1440

Closed
hit-lacus wants to merge 3 commits intoapache:masterfrom
hit-lacus:KYLIN-4689-1
Closed

KYLIN-4689 BuildJobSubmitter should obey MaxJobLimit#1440
hit-lacus wants to merge 3 commits intoapache:masterfrom
hit-lacus:KYLIN-4689-1

Conversation

@hit-lacus
Copy link
Member

@hit-lacus hit-lacus commented Oct 9, 2020

Proposed changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

What types of changes does your code introduce to Kylin?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have create an issue on Kylin's jira, and have described the bug/feature there in detail
  • Commit messages in my PR start with the related jira ID, like "KYLIN-0000 Make Kylin project open-source"
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • If this change need a document change, I will prepare another pr against the document branch
  • Any dependent changes have been merged

Further comments

If this is a relatively large or complex change, kick off the discussion at user@kylin or dev@kylin by explaining why you chose the solution you did and what alternatives you considered, etc...

@hit-lacus hit-lacus changed the title KYLIN-4689 BuildJibSubmitter should obey MaxJobLimit KYLIN-4689 BuildJobSubmitter should obey MaxJobLimit Oct 9, 2020
@hit-lacus
Copy link
Member Author

I need some time to test this patch.

@coveralls
Copy link

coveralls commented Oct 9, 2020

Pull Request Test Coverage Report for Build 6446

  • 1 of 7 (14.29%) changed or added relevant lines in 1 file are covered.
  • 9 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.007%) to 28.043%

Changes Missing Coverage Covered Lines Changed/Added Lines %
stream-coordinator/src/main/java/org/apache/kylin/stream/coordinator/coordinate/BuildJobSubmitter.java 1 7 14.29%
Files with Coverage Reduction New Missed Lines %
core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java 1 78.12%
core-dictionary/src/main/java/org/apache/kylin/dict/lookup/cache/RocksDBLookupTable.java 1 81.08%
core-job/src/main/java/org/apache/kylin/job/impl/threadpool/DefaultScheduler.java 2 79.07%
core-metrics/src/main/java/org/apache/kylin/metrics/lib/impl/MetricsSystem.java 5 66.67%
Totals Coverage Status
Change from base Build 6442: -0.007%
Covered Lines: 26250
Relevant Lines: 93605

💛 - Coveralls

Comment on lines 169 to 173
boolean isFull = DefaultScheduler.getInstance().getFetcherRunner().isJobPoolFull();
if (isFull) {
logger.info("Hit MaxConcurrentJobLimit, hold {}.", segmentName);
break;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, it can add this check logical code at the beginning of function 'submitSegmentBuildJob'

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, it make sense.

@hit-lacus hit-lacus added the Work In Progress This patch is incomplete, maybe author need update this patch ? label Oct 10, 2020
@hit-lacus hit-lacus closed this Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Work In Progress This patch is incomplete, maybe author need update this patch ?

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants