You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "marmot-z (via GitHub)" <gi...@apache.org> on 2025/03/03 03:59:49 UTC

Re: [I] [Bug] Metadata retry thread may cause no provider available [dubbo]

marmot-z commented on issue #14470:
URL: https://github.com/apache/dubbo/issues/14470#issuecomment-2693221679

   > > > > ![image](https://private-user-images.githubusercontent.com/9292748/352894854-02501e8b-b269-4b8a-9d03-fac8cf68741f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIzMjA5MDAsIm5iZiI6MTcyMjMyMDYwMCwicGF0aCI6Ii85MjkyNzQ4LzM1Mjg5NDg1NC0wMjUwMWU4Yi1iMjY5LTRiOGEtOWQwMy1mYWM4Y2Y2ODc0MWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDczMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MzBUMDYyMzIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDUxZjlhMWYwNzk0ZjFiZDQxMmI1ZjA3ZTlkZGJhODc2MzdhOGI2Njc2NmMxMTQwOGFiYzM1ZWQyMGJhZGY1YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.j5yrrUd23IFLeq5dC3bGqs7fGMMcK9by3FOCeP2HAhg)
   > > > > My question is why the process is interrupted?
   > > > 
   > > > 
   > > > I'm not sure whether the process is interrupted by next retry. ![image](https://private-user-images.githubusercontent.com/49158840/353341123-8a80c9b9-7a3c-4c42-82a8-76743c648c76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIzOTM1ODYsIm5iZiI6MTcyMjM5MzI4NiwicGF0aCI6Ii80OTE1ODg0MC8zNTMzNDExMjMtOGE4MGM5YjktN2EzYy00YzQyLTgyYTgtNzY3NDNjNjQ4Yzc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMxVDAyMzQ0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVhNmRiOGNmNDNjMTRhZWUyY2FjMjE0MmFjMThkYTQwNzdlOTYxYzQwMDIxMmU5YzA3NjlhNmFhMzEzNTZmNWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5QWJksyEZrkrArWK_Xsy5gHj67hRhp_3MR31Cr5xrxk)
   > > > My connection timeout is 3000ms. If it always fails to connect, each retry will take 3000+1000+3000+1000+3000+1000=12000ms. However, the retry period is 10000ms. ![image](https://private-user-images.githubusercontent.com/49158840/353348913-1d5bb541-5bd7-44d4-8472-03230bdaf1f9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIzOTM1ODYsIm5iZiI6MTcyMjM5MzI4NiwicGF0aCI6Ii80OTE1ODg0MC8zNTMzNDg5MTMtMWQ1YmI1NDEtNWJkNy00NGQ0LTg0NzItMDMyMzBiZGFmMWY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMxVDAyMzQ0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU2NzdjZTc1NGRiMGFmNTZlNTZhNDY3ZWFmMjgxZWY5N2ZiM2M3OGM3Njk5YThjYTRkOTYxN2JiYTYyNmU4MzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KGUK9HGyIxi-jTRlz_kNa-uPoipoMjQBDq3wao0uaMM
 )
   > > 
   > > 
   > > Actually, this is a bug. The metadata retry thread calls `retryFuture.cancel(true)`, which will interrupt itself and then throw InterruptedException when trying lock.
   > 
   > Do you have some thoughts on how we can fix this issue?
   
   Since the process of obtaining the meta information of the service instance does not support interruption, the interruption always occurs at this place, which may cause inconsistency between the router and the invoker in the directory, and ultimately cause the router to refuse routing. 
   
   ![Image](https://github.com/user-attachments/assets/f4d16756-1dca-487a-8de0-e8841713a198)
   
   ![Image](https://github.com/user-attachments/assets/43bec74e-b6c7-40b7-ae7f-f1e5fd7ce5e3)
   
   So, can we support interruption when obtaining the meta information of the remote service instance to avoid the inconsistent invoker?
   
   ![Image](https://github.com/user-attachments/assets/9ca344a5-8e89-4bec-a0d5-8c60827f09f1)


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org