Open zuoqi1993125 opened 3 years ago
Thanks for reporting. Would you like to submit a PR to fix it?
Thanks for reporting. Would you like to submit a PR to fix it?
你们解决方案是什么,是热点参数限流的入参为pojo类时抛异常?我们在使用时是避开了这个bug,不允许参数为pojo类
@sczyh30 Maybe we can refer to the implementation of ObjectEncoder in netty4.0?
First let the POJO object inherit from the serializable serialized object,
Then in ParamFlowRequestDataDecoder#decode
, is it compatible with Netty's ObjectEncoder decoding logic?
Whether the judgment in decodeParam
is the overloaded decoding method of Serializable object, write the following logic
Thanks for reporting. Would you like to submit a PR to fix it?
Can you assign it to me
Issue Description
热点参数集群限流,如果参数是一个对象,因为netty在encode时会过滤掉,在tokenserver那解码时data会是null,导致空指针
Describe what happened (or what feature you want)
我在使用@sentinelresource注解时,使用了对象为参数,测试热点集群限流,希望可以总体阈值生效,但是metric日志总是不生效
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
jdk1.8 sentinel1.8
Anything else we need to know?
编码时跳过参数
解码时