Skip to content

Commit b6dfeae

Browse files
authoredMar 13, 2025··
Doc: Add Readme for Bmq Storage Tool --min-records-per-queue param (#650)
* Add Readme for Bmq Storage Tool --min-records-per-queue param Signed-off-by: Dmitrii Petukhov <[email protected]> * Add .tsk extention in readme Signed-off-by: Dmitrii Petukhov <[email protected]> --------- Signed-off-by: Dmitrii Petukhov <[email protected]>
1 parent a19c12c commit b6dfeae

File tree

1 file changed

+37
-26
lines changed

1 file changed

+37
-26
lines changed
 

‎src/applications/bmqstoragetool/README.md

+37-26
Original file line numberDiff line numberDiff line change
@@ -100,48 +100,48 @@ Output summary for journal file
100100
----------------------------------------
101101
Example:
102102
```bash
103-
bmqstoragetool --journal-file=<path> --summary
103+
./bmqstoragetool.tsk --journal-file=<path> --summary
104104
```
105105
106106
Search and otput all message GUIDs in journal file
107107
--------------------------------------------------
108108
Example:
109109
```bash
110-
bmqstoragetool --journal-file=<path>
110+
./bmqstoragetool.tsk --journal-file=<path>
111111
```
112112
113113
Search and otput all queueOp/journalOp records or all records in journal file
114114
--------------------------------------------------
115115
Example:
116116
```bash
117-
bmqstoragetool --journal-file=<path> --record-type=queue-op
118-
bmqstoragetool --journal-file=<path> --record-type=journal-op
119-
bmqstoragetool --journal-file=<path> --record-type=journal-op --record-type=queue-op --record-type=message
117+
./bmqstoragetool.tsk --journal-file=<path> --record-type=queue-op
118+
./bmqstoragetool.tsk --journal-file=<path> --record-type=journal-op
119+
./bmqstoragetool.tsk --journal-file=<path> --record-type=journal-op --record-type=queue-op --record-type=message
120120
```
121121
122122
Search and otput all messages details in journal file
123123
-----------------------------------------------------
124124
Example:
125125
```bash
126-
bmqstoragetool --journal-file=<path> --details
126+
./bmqstoragetool.tsk --journal-file=<path> --details
127127
```
128128
129129
Search and otput all outstanding/confirmed/partially-confirmed message GUIDs in journal file
130130
--------------------------------------------------------------------------------------------
131131
Example:
132132
```bash
133-
bmqstoragetool --journal-file=<path> --outstanding
134-
bmqstoragetool --journal-file=<path> --confirmed
135-
bmqstoragetool --journal-file=<path> --partially-confirmed
133+
./bmqstoragetool.tsk --journal-file=<path> --outstanding
134+
./bmqstoragetool.tsk --journal-file=<path> --confirmed
135+
./bmqstoragetool.tsk --journal-file=<path> --partially-confirmed
136136
```
137137
138138
Search all message GUIDs with payload dump in journal file
139139
----------------------------------------------------------------------
140140
Example:
141141
```bash
142-
bmqstoragetool --journal-file=<journal-path> --data-file=<data-path> --dump-payload
143-
bmqstoragetool --journal-path=<path.*> --dump-payload
144-
bmqstoragetool --journal-path=<path.*> --dump-payload --dump-limit=64
142+
./bmqstoragetool.tsk --journal-file=<journal-path> --data-file=<data-path> --dump-payload
143+
./bmqstoragetool.tsk --journal-path=<path.*> --dump-payload
144+
./bmqstoragetool.tsk --journal-path=<path.*> --dump-payload --dump-limit=64
145145
```
146146
147147
Applying search filters to above scenarios
@@ -151,64 +151,75 @@ Filter messages with corresponding GUIDs
151151
----------------------------------------
152152
Example:
153153
```bash
154-
bmqstoragetool --journal-file=<path> --guid=<guid_1> --guid=<guid_N>
154+
./bmqstoragetool.tsk --journal-file=<path> --guid=<guid_1> --guid=<guid_N>
155155
```
156156
NOTE: no other filters are allowed with this one
157157
158158
Filter messages with corresponding composite sequence numbers (defined in form <primaryLeaseId-sequenceNumber>)
159159
---------------------------------------------------------------------------------------------------------------
160160
Example:
161161
```bash
162-
bmqstoragetool --journal-file=<path> --seqnum=<leaseId-sequenceNumber_1> --seqnum=<leaseId-sequenceNumber_N>
162+
./bmqstoragetool.tsk --journal-file=<path> --seqnum=<leaseId-sequenceNumber_1> --seqnum=<leaseId-sequenceNumber_N>
163163
```
164164
NOTE: no other filters are allowed with this one
165165
166166
Filter messages with corresponding record offsets
167167
-------------------------------------------------
168168
Example:
169169
```bash
170-
bmqstoragetool --journal-file=<path> --offset=<offset_1> --offset=<offset_N>
170+
./bmqstoragetool.tsk --journal-file=<path> --offset=<offset_1> --offset=<offset_N>
171171
```
172172
NOTE: no other filters are allowed with this one
173173
174174
Filter messages within time range
175175
---------------------------------
176176
Example:
177177
```bash
178-
bmqstoragetool --journal-file=<path> --timestamp-lt=<stamp>
179-
bmqstoragetool --journal-file=<path> --timestamp-gt=<stamp>
180-
bmqstoragetool --journal-file=<path> --timestamp-lt=<stamp1> --timestamp-gt=<stamp2>
178+
./bmqstoragetool.tsk --journal-file=<path> --timestamp-lt=<stamp>
179+
./bmqstoragetool.tsk --journal-file=<path> --timestamp-gt=<stamp>
180+
./bmqstoragetool.tsk --journal-file=<path> --timestamp-lt=<stamp1> --timestamp-gt=<stamp2>
181181
```
182182
183183
Filter messages within composite sequence numbers (primaryLeaseId, sequenceNumber) range
184184
----------------------------------------------------------------------------------------
185185
Example:
186186
```bash
187-
bmqstoragetool --journal-file=<path> --seqnum-lt=<leaseId-sequenceNumber>
188-
bmqstoragetool --journal-file=<path> --seqnum-gt=<leaseId-sequenceNumber>
189-
bmqstoragetool --journal-file=<path> --seqnum-lt=<leaseId1-sequenceNumber1> --seqnum-gt=<leaseId2-sequenceNumber2>
187+
./bmqstoragetool.tsk --journal-file=<path> --seqnum-lt=<leaseId-sequenceNumber>
188+
./bmqstoragetool.tsk --journal-file=<path> --seqnum-gt=<leaseId-sequenceNumber>
189+
./bmqstoragetool.tsk --journal-file=<path> --seqnum-lt=<leaseId1-sequenceNumber1> --seqnum-gt=<leaseId2-sequenceNumber2>
190190
```
191191
192192
Filter messages within record offsets range
193193
-------------------------------------------
194194
Example:
195195
```bash
196-
bmqstoragetool --journal-file=<path> --offset-lt=<offset>
197-
bmqstoragetool --journal-file=<path> --offset-gt=<offset>
198-
bmqstoragetool --journal-file=<path> --offset-lt=<offset1> --offset-gt=<offset2>
196+
./bmqstoragetool.tsk --journal-file=<path> --offset-lt=<offset>
197+
./bmqstoragetool.tsk --journal-file=<path> --offset-gt=<offset>
198+
./bmqstoragetool.tsk --journal-file=<path> --offset-lt=<offset1> --offset-gt=<offset2>
199199
```
200200
201201
Filter messages by queue key
202202
----------------------------
203203
Example:
204204
```bash
205-
bmqstoragetool --journal-file=<path> --queue-key=<key_1> --queue-key=<key_N>
205+
./bmqstoragetool.tsk --journal-file=<path> --queue-key=<key_1> --queue-key=<key_N>
206206
```
207207
208208
Filter messages by queue Uri
209209
----------------------------
210210
Example:
211211
```bash
212-
bmqstoragetool --journal-file=<journal_path> --csl-file=<csl_path> --queue-name=<queue_uri_1> --queue-name=<queue_uri_N>
212+
./bmqstoragetool.tsk --journal-file=<journal_path> --csl-file=<csl_path> --queue-name=<queue_uri_1> --queue-name=<queue_uri_N>
213213
```
214214
NOTE: CSL file is required
215+
216+
Display number of records per type (e.g. Message, Confirm, Delete, etc.) per queue.
217+
The number of Confirm records are displayed per AppId if there are more than 1 AppId.
218+
The information is displayed for the queues with a total number of records greater or
219+
equal to the value of `--min-records-per-queue` param.
220+
By default this feature is disabled.
221+
-------------------------------------------------------------------------------------
222+
Example:
223+
```bash
224+
./bmqstoragetool.tsk --journal-file=<path> --min-records-per-queue=<limit>
225+
```

0 commit comments

Comments
 (0)
Please sign in to comment.