-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support for tombstones (null value in messages) does not work #7407
Comments
Added check to prevent NPE when a tombstone (null value) is produced. Documented in apache#7407
Thanks @fmiguelez for open the issue and related PR. @gaoran10 to help review the Pr. |
Added check to prevent NPE when a tombstone (null value) is produced. Fixes #7407
I do not think that this ticket should be closed as pull request only solves one of the cases described by the tests |
It was closed because of |
Added check to prevent NPE when a tombstone (null value) is produced. Fixes apache#7407 (cherry picked from commit 90c2f4a)
Added check to prevent NPE when a tombstone (null value) is produced. Fixes apache#7407
@fmiguelez Sorry, late response.
Currently, if we send messages as above the message payload is
If we specify the value is null, the messageMetaData will record the flag
|
@fmiguelez Is there any block about this issue? Could you provide more details? |
I think pulsar sql can't deal with empty payload messages because of the same issues described here. See my issue #13127. |
@gaoran10
Third use case is not covered by the provided sample test. |
@fmiguelez Sorry for the late response, thanks for your tests.
Currently, if we don't specify value when producing messages, the payload will be an empty byte array, this will cause
Could you provide error logs? Maybe caused by this method |
this issue looks fixed by #9046, closing |
@dao-jun please re-open this issue, as it was clearly stated by others in their comments (after the pr you linked was merged) that there's still issue not fixed. |
Describe the bug
The solution provided by #7139 to the BUG #4803 does not work.
null
value aNullPointerException
is thrown in other part of the code.To Reproduce
I have created a test project to reproduce these issues (
null
values implicitly and explictly set with both schema and schemaless consumer): pulsar-tombstone-testRead README.md to reproduce it.
Expected behavior
Tombstones (
null
values in mesages with our without schema but with key) should be supported whether you indicate an schema or not and whether you explicitly indicate anull
value or not (implicitnull
value). All tests should pass in the example project.Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: