@@ -117,7 +117,6 @@ public TableEntry refreshMeta(String tableName, ServerRoster serverRoster,
117117 return tableEntry ;
118118 }
119119 }
120- long start = System .currentTimeMillis ();
121120 Lock lock = getMetaRefreshLock (tableName );
122121 boolean acquired = false ;
123122 try {
@@ -137,18 +136,16 @@ public TableEntry refreshMeta(String tableName, ServerRoster serverRoster,
137136 }
138137 tryTimes ++;
139138 try {
140- logger .warn ("[latency monitor] try to acquire refresh table meta lock, tableName: {}" , tableName );
141139 if (!acquired ) {
142140 acquired = lock .tryLock (tableEntryRefreshLockTimeout , TimeUnit .MILLISECONDS );
143141 }
144142 if (!acquired ) {
145143 String errMsg = "try to lock tableEntry refreshing timeout, tableName:" + tableName
146144 + " , timeout:" + tableEntryRefreshLockTimeout + "." ;
147145 RUNTIME .warn (errMsg );
148- logger .warn ("[latency monitor] fail to acquire refresh table meta lock, tableName: {}" , tableName );
149146 throw new ObTableTryLockTimeoutException (errMsg );
150147 }
151- logger .warn ( "[latency monitor] success to acquire refresh table meta lock, tableName: {}" , tableName );
148+ logger .debug ( " success to acquire refresh table meta lock, tableName: {}" , tableName );
152149 tableEntry = locations .get (tableName );
153150 if (tableEntry != null ) {
154151 long current = System .currentTimeMillis ();
@@ -192,7 +189,6 @@ public TableEntry refreshMeta(String tableName, ServerRoster serverRoster,
192189 }
193190 } // end while
194191 } finally {
195- logger .warn ("[latency monitor] unlock refresh table meta lock, tableName: {}, execute time: {}" , tableName , System .currentTimeMillis () - start );
196192 if (acquired ) {
197193 lock .unlock ();
198194 }
@@ -214,7 +210,6 @@ private TableEntry refreshTableEntry(TableEntry tableEntry, String tableName,
214210 TableEntryKey tableEntryKey = new TableEntryKey (tableClient .getClusterName (),
215211 tableClient .getTenantName (), tableClient .getDatabase (), tableName );
216212 try {
217- long start = System .currentTimeMillis ();
218213 // tableEntry will point to a new object, the old tableEntry will be gc by jvm
219214 tableEntry = loadTableEntryWithPriority (serverRoster , //
220215 tableEntry , //
@@ -223,7 +218,6 @@ private TableEntry refreshTableEntry(TableEntry tableEntry, String tableName,
223218 tableClient .getTableEntryAcquireSocketTimeout (),//
224219 tableClient .getServerAddressPriorityTimeout (), sysUA , !tableClient
225220 .getServerCapacity ().isSupportDistributedExecute ());
226- logger .warn ("[latency monitor] finish loadTableEntryWithPriority in refresh meta, execute time: {}" , System .currentTimeMillis () - start );
227221 if (tableEntry .isPartitionTable ()) {
228222 switch (tableClient .getRunningMode ()) {
229223 case HBASE :
@@ -306,8 +300,6 @@ public TableEntry refreshPartitionLocation(TableEntry tableEntry, String tableNa
306300 }
307301 Lock lock = locationInfo .refreshLock ;
308302 boolean acquired = false ;
309- logger .warn ("[latency monitor] try to acquire refresh table location lock, tableName: {}" , tableName );
310- long start = System .currentTimeMillis ();
311303 try {
312304 int tryTimes = 0 ;
313305 long startExecute = System .currentTimeMillis ();
@@ -334,7 +326,7 @@ public TableEntry refreshPartitionLocation(TableEntry tableEntry, String tableNa
334326 RUNTIME .warn (errMsg );
335327 throw new ObTableTryLockTimeoutException (errMsg );
336328 }
337- logger .warn ( "[latency monitor] success acquire refresh table location lock, tableName: {}" , tableName );
329+ logger .debug ( " success acquire refresh table location lock, tableName: {}" , tableName );
338330 locationInfo = tableEntry .getPartitionEntry ().getPartitionInfo (tabletId );
339331 lastRefreshTime = locationInfo .getLastUpdateTime ();
340332 currentTime = System .currentTimeMillis ();
@@ -345,7 +337,6 @@ public TableEntry refreshPartitionLocation(TableEntry tableEntry, String tableNa
345337 tableName , lastRefreshTime , tableEntryRefreshInterval , currentTime );
346338 return tableEntry ;
347339 }
348- logger .warn ("[latency monitor] do refresh table location lock, tableName: {}" , tableName );
349340 tableEntry = loadTableEntryLocationWithPriority (serverRoster , tableEntryKey ,
350341 tableEntry , tabletId , tableClient .getTableEntryAcquireConnectTimeout (),
351342 tableClient .getTableEntryAcquireSocketTimeout (),
@@ -363,12 +354,12 @@ public TableEntry refreshPartitionLocation(TableEntry tableEntry, String tableNa
363354 RUNTIME .error (
364355 "refresh partition location meet schema_version mismatched exception, tryTimes: {}" , tryTimes , e );
365356 long schemaVersion = tableEntry .getSchemaVersion ();
366- logger .warn ("[latency monitor] old schema_version is: {}" , schemaVersion );
357+ logger .debug (
358+ "schema_version mismatch when refreshing tablet location, old schema_version is: {}" , schemaVersion );
367359 tableEntry = locations .get (tableName );
368360 // sleep over waiting interval of refreshing meta to refresh meta
369361 long interval = System .currentTimeMillis ()
370362 - tableEntry .getRefreshMetaTimeMills ();
371- logger .warn ("[latency monitor] interval is: {}" , interval );
372363 if (interval < 100 ) {
373364 Thread .sleep (100 - interval );
374365 }
@@ -402,10 +393,6 @@ public TableEntry refreshPartitionLocation(TableEntry tableEntry, String tableNa
402393 tableEntryRefreshContinuousFailureCount .set (0 );
403394 return tableEntry ;
404395 } finally {
405- logger
406- .warn (
407- "[latency monitor] finish refresh table location lock, tableName: {}, execute time: {}" ,
408- tableName , System .currentTimeMillis () - start );
409396 if (acquired ) {
410397 lock .unlock ();
411398 }
@@ -445,8 +432,6 @@ public TableEntry refreshTabletLocationBatch(TableEntry tableEntry, String table
445432 }
446433 Lock lock = getLocationBatchRefreshLock (tableName );
447434 boolean acquired = false ;
448- logger .warn ("[latency monitor] try to acquire refresh tablet locations in batch lock, tableName: {}" , tableName );
449- long start = System .currentTimeMillis ();
450435 try {
451436 int tryTimes = 0 ;
452437 long startExecute = System .currentTimeMillis ();
@@ -468,13 +453,12 @@ public TableEntry refreshTabletLocationBatch(TableEntry tableEntry, String table
468453 acquired = lock .tryLock (tableEntryRefreshLockTimeout , TimeUnit .MILLISECONDS );
469454 }
470455 if (!acquired ) {
471- logger .warn ("[latency monitor] fail to acquire refresh tablet locations in batch lock, tableName: {}" , tableName );
472456 String errMsg = "try to lock locations refreshing in batch timeout " + " ,tableName:"
473457 + tableName + " , timeout:" + tableEntryRefreshLockTimeout + "." ;
474458 RUNTIME .warn (errMsg );
475459 throw new ObTableTryLockTimeoutException (errMsg );
476460 }
477- logger .warn ( "[latency monitor] success to acquire refresh tablet locations in batch lock, tableName: {}" , tableName );
461+ logger .debug ( " success to acquire refresh tablet locations in batch lock, tableName: {}" , tableName );
478462 lastRefreshTime = tableEntry .getPartitionEntry ().getLastRefreshAllTime ();
479463 currentTime = System .currentTimeMillis ();
480464 if (currentTime - lastRefreshTime < refreshBatchTabletInterval ) {
@@ -484,7 +468,6 @@ public TableEntry refreshTabletLocationBatch(TableEntry tableEntry, String table
484468 tableName , lastRefreshTime , refreshBatchTabletInterval , currentTime );
485469 return tableEntry ;
486470 }
487- logger .warn ("[latency monitor] do refresh tablet locations in batch lock, tableName: {}" , tableName );
488471 tableEntry = loadTableEntryLocationInBatchWithPriority (serverRoster ,
489472 tableEntryKey , tableEntry ,
490473 tableClient .getTableEntryAcquireConnectTimeout (),
@@ -503,11 +486,11 @@ public TableEntry refreshTabletLocationBatch(TableEntry tableEntry, String table
503486 RUNTIME .error (
504487 "refresh location in batch meet schema_version mismatched exception, tryTimes: {}" , tryTimes , e );
505488 long schemaVersion = tableEntry .getSchemaVersion ();
506- logger .warn ("[latency monitor] old schema_version is: {}" , schemaVersion );
489+ logger .debug (
490+ "schema_version mismatch when refreshing tablet locations in batch, old schema_version is: {}" , schemaVersion );
507491 tableEntry = locations .get (tableName );
508492 // sleep over waiting interval of refreshing meta to refresh meta
509493 long interval = System .currentTimeMillis () - tableEntry .getRefreshMetaTimeMills ();
510- logger .warn ("[latency monitor] interval is: {}" , interval );
511494 if (interval < 100 ) {
512495 Thread .sleep (100 - interval );
513496 }
@@ -541,7 +524,6 @@ public TableEntry refreshTabletLocationBatch(TableEntry tableEntry, String table
541524 tableEntryRefreshContinuousFailureCount .set (0 );
542525 return tableEntry ;
543526 } finally {
544- logger .warn ("[latency monitor] unlock refresh tablet locations in batch lock, tableName: {}, execute time: {}" , tableName , System .currentTimeMillis () - start );
545527 if (acquired ) {
546528 lock .unlock ();
547529 }
0 commit comments