keith-turner opened a new pull request, #4285:
URL: https://github.com/apache/accumulo/pull/4285

   A test in MergeIT was running slower than expected. Debugged and saw the 
following happen in the manager logs.
   
   ```
   2024-02-20T22:21:40,578 80 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:40,587 80 [manager.EventCoordinator] DEBUG: Tablet hosting 
requested for 3 tablets in 1
   2024-02-20T22:21:42,718 93 [manager.EventCoordinator] DEBUG: tablet 
1;row_0000000250< was unloaded from localhost:35711
   2024-02-20T22:21:45,136 85 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:45,136 85 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:21:45,242 98 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:45,242 98 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:21:45,431 99 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:45,431 99 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:21:45,797 62 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:45,797 62 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:21:46,480 71 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:46,480 71 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:21:47,885 88 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:47,886 88 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:21:50,539 89 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:50,539 89 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:21:55,802 80 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:21:55,802 80 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:01,034 75 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:01,034 75 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:06,421 87 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:06,421 87 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:11,126 60 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:11,126 60 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:16,457 67 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:16,457 67 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:21,816 80 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:21,816 80 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:27,104 62 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:27,104 62 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:32,472 82 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:32,472 82 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:37,224 99 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:37,224 99 [manager.Manager] TRACE: Ignoring hosting request 
because it was recently requested 1;row_0000000250<
   2024-02-20T22:22:41,811 87 [manager.Manager] INFO : Tablet hosting requested 
for: 1;row_0000000250<
   2024-02-20T22:22:41,817 87 [manager.EventCoordinator] DEBUG: Tablet hosting 
requested for 1 tablets in 1
   ```
   
   A tablet was loaded as a result of a hosting request and then immediately 
unloaded because of table operations done by the client.  The client then 
attempts to scan the table and this hangs for a minute because the recent 
hosting request in the manager has a 1 min timeout.
   
   Trying to keep the cache of recent hosting request consistent for events 
like this would require a lot of effort.  One reason for the cache was to deal 
with the thundering herd.  To avoid cache consistency issues and deal with the 
thundering herd, the cache was replaced with a concurrent set that tracks what 
extents are currently being processed.  If 100s of request show up to host a 
single tablet at the same time, then only one of them will be processed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to