-
Notifications
You must be signed in to change notification settings - Fork 157
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
incorrect response from cache #23
Comments
Hi @greenx Thank you very much for this report. I've read the log and cannot get any clue from it, could you please help me to reproduce it? I've created a swift test server according to https://docs.openstack.org/swift/latest/development_saio.html And I created
and upload some file:
then list gives me:
so far so good, then I put nuster in front of swift using this conf:
and test against 8081 twice:
There is no infinite loop. could you please share your nuster conf? |
Caught! A funny bug :)
And it leaves to loop. But, in theory, this is the same:
|
Aha! Confirmed. interesting..it should be same basically. I'll look into this, also welcome pull request :) Meanwhile, please avoid using
|
The reason is that in |
(cherry picked from commit c179395)
(cherry picked from commit c179395)
I try use nuster for cache openstack swift.
It have REST API for requesting list of container.
If I use standard python-swift client.
Starting at the second attempt listing goes into an infinite loop.
Example request:
As a result, we get two HTTP requests:
First request: return json with list of files.
Second request: We make sure that there are no more files. Requesting the listing for the last file from the previous query. In a normal situation, an empty JSON is returned.
I saw tcpdump, for second request returned JSON from first request - python-swift going in loops.
If you interrupt the connection and recreate the second query using the CURL the correct answer is returned - '[]'
If you look at the nuster logs, there is an endless towel or the second parameter is lost:
Etc. in logs not [CACHE]
In the normal situation, the response to the second request is logged as follows:
The text was updated successfully, but these errors were encountered: