@@ -84,7 +84,7 @@ public class RdbAsyncReqRow extends BaseAsyncReqRow {
8484
8585 public final static String PREFERRED_TEST_QUERY_SQL = "SELECT 1 FROM DUAL" ;
8686
87- private static SQLClient rdbSqlClient ;
87+ private transient SQLClient rdbSqlClient ;
8888
8989 private AtomicBoolean connectionStatus = new AtomicBoolean (true );
9090
@@ -126,7 +126,7 @@ public void handleAsyncInvoke(Map<String, Object> inputParams, BaseRow input, Re
126126 Thread .sleep (100 );
127127 }
128128 Map <String , Object > params = formatInputParam (inputParams );
129- executor .execute (() -> connectWithRetry (params , input , resultFuture , RdbAsyncReqRow . rdbSqlClient ));
129+ executor .execute (() -> connectWithRetry (params , input , resultFuture , rdbSqlClient ));
130130 }
131131
132132 protected void asyncQueryData (Map <String , Object > inputParams ,
@@ -280,8 +280,8 @@ public BaseRow fillData(BaseRow input, Object line) {
280280 @ Override
281281 public void close () throws Exception {
282282 super .close ();
283- if (RdbAsyncReqRow . rdbSqlClient != null ) {
284- RdbAsyncReqRow . rdbSqlClient .close ();
283+ if (rdbSqlClient != null ) {
284+ rdbSqlClient .close ();
285285 }
286286
287287 if (executor != null ) {
@@ -291,7 +291,7 @@ public void close() throws Exception {
291291 }
292292
293293 public void setRdbSqlClient (SQLClient rdbSqlClient ) {
294- RdbAsyncReqRow .rdbSqlClient = rdbSqlClient ;
294+ this .rdbSqlClient = rdbSqlClient ;
295295 }
296296
297297 private void handleQuery (SQLConnection connection , Map <String , Object > inputParams , BaseRow input , ResultFuture <BaseRow > resultFuture ) {
0 commit comments