@@ -303,8 +303,9 @@ public static List<ObServerLdcItem> getServerLdc(ServerRoster serverRoster,
303303 */
304304 private static String formatObServerUrl (ObServerAddr obServerAddr , long connectTimeout ,
305305 long socketTimeout ) {
306+ logger .warn ("[latency monitor] format jdbc url, connectTimeout: {}, socketTimeout: {}" , connectTimeout , socketTimeout );
306307 return format (
307- "jdbc:mysql://%s/oceanbase?useUnicode=true&characterEncoding=utf-8&connectTimeout=%d&socketTimeout=%d" ,
308+ "jdbc:mysql://%s/oceanbase?useUnicode=true&characterEncoding=utf-8&useSSL=false& connectTimeout=%d&socketTimeout=%d" ,
308309 obServerAddr .getIp () + ":" + obServerAddr .getSqlPort (), connectTimeout , socketTimeout );
309310 }
310311
@@ -322,6 +323,7 @@ private static Connection getMetaRefreshConnection(String url, ObUserAuth sysUA)
322323 return DriverManager .getConnection (url , sysUA .getUserName (), sysUA .getPassword ());
323324 } catch (Exception e ) {
324325 RUNTIME .error (LCD .convert ("01-00005" ), e .getMessage (), e );
326+ logger .error ("[latency monitor] fail to get connection by JDBC" );
325327 // Since the JDBC connection fails here, it is likely that the server has crashed or scaling down.
326328 // Therefore, we need to set the Inactive flag of the ObTableEntryRefreshException to true.
327329 // This allows the upper-layer retry mechanism to catch this exception and immediately refresh the metadata.
@@ -419,8 +421,8 @@ private static TableEntry callTableEntryRefresh(ObServerAddr obServerAddr, Table
419421 try {
420422 long start = System .currentTimeMillis ();
421423 connection = getMetaRefreshConnection (url , sysUA );
422- logger .warn ("[latency monitor] time to build JDBC connection: {}" ,
423- System .currentTimeMillis () - start );
424+ logger .warn ("[latency monitor] time to build JDBC connection: {}, url: {} " ,
425+ System .currentTimeMillis () - start , url );
424426 entry = callback .execute (connection );
425427 } catch (ObTableNotExistException e ) {
426428 // avoid to refresh meta for ObTableNotExistException
0 commit comments