IDEMPIERE-6123 Query in search window causing slowness and load spikes in the database (FHCA-5356) (#2408) (#2409)

This commit is contained in:
Carlos Ruiz 2024-07-04 22:42:26 +02:00
parent afe578e9b3
commit 1a89cd6b8f
1 changed files with 1 additions and 0 deletions

View File

@ -3099,6 +3099,7 @@ public class GridTable extends AbstractTableModel
catch (SQLException e)
{
if (DB.getDatabase().isQueryTimeout(e)) {
m_rowLoadTimeout = true;
throw new AdempiereException(Msg.getMsg(Env.getCtx(), LOAD_TIMEOUT_ERROR_MESSAGE), e);
} else {
log.saveError(e.getLocalizedMessage(), e);