Description
The toString() method is used to log in BatchErrors#makeException.
BatchErrors.java
synchronized RetriesExhaustedWithDetailsException makeException(boolean logDetails) { if (logDetails) {LOG.error("Exception occurred! Exception details: " + throwables + ";\nActions: " + actions); }
If RegionCoprocessorServiceExec doesn’t override the toString(), we will see the hash code in the log message. That message is useless for debugging.