Aman Poonia created PHOENIX-7859:
------------------------------------

             Summary: The test 
ParallelPhoenixConnectionFallbackIT.testParallelConnectionBackoff times out 
intermittently in CI environments when polling hasCapacity() to detect when 
executor queues are full.
                 Key: PHOENIX-7859
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7859
             Project: Phoenix
          Issue Type: Improvement
            Reporter: Aman Poonia


The test polls hasCapacity(), which performs a multi-step calculation:
Read queue.size()
Read queue.remainingCapacity()
Calculate: queueSize / queueCapacity
Compare: result < backoffThreshold

*Proposal*

Instead of polling hasCapacity() (calculated value), directly check 
queue.size() (actual state). Then verify hasCapacity() returns the expected 
value as an assertion.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to