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

BlazingMQ Storage Tool #158

Merged
merged 130 commits into from
Mar 15, 2024
Merged

BlazingMQ Storage Tool #158

merged 130 commits into from
Mar 15, 2024

Conversation

waldgange
Copy link
Collaborator

@waldgange waldgange commented Nov 28, 2023

BMQstoragetool is a CLI tool which can inspect BlazingMQ storage files, and answer various queries.
For example:
$ bmqstoragetool --path /path/to/bmq/storage/files --guid=ABCDEF --queue="foo.bar" --timestamp-gt=123 --timestamp-lt=987 --details --dump-payload --dump-limit=10

alexander-e1off and others added 7 commits November 28, 2023 03:21
Signed-off-by: Aleksandr Ivanov <[email protected]>
Signed-off-by: Aleksandr Ivanov <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
@waldgange waldgange changed the title BMQstoragetool initial commit BMQstoragetool Nov 28, 2023
waldgange and others added 4 commits November 28, 2023 17:01
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
@quarter-note quarter-note changed the title BMQstoragetool BlazingMQstoragetool Nov 28, 2023
@quarter-note quarter-note changed the title BlazingMQstoragetool BlazingMQ Storage Tool Nov 28, 2023
Signed-off-by: Anton Pryakhin <[email protected]>
@quarter-note quarter-note changed the title BlazingMQ Storage Tool [WIP] BlazingMQ Storage Tool Nov 28, 2023
alexander-e1off and others added 14 commits November 29, 2023 01:40
Signed-off-by: Aleksandr Ivanov <[email protected]>
Signed-off-by: Aleksandr Ivanov <[email protected]>
Signed-off-by: Aleksandr Ivanov <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Aleksandr Ivanov <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
@alexander-e1off
Copy link
Collaborator

Hi @kaikulimu, thanks for found bug. We fixed it with case 1. Extend the logic to make sure both queue names and queue keys are accounted for. Also added test for this case. Now with your files it shows correct number:

bmqstoragetool.tsk --journal-path=bmq_test_files/bmqc01\#B/bmq_2*  --csl-file=bmq_test_files/bmqc01\#B/bmq_csl_20230522_145855_37146FB620.bmq_csl --queue-name=bmq://fi.imgr.rfiosrv.~dv/fiom-sheet-2 --queue-key=AEAA830F17
389295 message GUID(s) found.

Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
Signed-off-by: Anton Pryakhin <[email protected]>
@kaikulimu
Copy link
Collaborator

Finished my User-Acceptance Testing and everything was satisfactory. Great job!

syuzvinsky
syuzvinsky previously approved these changes Feb 27, 2024
Copy link
Collaborator

@kaikulimu kaikulimu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments, mostly stylistic. The most important thing is that auto and lambda functions cannot be used, because we need support C++03 compilers on IBM and Solaris.

src/applications/bmqstoragetool/README.md Outdated Show resolved Hide resolved
src/applications/bmqstoragetool/README.md Outdated Show resolved Hide resolved
src/applications/bmqstoragetool/README.md Outdated Show resolved Hide resolved
alexander-e1off and others added 2 commits February 28, 2024 22:56
Fix code style and add code documentation
Copy link
Collaborator

@kaikulimu kaikulimu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments. Should be good to go after this.

Copy link
Collaborator

@kaikulimu kaikulimu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kaikulimu kaikulimu merged commit b6a9727 into bloomberg:main Mar 15, 2024
10 checks passed
@waldgange waldgange deleted the bmqstoragetool branch March 22, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants