Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes #1065]modified sentinel-dubbo-adapter module DefaultDubboFallback.java class,resolve the issue #1065 [Serialized class com.alibaba.csp.sentinel.slots.block.flow.FlowRule must implement java.io.Serializable] #1758

Closed
wants to merge 3 commits into from

Conversation

wzg923
Copy link
Contributor

@wzg923 wzg923 commented Sep 24, 2020

Describe what this PR does / why we need it

fixed the bug of sentinel-dubbo-adapter [Caused by: java.lang.RuntimeException: Serialized class com.alibaba.csp.sentinel.slots.block.flow.FlowRule must implement java.io.Serializable]

Does this pull request fix one issue?

Fixes #1065

Describe how you did it

Just wrap the BlockException to a custom RuntimeException,so the result do not contains the BlockException.

Describe how to verify it

Verify it by run the example project of sentinel-demo-dubbo .

Special notes for reviews

….java class,resolve the issue #1065 [Serialized class com.alibaba.csp.sentinel.slots.block.flow.FlowRule must implement java.io.Serializable]
// Just wrap the exception.
return new RpcResult(new SentinelRpcException(ex));
// Just wrap the exception. edit by wzg923 2020/9/23
RpcResult result = new RpcResult();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please reformat the code

@sczyh30 sczyh30 added the area/integrations Issues or PRs related to integrations with open-source components label Sep 28, 2020
@wzg923 wzg923 closed this Oct 13, 2020
CST11021 pushed a commit to CST11021/Sentinel that referenced this pull request Nov 3, 2021
* pid 4bytes

* pid is 4 bytes

* alibaba#1751 fix bug and add a unit test

* alibaba#1751 short pid

* 保持原来

* alibaba#1751 remove repeat code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/integrations Issues or PRs related to integrations with open-source components
Projects
None yet
3 participants