We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
buffer
heapBuffer
Spark code use buffer instead heapBuffer.
We should use buffer method instead heapBuffer
The text was updated successfully, but these errors were encountered:
cc @maobaolong @rickyma
Sorry, something went wrong.
I think it should be ByteBuf header = ctx.alloc().directBuffer(headerLength);
ByteBuf header = ctx.alloc().directBuffer(headerLength);
We can use DirectBuffer, but we need to release the bytebuf manually. The length of the header is not large, so it is acceptable to use HeapBuffer.
No branches or pull requests
Code of Conduct
Search before asking
What would you like to be improved?
Spark code use buffer instead
heapBuffer
.How should we improve?
We should use
buffer
method insteadheapBuffer
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: