apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.54k stars 26.44k forks source link

[Bug] #14746

Closed deyongTang closed 1 month ago

deyongTang commented 1 month ago

Pre-check

Search before asking

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

java.io.IOException: Len error. A message from /192.168.0.102:2449 with advertised length of 1195725856 is either a malformed message or too large to process (length is greater than jute.maxbuffer=1048575)

at org.apache.zookeeper.server.NIOServerCnxn.readLength(NIOServerCnxn.java:567)

at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:352)

at org.apache.zookeeper.server.NIOServerCnxnFactory$IOWorkRequest.doWork(NIOServerCnxnFactory.java:508)

at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:153)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source).

When using Dubbo to register services to Zookeeper, an exception occurred in the Zookeeper logs indicating that the data packet size was too large.

Dubbo should normally register services to Zookeeper, and the size of the data packets sent should be within a reasonable range (usually not exceeding 1MB).

However, Dubbo is sending exceptionally large data packets (over 1GB), which causes Zookeeper to fail to process them and results in service registration failure.

Dubbo version: 3.3.0

Steps to reproduce this issue

When using Dubbo to register services to Zookeeper, an exception occurred in the Zookeeper logs indicating that the data packet size was too large.

What you expected to happen

Dubbo should normally register services to Zookeeper, and the size of the data packets sent should be within a reasonable range (usually not exceeding 1MB).

Anything else

No response

Are you willing to submit a pull request to fix on your own?

Code of Conduct

wcy666103 commented 1 month ago

Can you submit a complete reproduction? Can you help us improve by submitting a pr?