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

[Improve][TubeMQ] Supports the return package type when querying messages #8286

Closed
1 of 2 tasks
fuweng11 opened this issue Jun 20, 2023 · 2 comments · Fixed by #8287
Closed
1 of 2 tasks

[Improve][TubeMQ] Supports the return package type when querying messages #8286

fuweng11 opened this issue Jun 20, 2023 · 2 comments · Fixed by #8287

Comments

@fuweng11
Copy link
Contributor

fuweng11 commented Jun 20, 2023

Description

Currently, the packaging mode of data cannot be determined when pulling data through the interface /broker.htm?method=admin_snapshot_message. A field needs to be added to indicate whether the packaging type of data is inlongMsg.

The following is the current return info:

{
    "result": true,
    "errCode": 200,
    "errMsg": "Success!",
    "dataSet": [{
        "index": 0,
        "data": "DwEAAAGIs9j+JgAAAAEAdGdyb3VwSWQ9dGVzdF9kYXRhcHJveHkmc3RyZWFtSWQ9c3RyZWFtMSZkdD0xNjg1MzQ4ODAzMDU1Jk5vZGVJUD05LjIzLjI4Ljg2JmNudD0xJnJ0PTE2ODY2NDQ1MjI1MzImcnRtcz0xNjg2NjQ0NTIyNTMyAAAAEgEPOAAAAAsxfHdob3xkb2luZw8B"
    }, {
        "index": 1,
        "data": "DwEAAAGIs9lE3QAAAAEAdGdyb3VwSWQ9dGVzdF9kYXRhcHJveHkmc3RyZWFtSWQ9c3RyZWFtMSZkdD0xNjg1MzQ4ODAzMDU1Jk5vZGVJUD05LjIzLjI4Ljg2JmNudD0xJnJ0PTE2ODY2NDQ1NDA2MzYmcnRtcz0xNjg2NjQ0NTQwNjM2AAAAEgEPOAAAAAsxfHdob3xkb2luZw8B"
    }, {
        "index": 2,
        "data": "DwEAAAGItAscngAAAAEAdGdyb3VwSWQ9dGVzdF9kYXRhcHJveHkmc3RyZWFtSWQ9c3RyZWFtMSZkdD0xNjg1MzQ5ODAzMjU1Jk5vZGVJUD05LjIzLjI4Ljg2JmNudD0yJnJ0PTE2ODY2NDc4MDcxMzImcnRtcz0xNjg2NjQ3ODA3MTMyAAAAHwEcbAAAABgxfHdob3xkb2luZ1xuMnx3aG98ZG9pbmcPAQ=="
    }, {
        "index": 3,
        "data": "DwEAAAGItBOxkAAAAAEAdGdyb3VwSWQ9dGVzdF9kYXRhcHJveHkmc3RyZWFtSWQ9c3RyZWFtMSZkdD0xNjg1MzQ5ODAzMDU1Jk5vZGVJUD05LjIzLjI4Ljg2JmNudD0yJnJ0PTE2ODY2NDgzNjk1NDQmcnRtcz0xNjg2NjQ4MzY5NTQ0AAAAHwEcbAAAABgxfHdob3xkb2luZ1xuMnx3aG98ZG9pbmcPAQ=="
    }, {
        "index": 4,
        "data": "DwEAAAGIt74TxQAAAAEAdGdyb3VwSWQ9dGVzdF9kYXRhcHJveHkmc3RyZWFtSWQ9c3RyZWFtMSZkdD0xNjg1MzU5OTA2MDU1Jk5vZGVJUD05LjIzLjI4Ljg2JmNudD0yJnJ0PTE2ODY3MDk4Njc0NjAmcnRtcz0xNjg2NzA5ODY3NDYwAAAAHwEcbAAAABgxfHdob3xkb2luZ1xuMnx3aG98ZG9pbmcPAQ=="
    }]
}

InLong Component

InLong TubeMQ

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@gosonzhang gosonzhang self-assigned this Jun 20, 2023
@gosonzhang gosonzhang added this to the 1.8.0 milestone Jun 20, 2023
@gosonzhang
Copy link
Contributor

@fuweng11, thanks, I'll fix it

@fuweng11 fuweng11 changed the title [Improve][Tube] [Improve][Tube] Supports the return package type when querying tube messages Jun 20, 2023
@gosonzhang
Copy link
Contributor

gosonzhang commented Jun 20, 2023

The reason is that:

  1. the encoding type "msgEnType" [8285] of the data content is placed in the attribute field;
  2. the admin_snapshot_message method only returns the content of the data field in the Message;

so, adding the attribute part in the query result can meet this requirement.

I will improve this part of the processing, add the ”attr“ field [a] to carry the attribute information of the Message in the return result of the method
a. image

@healchow healchow changed the title [Improve][Tube] Supports the return package type when querying tube messages [Improve][TubeMQ] Supports the return package type when querying messages Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants