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

fix support set nettyMaxFrameSizeBytes on bookeeper config #7116

Conversation

liudezhi2098
Copy link
Contributor

Master Issue: #7115

Motivation

fix by default config , when the content of the sent message is 5M, it will appear that the current topic can no longer send the message.

Modifications

bookkeeper.con f

# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.
nettyMaxFrameSizeBytes=1073741824

The default setting is 1G size, I think it should be larger than the broker's

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@@ -268,6 +268,9 @@ serverTcpNoDelay=true
# The Recv ByteBuf allocator max buf size.
# byteBufAllocatorSizeMax=1048576

# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.
# The maximum netty frame size in bytes. Any message received larger than this will be rejected. The default value is 1G.

Copy link
Contributor

Choose a reason for hiding this comment

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

@liudezhi2098 It's better to use 5MB as the default value, in order to avoid the change of the default value to break the use of some scenes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

use 5MB as the default value , will cause problems,can be changed to 5253120(
5242880 + Commands.MESSAGE_SIZE_FRAME_PADDING)

@sijie
Copy link
Member

sijie commented Jun 1, 2020

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit d009c11 into apache:master Jun 4, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
Master Issue: apache#7115
## Motivation

fix by default config , when the content of the sent message is 5M, it will appear that the current topic can no longer send the message.

## Modifications
bookkeeper.con f
```java
# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.
nettyMaxFrameSizeBytes=1073741824
```

The default setting is 1G size, I think it should be larger than the broker's
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants