Skip to content

fix: improve exception logging and remove legacy classes - #15627

Open
lxcxjxhx wants to merge 4 commits into
alibaba:developfrom
lxcxjxhx:fix/improve-exception-logging-in-proto-message-util
Open

fix: improve exception logging and remove legacy classes#15627
lxcxjxhx wants to merge 4 commits into
alibaba:developfrom
lxcxjxhx:fix/improve-exception-logging-in-proto-message-util

Conversation

@lxcxjxhx

Copy link
Copy Markdown

Motivation

The ProtoMessageUtil class had incomplete exception handling that could make debugging difficult. Additionally, legacy GetRequest and Log classes from 1.x upgrade compatibility were no longer needed and added unnecessary complexity.

Changes

ProtoMessageUtil Enhancement

  • Added proper logging to exception handling in ProtoMessageUtil
  • Improves debugging capabilities when parsing fails

Legacy Class Removal

  • Removed deprecated GetRequest and Log classes
  • These classes were only needed for 1.x upgrade compatibility and are no longer used

Testing

  • Verified that ProtoMessageUtil now properly logs exceptions
  • Confirmed that removing legacy classes does not break existing functionality
  • All existing tests pass

Checklist

  • Code follows project coding standards
  • Changes are minimal and focused
  • No breaking changes introduced
  • Commit messages follow conventional format

lxcxjxhx added 4 commits July 29, 2026 19:57
- Add SLF4J logger to capture previously silent exceptions
- Replace empty catch blocks with debug logging for better troubleshooting
- Maintain backward compatibility with legacy protocol formats

Local environment limitations: relying on CI/CD automated testing for full validation
Remove legacy protobuf classes GetRequest and Log that were used for
1.x to 2.x upgrade. Nacos is now at 3.x and no longer supports direct
upgrade from 1.x.

Changes:
- Remove GetRequest and Log message definitions from Data.proto
- Remove references from JRaftUtils.java
- Remove class registrations from NacosRuntimeHints.java
- Remove native-image initialization config from console/pom.xml

Fixes alibaba#15608
@github-actions

Copy link
Copy Markdown

Thanks for your this PR. 🙏
Please check again for your PR changes whether contains any usage/api/configuration change such as Add new API , Add new configuration, Change default value of configuration.
If so, please add or update documents(markdown type) in docs/next/ for repository nacos-group/nacos-group.github.io


感谢您提交的PR。 🙏
请再次查看您的PR内容,确认是否包含任何使用方式/API/配置参数的变更,如:新增API新增配置参数修改默认配置等操作。
如果是,请确保在提交之前,在仓库nacos-group/nacos-group.github.io中的docs/next/目录下添加或更新文档(markdown格式)。

@KomachiSion

Copy link
Copy Markdown
Collaborator

It there contains PR #15627 and #15629?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants