dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Improvement][Master] The variables in the code are incorrect and there are ambiguity

Open shilei-ly opened this issue 1 year ago • 0 comments

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Description

The variable org.apache.dolphinscheduler.service.queue.StandByTaskInstancePriorityQueue#QUEUE_MAX_SIZE in the code needs to be changed to QUEUE_INITIAL_SIZE, because the meaning of this variable is the initial capacity of the queue, not the maximum capacity. The java.util.PriorityQueueis an unbounded queue. image

Are you willing to submit a PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

shilei-ly avatar May 20 '24 11:05 shilei-ly