Articles in this section

FAQ - Are non-retryable exceptions in Java threadPool passed to caller?

Detail

The Aerospike Java Client offers the use of custom threadpool configuration. If the Java client Policy ClientPolicy.threadPool is configured to use ThreadPoolExecutor and a non-retryable exception is thrown due to ressource exhaustion, would that exception be passed to the caller?

Answer

All non-retryable exceptions are passed back to the caller. In Aerospike Java client, assuming a caller's threadPool.execute() fails, the RejectedExecutionException is passed to the caller. (for example: the caller of the scanAll method).

Notes

Java API exceptions handling

Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful