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

GET on default bucket increases quota usage #1226

Closed
glasserc opened this issue May 22, 2017 · 0 comments
Closed

GET on default bucket increases quota usage #1226

glasserc opened this issue May 22, 2017 · 0 comments
Labels

Comments

@glasserc
Copy link
Contributor

While investigating #1225, I discovered that every GET request to e.g. /buckets/default/collections/some-collection causes quota usage to increase. For example,

select * from records where collection_id='quota';
       id        |                                    parent_id                 
                   | collection_id |       last_modified        |               
                data                                
-----------------+--------------------------------------------------------------
-------------------+---------------+----------------------------+---------------
----------------------------------------------------
 bucket_info     | /buckets/74f86a68-a03c-a5f5-fb29-e421b362f5b5                
                   | quota         | 2017-05-22 18:07:14.715782 | {"record_count
": 0, "storage_size": 1745, "collection_count": 13}
 collection_info | /buckets/74f86a68-a03c-a5f5-fb29-e421b362f5b5/collections/a-n
ewest-collection-3 | quota         | 2017-05-22 18:07:14.716923 | {"record_count
": 0, "storage_size": 540}
> http --auth 'user:pass6' 'localhost:8888/v1/buckets/default/collections/a-newest-collection-3'
HTTP/1.1 200 OK
..... more junk .....
select * from records where collection_id='quota';
       id        |                                    parent_id                 
                   | collection_id |       last_modified        |               
                data                                
-----------------+--------------------------------------------------------------
-------------------+---------------+----------------------------+---------------
----------------------------------------------------
 bucket_info     | /buckets/74f86a68-a03c-a5f5-fb29-e421b362f5b5                
                   | quota         | 2017-05-22 18:56:52.448115 | {"record_count
": 0, "storage_size": 1880, "collection_count": 14}
 collection_info | /buckets/74f86a68-a03c-a5f5-fb29-e421b362f5b5/collections/a-n
ewest-collection-3 | quota         | 2017-05-22 18:56:52.4493   | {"record_count
": 0, "storage_size": 600}

This appears to be partly because every request that goes to the default bucket "creates" a bucket and collection.

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

2 participants