How to read errors from Aeron Archive replication operations¶
Problem¶
You want to understand the errors raised by Aeron Archive during a replication (AeronArchive.replicate) operation.
Solution¶
There are two options:
- call
AeronArchive.pollForErrorResponse(), which returns a string containing an error message, or null if no error - call
AeronArchive.checkForErrorResponse(), which calls theAeronArchive.Context.errorHandler(ErrorHandler)if set, or throws anArchiveExceptionif not.
Sample¶
1 2 3 4 5 | |
Discussion¶
If needed, you can also use the RecordingSignalAdapter to follow progress.