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] Fix Pulsar connecotr deserialize complex format with multiple data will cause data loss #5754

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

Comments

@thesumery
Copy link
Contributor

What happened

when using pulsar connecor to read data with inlong msg, some data will loss.

What you expected to happen

All data exactly equal with what inlong msg includes.

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 `test`(
    `__content__` STRING)
    WITH (
    'properties.auth-params' = 'xxxxxxxxxxxxxxxxxx',
    'properties.auth-plugin-classname' = 'org.apache.pulsar.client.impl.auth.AuthenticationToken',
    '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',
    'service-url' = 'http://pulsar-op488nga8meo.tdmq.ap-bj.public.tencenttdmq.com:8080',
    'topic' = 'pulsar-op488nga8meo/namespace_1257305158_20220826111254509798/b_s5825b746-225f-40ff-afaf-eb273c64dcf3',
    'scan.startup.mode' = 'latest'
);

select * from test;
  1. start pulsar service and produce data into pulsar
    produce inlong msg data into pulsar.

Environment

No response

InLong version

master

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