Comments (7)
I'm observing that too. In my case it would be perfect if mc
would exit with a non-zero status code if the connection to the bucket is lost.
Browsing through the code, I found the following (just a hypothesis, haven't tested my observations at all):
If I'm not mistaken, errors from the watcher are handled on line 754ff in mirror-main.go. If an error occurs, it is forwarded to the parallel manager (mj.parallel.queueTask()
).
The parallel manager will handle that error task in one of its workers. If a worker encounters an error task, then it simply terminates itself (line 97ff in parallel-manager.go). But all the others seem to continue as if nothing happened.
from mc.
Not sure if this is something we want to fix. If a remote is down, we will not receive notifications and mirror will miss entries.
Restarting mc seems like the reasonable solution to re-enumerate the files on either side.
from mc.
That is what is expected from mc --watch not sure why it's failing.
from mc.
Well, the server isn't up when it is called, hence the connect: connection refused
Isn't there just an mc ping -x miniohost
missing?
from mc.
Well, the server isn't up when it is called, hence the
connect: connection refused
Isn't there just anmc ping -x miniohost
missing?
No the idea was that even with that it perpetually keeps retrying. Looks like someone has changed the code.
from mc.
Well, that is a problem, if it changed then.
from mc.
It seems that the code in parallel-manager.go
doesn't actually handle the error, but just passes it back to the result channel. That one is polled in 535ff in mirror-main.go.
Maybe there should be a distinction between fatal errors (connection lost to bucket) and recoverable errors. In that case it would be possible to make a distinction at line 588ff
from mc.
Related Issues (20)
- Mirror fails with "Cannot create a file when that file already exists." HOT 1
- Debian package for the latest version is not available HOT 1
- Data transfer going, disk space usage is expanding, but the number of objects is not growing HOT 1
- mcli: Unable to prepare URL for copying. Unable to guess the type of copy operation. HOT 9
- LDAP login prompts are written to stdout
- Usage message for 'ilm rule remove' subcommand is missing --id HOT 1
- Accept colons in `mc alias` commands HOT 3
- mc --enc-{c,s3,kms) require that input to match the argument
- "api": "s3v2" in config is not respected, even though --debug mode says it is HOT 7
- mc mirror with ceph rgw as a source fails with --watch option (SignatureDoesNotMatch) HOT 3
- Set visibility/ACL public on an object
- `/usr/bin/mc` is not readable by non-root in docker image HOT 3
- mc cp bug HOT 1
- The type is a bucket prompt, indicating an error message of Invalid party shard count/sulplus shard count given HOT 2
- An error occurred with mc mirror/cp: read: connection reset by peer. HOT 2
- Extended site replication requires aliases for all existing peer sites
- mc ls --json does not return valid JSON or JSON lines HOT 7
- Retry attempt PUTs for 'mc cp' fail with early EOF HOT 2
- Adding tolerant reader pattern feature HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mc.