Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
-
None
Description
Current if the callQueueSize exceed maxQueueSize, all call will be rejected, Should we let the priority Call pass through?
Current:
if ((callSize + callQueueSize.get()) > maxQueueSize) { Call callTooBig = xxx return ; } if (priorityCallQueue != null && getQosLevel(param) > highPriorityLevel) { priorityCallQueue.put(call); updateCallQueueLenMetrics(priorityCallQueue); } else { callQueue.put(call); // queue the call; maybe blocked here updateCallQueueLenMetrics(callQueue); }
Should we change it to :
if (priorityCallQueue != null && getQosLevel(param) > highPriorityLevel) { priorityCallQueue.put(call); updateCallQueueLenMetrics(priorityCallQueue); } else { if ((callSize + callQueueSize.get()) > maxQueueSize) { Call callTooBig = xxx return ; } callQueue.put(call); // queue the call; maybe blocked here updateCallQueueLenMetrics(callQueue); }