Need some utility to read and show content from registry file #46

Open
opened 2023-03-24 11:52:00 +00:00 by anikeev-yadro · 5 comments

For example it will help to verify that objects from registry file repliceted correctly.

For example it will help to verify that objects from registry file repliceted correctly.

Could you describe the usecases?

There could be lots of object, printing them all would rarely make sense.
Like an example:

k6-registry --count --status verified # count objects with `verified` status
k6-registry --status verified --contains xxx/yyy # object xxx/yyy has `verified` status 
Could you describe the usecases? There could be lots of object, printing them all would rarely make sense. Like an example: ``` k6-registry --count --status verified # count objects with `verified` status k6-registry --status verified --contains xxx/yyy # object xxx/yyy has `verified` status ```
fyrchik added the
P1
enhancement
labels 2023-03-27 07:36:27 +00:00
Collaborator

would it be simpler to just dump the registry in a format that is readable+explorable and performant already? (e.g. sqlite or whatever)

would it be simpler to just dump the registry in a format that is readable+explorable and performant already? (e.g. sqlite or whatever)

It could be simpler, but IMO a separate command it not that complex too, writing go code can be easier that writing SQL.

It could be simpler, but IMO a separate command it not that complex too, writing go code can be easier that writing SQL.

See also #69

See also https://git.frostfs.info/TrueCloudLab/xk6-frostfs/issues/69

So we would like to:

  1. Move objects between statuses in bulk (to verify multiple times between tests).
  2. Print amount of objects in each status (and what statuses do exist)
  3. (?) Check the status of a particular object
  4. (?) Dump everything to JSON
So we would like to: 1. Move objects between statuses in bulk (to verify multiple times between tests). 2. Print amount of objects in each status (and what statuses do exist) 3. (?) Check the status of a particular object 4. (?) Dump everything to JSON
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: TrueCloudLab/xk6-frostfs#46
There is no content yet.