mirror of
https://github.com/actiontech/dble.git
synced 2026-05-12 17:39:21 -05:00
fix npe when innerRelease and close are concurrent inner 1883 (#3471)
This commit is contained in:
@@ -167,7 +167,7 @@ public abstract class AbstractService extends VariablesService implements Servic
|
||||
connection.getSocketWR().disableReadForever();
|
||||
}
|
||||
if (closeTask.isFirst() && !connection.isOnlyFrontTcpConnected()) {
|
||||
LOGGER.info("prepare close for conn.conn id {},reason [{}]", connection.getId(), closeTask.getReasonsStr());
|
||||
LOGGER.info("prepare close for conn {},reason [{}]", connection, closeTask.getReasonsStr());
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@@ -18,6 +18,7 @@ import com.actiontech.dble.net.handler.BackEndRecycleRunnable;
|
||||
import com.actiontech.dble.net.mysql.*;
|
||||
import com.actiontech.dble.net.response.*;
|
||||
import com.actiontech.dble.net.service.ServiceTask;
|
||||
import com.actiontech.dble.net.service.ServiceTaskType;
|
||||
import com.actiontech.dble.net.service.WriteFlags;
|
||||
import com.actiontech.dble.route.RouteResultsetNode;
|
||||
import com.actiontech.dble.rwsplit.RWSplitNonBlockingSession;
|
||||
@@ -516,6 +517,9 @@ public class MySQLResponseService extends BackendService {
|
||||
@Override
|
||||
protected void beforeInsertServiceTask(@NotNull ServiceTask task) {
|
||||
super.beforeInsertServiceTask(task);
|
||||
if (task.getType() == ServiceTaskType.CLOSE) {
|
||||
return;
|
||||
}
|
||||
if (session != null) {
|
||||
session.setBackendResponseTime(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user