mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge pull request #1171 from wenshao/master
discard mysql streaming resultSet close error connection
This commit is contained in:
@@ -46,7 +46,7 @@ public class FilterManager {
|
||||
aliasMap.put(name, (String) entry.getValue());
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
LOG.error("load filter config error", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,6 +77,17 @@ public class MySqlExceptionSorter implements ExceptionSorter {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
StackTraceElement[] stackTrace = e.getStackTrace();
|
||||
for (int i = 0; i < stackTrace.length; ++i) {
|
||||
StackTraceElement element = stackTrace[i];
|
||||
if ("com.mysql.jdbc.RowDataDynamic".equals(element.getClassName()) //
|
||||
&& "close".equals(element.getMethodName())
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user