ActionListener#notifyOnce can release its delegate listener once completed #92451
Labels
:Core/Infra/Core
Core issues without another label
>enhancement
Team:Core/Infra
Meta label for core/infra team
elasticsearch/server/src/main/java/org/elasticsearch/action/ActionListener.java
Lines 420 to 432 in 099fb84
Rather than keeping hold of the
delegate
and using anAtomicBoolean
to track the completion, we could use anAtomicReference
and drop the whole listener on completion, which might free up heap in some fail-fast cases.The text was updated successfully, but these errors were encountered: