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

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

Keywords

JAVA API EXCEPTIONS

Timestamp

October 2021

© 2021 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.