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

[Bug][Sort] InLongMsg with inner format raw deserialize will throw NullPointException #5737

Closed
2 tasks done
thesumery opened this issue Aug 30, 2022 · 0 comments · Fixed by #5738
Closed
2 tasks done
Assignees
Labels
component/sort type/bug Something is wrong
Milestone

Comments

@thesumery
Copy link
Contributor

What happened

when config format is inLongMsg, and it's inner format is raw format, receive data and deserialize will throw nullpointException.

WXWorkCapture_16617860441723

What you expected to happen

deserialize successful.

How to reproduce

  1. prepare a flink environment(flink 1.13.6)
  2. put all dependency into flink lib
  3. start flink standalone service
  4. execute flink sql client
CREATE TABLE `table_b_s5825b746-225f-40ff-afaf-eb273c64dcf3`(
    `__content__` STRING)
    WITH (
    'inlong.metric' = 's5825b746-225f-40ff-afaf-eb273c64dcf3&b_s5825b746-225f-40ff-afaf-eb273c64dcf3&b_s5825b746-225f-40ff-afaf-eb273c64dcf3',
    'connector' = 'pulsar-inlong',
    'inlong-msg.inner.format' = 'raw',
    'format' = 'inlong-msg',
    'inlong-msg.raw.charset' = 'UTF-8',
    'inlong-msg.raw.endianness' = 'big-endian',
    'inlong-msg.ignore-parse-errors' = 'false',
    'generic' = 'true',
    'admin-url' = 'localhost:8080',
    'service-url' = 'localhost:6650',
    'topic' = 'pulsar-op488nga8meo/namespace_1257305158_20220826111254509798/b_s5825b746-225f-40ff-afaf-eb273c64dcf3',
    'scan.startup.mode' = 'earliest'
);
select * from table_b_s5825b746-225f-40ff-afaf-eb273c64dcf3;
  1. start pulsar service and produce data into pulsar
    produce inlong msg data into pulsar.

Environment

No response

InLong version

1.3.0

InLong Component

InLong Sort

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
component/sort type/bug Something is wrong
Projects
None yet
3 participants