Also adds option to check if the cluster has enough read quorum and if
the cluster is taken down for any maintenance.
Uses madmin.AnonymousClient for invoking the requests
Also remove the `--full` flag and run the new perf tests (that run quite
fast) always (if the minio version supports it).
In case of older versions of minio that have the older versions of the
performance tests, mc will not request for those tests to be run, and
subsequently will not look for their results in the response.
this is essentially the same code at
https://github.com/minio/minio/tree/master/docs/debugging/xl-meta
--export option provides exporting 'xl.meta' information as 'JSON'
or export the inlined-data 'JSON' that represents 'version-id' and
the corresponding size of the inlined data.
This essentially now provides full visibility of the inspected data
that is captured, extracts and converts into some parseable
JSON.
This change bumps the lipgloss and termenv dependencies, which prevents
the terminal from being OSC-queried on startup. Additionally, OSC
queries will never be run if the process isn't in control of the
terminal, for example when started in the background / detached.
Fixes#3955.
This aborts OSC queries after a timeout, and prevents mc from getting
stuck when encountering unresponsive or non-compliant terminals, like
CircleCI's.
Fixes#3938.
This prevents mc from querying the terminal via OSC when running in a
CI context, like CircleCI. As the CI never responds to the query we
get stuck in a read we can not cancel.
Fixes#3938.
Find would replace placeholders before splitting input, meaning files with spaces would be executed as separate args.
Split before replacing args, and use shell-style parsing.
Technically, this requires quotes in input to be escaped, so to specify `--exec='echo {""}'` you must escape them like this: `--exec='echo {\"\"}'`. Quoted inputs aren't documented, but it is a change.
Errors would not be displayed, like `./mc find play/test123/ --exec='unknown {}'` would just exit. Instead it now prints `exec: "unknown": executable file not found in $PATH`.
Fixes#3906
it is potentially harmful when retrying
a lot of buckets where in this might
trigger a retry - continous Listing()
however this retry is not needed as the
callers restart as needed when --watch
or --active-active are used.
The earlier approach of using a license token for communicating with
SUBNET is being replaced with a simpler mechanism of API keys. Unlike
the license which is a JWT token, these API keys will be simple UUID
tokens, and don't have any embedded information in them. SUBNET would
generate the API key on cluster registration, and return in the API
response. mc then stores it in the `subnet api_key` config of minio,
to be used for subsequent communication with SUBNET.
In case the api_key is not available in the config, but the cluster's
license is available, it will be used as auth in the subnet API call,
and api_key will be set after the call succeeds. This will help in
smooth migration from older versions of MinIO.