The current implementation didn't cater to concurrency
factor i.e X calls happening in parallel so the
resulting values for IOPs, RX, and TX were all skewed,
change this to print totals instead.
We need to bring moving average behavior to know
the overall IOPs, RX, TX per second here.
Will bring this change subsequently, keep it simple
for now.
Change the success message on cluster registration to `{alias}
registered successfully`.
When the `mc support register` command is run for an already registered
cluster, show the message `{alias} updated successfully` to indicate
that updated information about the cluster was sent to SUBNET.
ETA disk during healing was not accurate especially when the number of
files is low. The reason is that the estimation is based on time.Now()
though heal info in the server side is only updated each minute.
Use heal info last update field instead of time.Now().
When there is no SUBNET webhook configured in the cluster (which is the
default state), the `mc support callhome get` command fails as it tries
to fetch the `logger_webhook:subnet` setting which doesn't exist.
Fixed by ignoring the specific error that says the sub-system target
doesn't exist, and printing `logs=off` in such cases.
Not trusted TLS error message has another string representation in
Darwin platform. Since there is no another way to test for this specific
error with Golang API, we will need to support this alternate error message.
Earlier the `support diag` command used to work even when the cluster
was not registered with SUBNET. In such cases, it used to pass the value
of `--name` flag as the cluster name to be set on SUBNET.
Now it errors out if the cluster is not registered. i.e. It expects the
cluster to be already registered with SUBNET, which means it already has
a name. Hence the `--name` flag is meaningless.
Removing the code that used this flag, and marking it as hidden and
deprecated.
This PR in-turn ends up supporting cascading deletes
for `mc mirror` setups when you have
```
mc mirror --watch alias1 alias2
mc mirror --watch alias2 alias3
```
IT still avoids cyclical deletes such as
```
mc mirror --watch alias1 alias2
mc mirror --watch alias2 alias1
```
client-s3.Stat() does not properly detect a prefix when there is another
lower one,
e.g: Stat() of 'dir/' fails when there is 'dir-name/' in the same parent
prefix.
In a site wide mirroring, non existing buckets in the destination site
are still created if --dry-run is passed. This commit will avoid this.
This commit also prints a mirror message of the newly created buckets
in a site wide mirroring.
When mirror in --watch mode is restarted, the previous minio-go
ListenNotification/ListenBucketNotification call is not properly
canceled. This commit creates a new context for that listen call and
cancels it when client-s3 Watch() is asked to be stopped.