You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2020/10/10 06:31:29 UTC

[GitHub] [kylin] hit-lacus commented on a change in pull request #1440: KYLIN-4689 BuildJobSubmitter should obey MaxJobLimit

hit-lacus commented on a change in pull request #1440:
URL: https://github.com/apache/kylin/pull/1440#discussion_r502754031



##########
File path: stream-coordinator/src/main/java/org/apache/kylin/stream/coordinator/coordinate/BuildJobSubmitter.java
##########
@@ -165,6 +166,11 @@ void doRun() {
             for (StreamingCubeInfo cubeInfo : coordinator.getEnableStreamingCubes()) {
                 List<String> segmentList = checkSegmentBuildJobFromMetadata(cubeInfo.getCubeName());
                 for (String segmentName : segmentList) {
+                    boolean isFull = DefaultScheduler.getInstance().getFetcherRunner().isJobPoolFull();
+                    if (isFull) {
+                        logger.info("Hit MaxConcurrentJobLimit, hold {}.", segmentName);
+                        break;
+                    }

Review comment:
       OK, it make sense.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org