File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
connectors-common/mysql-core/src/main/java/io/tapdata/connector/mysql
connectors/starrocks-connector/src/main/java/io/tapdata/connector/starrocks Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ public void startMiner(Supplier<Boolean> isAlive) throws Throwable {
104104 handleTableMapEvent (event );
105105 } else if (eventType == EventType .QUERY ) {
106106 concurrentProcessor .runAsyncWithBlocking (new ScanEvent (event , currentBinlogFile .get ()), this ::emit );
107+ return ;
107108 }
108109
109110 // 异步处理事件
Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ public Boolean testStreamLoadPrivilege() {
127127 HttpGet httpGet = new HttpGet ();
128128 httpGet .setURI (new URI ("https://" + ((StarrocksConfig ) commonDbConfig ).getStarrocksHttp ()));
129129 httpGet .setHeader ("Authorization" , authHeader );
130- testResult = EntityUtils .toString (client .execute (httpGet ).getEntity ()).contains ("starrocks" );
130+ testResult = EntityUtils .toString (client .execute (httpGet ).getEntity ()).toLowerCase (). contains ("starrocks" );
131131 } else {
132- testResult = HttpRequest .get ("http://" + ((StarrocksConfig ) commonDbConfig ).getStarrocksHttp ()).header ("Authorization" , authHeader ).execute ().body ().contains ("starrocks" );
132+ testResult = HttpRequest .get ("http://" + ((StarrocksConfig ) commonDbConfig ).getStarrocksHttp ()).header ("Authorization" , authHeader ).execute ().body ().toLowerCase (). contains ("starrocks" );
133133 }
134134
135135 if (testResult ) {
You can’t perform that action at this time.
0 commit comments