Skip to content

Commit

Permalink
Yet one iteration of logging cleanup in connectors
Browse files Browse the repository at this point in the history
- createResource is called just from ConnectionPool where is the exception
  processed too. Warning will be logged for each failure there, until retries
  exceed configured count of attempts. Then instead of warning it will throw
  an exception.
- Removed also i18n properties, fixed messages, unused dumpPoolStatus

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Apr 9, 2023
1 parent 08d7fc5 commit fb97501
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 294 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1087,11 +1087,7 @@ public boolean flushConnectionPool(PoolInfo poolInfo) throws ConnectorRuntimeExc
try {
return poolMgr.flushConnectionPool(poolInfo);
} catch (PoolingException ex) {
ConnectorRuntimeException e = new ConnectorRuntimeException(
ex.getLocalizedMessage() + ". Please check the server.log for more details.");
e.initCause(ex);
throw e;

throw new ConnectorRuntimeException("Flushing the connection pool " + poolInfo.getName() + " failed.", ex);
}
}

Expand Down
Loading

0 comments on commit fb97501

Please sign in to comment.