dataroaring commented on code in PR #56175:
URL: https://github.com/apache/doris/pull/56175#discussion_r2357629265


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/CreateJobCommand.java:
##########
@@ -56,10 +58,20 @@ public CreateJobCommand(CreateJobInfo jobInfo) {
 
     @Override
     public void run(ConnectContext ctx, StmtExecutor executor) throws 
Exception {
+        validate();
         AbstractJob job = createJobInfo.analyzeAndBuildJobInfo(ctx);
         Env.getCurrentEnv().getJobManager().registerJob(job);
     }
 
+    private void validate() throws JobException {
+        if (createJobInfo.streamingJob()) {
+            int streamingJobCnt = 
Env.getCurrentEnv().getJobManager().getStreamingJobCnt();
+            if (streamingJobCnt >= Config.max_streaming_job_num) {
+                throw new JobException("Exceed max streaming job num limit " + 
Config.max_streaming_job_num);

Review Comment:
   Please hint users how to enlarge.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to