You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Advaitgaur004 (via GitHub)" <gi...@apache.org> on 2025/01/22 23:10:45 UTC

[PR] Add Error Handling for Critical Network Operations [dubbo-python]

Advaitgaur004 opened a new pull request, #43:
URL: https://github.com/apache/dubbo-python/pull/43

   ## What is the purpose of the change
   
   Add comprehensive error handling **for critical network operations** to improve system reliability and debuggability.
   
   ## Brief changelog
   
   - Added try-catch blocks with proper logging in client network operations (client.py)
   - Implemented error handling for server startup and client creation (bootstrap.py)
   - Added error handling for registry operations including destroy and availability checks (directories.py)
   - Implemented error handling for CPU monitoring with retry mechanism (cpu.py)
   - Enhanced compression operations with proper error handling (gzips.py)
   
   ## Checklist
   - [x] Each commit has meaningful subject line and body explaining the changes
   - [x] Pull request description provides detailed explanation of changes
   - [ ] No documentation updates needed on dubbo-website as this is an internal improvement
   - [x] GitHub Actions passing on branch error-handling-improvements
   
   ## Additional Notes
   - Error handling focuses only on critical sections to maintain code readability
   - All error messages include context for easier debugging
   - Used consistent logging patterns across all modified files
   - Preserved original exceptions through re-raising to maintain error context


-- 
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


Re: [PR] Add Error Handling for Critical Network Operations [dubbo-python]

Posted by "Advaitgaur004 (via GitHub)" <gi...@apache.org>.
Advaitgaur004 closed pull request #43: Add Error Handling for Critical Network Operations
URL: https://github.com/apache/dubbo-python/pull/43


-- 
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


Re: [PR] Add Error Handling for Critical Network Operations [dubbo-python]

Posted by "Advaitgaur004 (via GitHub)" <gi...@apache.org>.
Advaitgaur004 commented on PR #43:
URL: https://github.com/apache/dubbo-python/pull/43#issuecomment-2608457994

   _The error handling focuses on critical sections that interact with external services or perform essential operations rather than adding try-catch blocks everywhere._


-- 
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


Re: [PR] Add Error Handling for Critical Network Operations [dubbo-python]

Posted by "cnzakii (via GitHub)" <gi...@apache.org>.
cnzakii commented on PR #43:
URL: https://github.com/apache/dubbo-python/pull/43#issuecomment-2608819064

   @Advaitgaur004 
   
   Currently, the exception handling mechanism is not very well-developed and needs to be improved. However, addressing exception handling solely in the basic components and bootstrap parts is clearly not sufficient to achieve this goal. Such an approach would make it difficult for users or maintainers to troubleshoot problems as it is too general. Additionally, for the framework, some exceptions can be handled internally, while others need to be exposed to the user (specific practices can refer to the concepts in Dubbo-Java).  
   
   By the way, you can refer to [CONTRIBUTING.md](https://github.com/apache/dubbo-python/blob/main/CONTRIBUTING.md), and before creating a PR, submit an issue on [Apache Dubbo Issues](https://github.com/apache/dubbo/issues). Thank you very much for your support of Dubbo-Python!


-- 
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