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

Utility to debug the data from a LavinMQ instance #220

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snichme
Copy link
Member

@snichme snichme commented Jan 22, 2021

show_sp: show all data and headers that corresponds to a segment
position
list_queues: List which queue each directory corresponds to

show_sp: show all data and headers that corresponds to a segment
position
list_queues: List which queue each directory corresponds to
@jage
Copy link
Contributor

jage commented Oct 27, 2021

Ah, I missed this, looks very interesting, should we revive it?

@jage
Copy link
Contributor

jage commented Feb 2, 2022

Ah, I missed this, looks very interesting, should we revive it?

Yes we should!

@jage jage changed the title Utility to debug the data from a AvalancheMQ instance Utility to debug the data from a LavinMQ instance Nov 3, 2022
@chadknutson
Copy link

chadknutson commented Nov 20, 2023

I have the list_queues feature in lmqrecover now. Currently the output format is as below, but I am happy to alter as needed.

`➜ lmqrecover git:(main) ✗ ./bin/lmqrecover -D ~/Temp/LavinMQ/campbell -m queue_dict

VHOST ed9e7c271ec2819801de88bedc995c7862f14671 : alccsfpt
e0417928efb829deba056fc53babf67b9aab8d1a : q1
a87383fb48a01e0cc8776076d47b47dedb64e7cf : ackq
5eb965dd8c804a3a2833ac61fe1d1f6b1960735a : dead
814866c5e21db7061ea573dece6dd6887156f541 : fed_explicit
4f3494b506290b16dabd31ff75c1babdbdd7ff7b : fed_blank
f237cb031ca6df0f8a2fd1a7001801a5c01fd551 : q2
55bc5de4ad739fc0c332d826cb21bab6c0fd28b7 : recover

VHOST 7b00b3a3f975f114b68b430e96c5def958e32ed9 : pnivqvfc
daa8ff96afb156ca03422fe9e7897791a333cafb : custom_build
6c3cb56024bc6c8b89766adad4be6fd341a2447a : default_celery_queue`

@chadknutson
Copy link

Now there is a mode to show message details for specified file and segment position. Let me know if you want the AMQP properties split out. Simple enough to do.

➜ lmqrecover git:(main) ./bin/lmqrecover -D ~/Temp/LavinMQ/campbell/18406f777ec2bc0b0c8f9900e342ca5f0a557268/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3/msgs.0000000001 -m show_sp -s 4

Message located
exchange: default-exchange
routing_key: test
Properties: AMQ::Protocol::Properties(@timestamp_raw=nil, @content_type=nil, @content_encoding=nil, @headers=AMQ::Protocol::Table(), @delivery_mode=2, @priority=nil, @correlation_id=nil, @reply_to=nil, @Expiration=nil, @message_id=nil, @type=nil, @user_id=nil, @app_id=nil, @reserved1=nil)
Body size: 41B

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.

3 participants