allthingssecurity commented on PR #30821:
URL: https://github.com/apache/camel/pull/30821#issuecomment-7186389045

   Thanks. Done in 13bbf57da929, which also covers the smaller points of 
@davsclaus's review:
   
   1. `awaitPublishesInFlight()`: the CPU point was more real than it looked. 
Measured, a 1 microsecond `parkNanos` took a full core for as long as a 
producer waited for a free slot (about 500 ms of CPU in 500 ms of waiting), 
interrupted or not, and `Thread.onSpinWait()` would not change that. The pause 
now doubles from 1 microsecond up to 1 ms. On an interrupted thread `parkNanos` 
returns at once, so the flag is cleared for the wait and set again after it. 
Two new tests check the CPU time of the waiting reconfiguration thread, with 
and without the interrupt; both fail without the change.
   2. The backlog thread is now matched by the CamelContext name of the test 
too, not only `DisruptorBacklog`.
   3. Throughput figures: not measured yet. The per-publish cost (one increment 
and one decrement) is unchanged by this commit; I will add before/after numbers 
for `Multi` and `Single` to the description.
   
   Also in the commit: the test comment now says the injected `Error` is not a 
`VirtualMachineError` (an OOM is thrown again), and the component page says 
that a queue without consumer can buffer more than `size` exchanges across a 
reconfiguration, which `getRemainingCapacity()` does not count and 
`getPendingExchangeCount()` does. camel-disruptor `Disruptor*Test`: 136 run, 0 
failures.
   


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

Reply via email to