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

[TubeMQ] Discarded msgTime value when msgType is empty #2569

Closed
2 tasks done
gosonzhang opened this issue Feb 17, 2022 · 0 comments · Fixed by #2580
Closed
2 tasks done

[TubeMQ] Discarded msgTime value when msgType is empty #2569

gosonzhang opened this issue Feb 17, 2022 · 0 comments · Fixed by #2580
Assignees
Labels
Milestone

Comments

@gosonzhang
Copy link
Contributor

What happened

See https://github.com/apache/incubator-inlong/blob/master/inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/utils/MixedUtils.java#L125
image

In the MixedUtils.buildMessage() function, there is a bug hidden in the above part: when the filter item does not exist, the message reporting time information will not be filled in the message, although these two parameters are filled in through the same API, analyze the implementation of putSystemHeader, It is a setting that supports the case where two parameters are null at the same time. Therefore, it is necessary to adjust here to avoid the situation of missing information.

What you expected to happen

send message without filter item

How to reproduce

send message without filter item

Environment

windows

InLong version

master

InLong Component

InLong TubeMQ

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant