apache / apache/dubbo

dubbo3.0应用级服务发现, 服务端配置payload后, 消费端无法取到

Open
#11,436 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.

## Ask your question here
使用dubbo3.0应用级服务发现的场景下, 消费者调用服务端时报错"Data length too large:xxxxxx, max payload: 8388608"。
断点在ExchangeCodec.finishRespWhenOverPayload.getPayload方法中,无论服务端如何修改配置,channel.getUrl始终没有payload属性。
channel.getUrl:dubbo://10.20.4.17:21868/org.apache.dubbo.metadata.MetadataService?codec=dubbo&connect.lazy.initial.state=true&dubbo=2.0.2&group=xxx-service&heartbeat=60000&port=21868&protocol=dubbo&release=3.0.4&send.reconnect=true&side=consumer&timeout=5000&version=1.0.0

Contributor guide

Open the contributing guide

Research direction

Start at ExchangeCodec.finishRespWhenOverPayload.getPayload and reproduce the application-level service discovery call that reports a payload larger than 8388608. Inspect how the server payload configuration is propagated into channel.getUrl for the MetadataService consumer. Done means the consumer receives the configured payload limit and the failing response is handled without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.