A circular reference between the client object and the cluster object prevents the client's finalizer from executing, resulting in a memory leak. The issue can be reproduced by creating and closing multiple client instances in a loop.
To resolve this, the client instance has been injected into the batch commands directly.
A circular reference between the client object and the cluster object prevents the client's finalizer from executing, resulting in a memory leak. The issue can be reproduced by creating and closing multiple client instances in a loop. To resolve this, the client instance has been injected into the batch commands directly.