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

Querying storage statistics returns wrong JSON #797

Closed
antony66 opened this issue Feb 6, 2014 · 2 comments
Closed

Querying storage statistics returns wrong JSON #797

antony66 opened this issue Feb 6, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@antony66
Copy link

antony66 commented Feb 6, 2014

Hello there

Riak CS documentation says clearly that JSON response to storage access request should contain list of user's buckets and storage usage information about each of them i.e.

      "foo": {
        "Objects": 1,
        "Bytes": 32505856
      },
      "bar": {
        "Objects": 4,
        "Bytes": 130023424
      }

We're testing Riak CS 1.4.4 installed on Debian Wheezy x64 nodes from Debian package provided on the official download page and in our case resulting JSON looks as follows:

"struct":{"Objects":943,"Bytes":2868597},
"struct":{"Objects":307,"Bytes":752095},
"struct":{"Objects":351,"Bytes":3346306},
"struct":{"Objects":1158,"Bytes":19926176},
"struct":{"Objects":1327,"Bytes":629402195}},

It contains repeating word "struct" instead of bucket's names, while other information (number of files in a bucket and summary size in bytes) is correct.

I also noticed that if I request result in xml:

s3cmd get s3://riak-cs/usage/<User-Key>/bx/20140205T160000Z/20140206T170000Z --force --no-progress - 

I get error 500 every time. This only applies to "b" (storage statistics type query), but not "a" type queries. Should I open another issue for this?

@ksauzz
Copy link
Contributor

ksauzz commented Feb 6, 2014

Thank you for the report. I reproduced this issue. We will handle that!!

@ksauzz ksauzz added the Bug label Feb 6, 2014
@ksauzz ksauzz added this to the 1.4.5 milestone Feb 6, 2014
@ksauzz ksauzz self-assigned this Feb 6, 2014
@kuenishi
Copy link
Contributor

Closing as #800 merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants