@@ -84,7 +84,7 @@ public class RdbAsyncReqRow extends BaseAsyncReqRow {
84
84
85
85
public final static String PREFERRED_TEST_QUERY_SQL = "SELECT 1 FROM DUAL" ;
86
86
87
- private static SQLClient rdbSqlClient ;
87
+ private transient SQLClient rdbSqlClient ;
88
88
89
89
private AtomicBoolean connectionStatus = new AtomicBoolean (true );
90
90
@@ -126,7 +126,7 @@ public void handleAsyncInvoke(Map<String, Object> inputParams, BaseRow input, Re
126
126
Thread .sleep (100 );
127
127
}
128
128
Map <String , Object > params = formatInputParam (inputParams );
129
- executor .execute (() -> connectWithRetry (params , input , resultFuture , RdbAsyncReqRow . rdbSqlClient ));
129
+ executor .execute (() -> connectWithRetry (params , input , resultFuture , rdbSqlClient ));
130
130
}
131
131
132
132
protected void asyncQueryData (Map <String , Object > inputParams ,
@@ -280,8 +280,8 @@ public BaseRow fillData(BaseRow input, Object line) {
280
280
@ Override
281
281
public void close () throws Exception {
282
282
super .close ();
283
- if (RdbAsyncReqRow . rdbSqlClient != null ) {
284
- RdbAsyncReqRow . rdbSqlClient .close ();
283
+ if (rdbSqlClient != null ) {
284
+ rdbSqlClient .close ();
285
285
}
286
286
287
287
if (executor != null ) {
@@ -291,7 +291,7 @@ public void close() throws Exception {
291
291
}
292
292
293
293
public void setRdbSqlClient (SQLClient rdbSqlClient ) {
294
- RdbAsyncReqRow .rdbSqlClient = rdbSqlClient ;
294
+ this .rdbSqlClient = rdbSqlClient ;
295
295
}
296
296
297
297
private void handleQuery (SQLConnection connection , Map <String , Object > inputParams , BaseRow input , ResultFuture <BaseRow > resultFuture ) {
0 commit comments