incubator-pegasus icon indicating copy to clipboard operation
incubator-pegasus copied to clipboard

fix(learn) avoid learn use DEFAULT_POOL

Open ruojieranyishen opened this issue 1 year ago • 0 comments

FLAGS_max_copy_rate_megabytes_per_disk will use sleep_for function to block THREAD_POOL_DEFAULT. It's cause replica server cannot deal remote command. This modify is same as FLAGS_max_send_rate_megabytes_per_disk, only use THREAD_POOL_BLOCK_SERVICE to sleep.

What problem does this PR solve?

relate issue:https://github.com/apache/incubator-pegasus/issues/1969

avoid learn use DEFAULT_POOL.

  • Manual test (add detailed scripts or steps below)

Before fix, many partitions ballot increase, and remote_command cannot get response.

0     6       3/3            10.000.000.04:00001  [00.000.00.50:55101,00.000.90.9:55000]     
1     7       3/3            10.000.000.05:00001  [00.000.000.04:55101,10.000.07.9:50001]    
2     5       3/3            10.000.002.07:00001  [00.000.000.04:55101,10.000.00.52:00001]   
3     9       3/3            10.000.000.04:00001  [00.000.00.50:55101,00.000.100.15:00001]

After fix, return to normal.

0     0       3/3            10.000.000.04:00001  [00.000.00.50:55101,00.000.90.9:55000]     
1     0       3/3            10.000.000.05:00001  [00.000.000.04:55101,10.000.07.9:50001]    
2     0       3/3            10.000.002.07:00001  [00.000.000.04:55101,10.000.00.52:00001]   
3     0       3/3            10.000.000.04:00001  [00.000.00.50:55101,00.000.100.15:00001]

ruojieranyishen avatar Sep 25 '24 13:09 ruojieranyishen