You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
The implementation of NettyArrowBuf unwrap() is throwing UnsupportedOperationException, but the ByteBuf interface says unwrap() should return null when a buffer cannot be unwrapped. Netty's AbstractByteBuf base class calls unwrap() in toString() and prints extra info if the result is non-null. Since toString() is called every time a debug or error message is printed, real errors are getting masked and enabling debug logging is likely to cause unexpected errors.
Seems like a simple fix just to return null from unwrap() in NettyArrowBuf? I will submit a PR with the change if someone wants to take a look.
Component(s)
Java
The text was updated successfully, but these errors were encountered:
lidavidm
changed the title
unwrap() in NettyArrowBuf causes breaks when debug / error messages are logged
[Java] unwrap() in NettyArrowBuf causes breaks when debug / error messages are logged
May 11, 2023
Suggested fix for #35553
No API changes, this just brings the implementation in line with the API as specified by Netty.
CI for Java run successfully here (not sure if this is publically visible):
https://github.com/martin-traverse/arrow/actions/runs/4949700024
* Closes: #35553
Authored-by: Martin Traverse <martin.traverse@accenture.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Suggested fix for apache#35553
No API changes, this just brings the implementation in line with the API as specified by Netty.
CI for Java run successfully here (not sure if this is publically visible):
https://github.com/martin-traverse/arrow/actions/runs/4949700024
* Closes: apache#35553
Authored-by: Martin Traverse <martin.traverse@accenture.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
rtpsw
pushed a commit
to rtpsw/arrow
that referenced
this issue
May 16, 2023
Suggested fix for apache#35553
No API changes, this just brings the implementation in line with the API as specified by Netty.
CI for Java run successfully here (not sure if this is publically visible):
https://github.com/martin-traverse/arrow/actions/runs/4949700024
* Closes: apache#35553
Authored-by: Martin Traverse <martin.traverse@accenture.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Describe the bug, including details regarding any error messages, version, and platform.
The implementation of NettyArrowBuf unwrap() is throwing UnsupportedOperationException, but the ByteBuf interface says unwrap() should return null when a buffer cannot be unwrapped. Netty's AbstractByteBuf base class calls unwrap() in toString() and prints extra info if the result is non-null. Since toString() is called every time a debug or error message is printed, real errors are getting masked and enabling debug logging is likely to cause unexpected errors.
Seems like a simple fix just to return null from unwrap() in NettyArrowBuf? I will submit a PR with the change if someone wants to take a look.
Component(s)
Java
The text was updated successfully, but these errors were encountered: