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
cat: tries to do listing #2156
Comments
Yes it is expected.. @krishnasrinivas url2Stat looks for an object by listing . |
Can it be avoided? (I haven't checked the code flow) because I was testing gateway-caching when the backend is down and From a user experience perspective |
It can do definitely but it was a design choice we validate all input arguments in each of the commands as |
Theoretically we can, but that probably it needs a lot of changes because it wasn't expected that we will ever download a nonexistent object :) Generally speaking, mc sometimes makes some additional REST calls to provide better user experience and error messages. For example in mirror command, mc checks first if source & target are directories (otherwise, mirror won't make any sense) For mc cat, I added the Stat() to check if the downloaded object size is equal to what claimed in the server. |
why is Gateway Caching failing? shouldn't the List be allowed @krishnasrinivas ? and what do you mean by backend was down? |
@harshavardhana backend-down means when GCS/AWS-S3 is not available (ex. network problem). In such a situation the minio gateway just serves files from cache. Listing can't be done as caching directory looks as described here: https://github.com/krishnasrinivas/wikinotes/wiki/Caching-gateway-proposal @vadmeste if @deekoder Priority can be lowered to |
@krishnasrinivas for |
The current PR modifies the behavior of |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is list operation needed for cat command?
The text was updated successfully, but these errors were encountered: