History

Add support for existing object replication. (#12109)

Also adding an API to allow resyncing replication when existing object replication is enabled and the remote target is entirely lost. With the `mc replicate reset` command, the objects that are eligible for replication as per the replication config will be resynced to target if existing object replication is enabled on the rule.

Poorna Krishnamoorthy committed 5 years ago

Commit dbea8d21 parent 1f262da19 files · +928 −334Browse files

Showing the changes to cmd/api-errors.go (1 of 19 files). Show all

Unified · Split

cmd/api-errors.go+6−0
@@ -125,6 +125,7 @@ const ( · 124 unmodified lines
125 ErrReplicationSourceNotVersionedError125 ErrReplicationSourceNotVersionedError
126 ErrReplicationNeedsVersioningError126 ErrReplicationNeedsVersioningError
127 ErrReplicationBucketNeedsVersioningError127 ErrReplicationBucketNeedsVersioningError
128 ErrReplicationNoMatchingRuleError
128 ErrObjectRestoreAlreadyInProgress129 ErrObjectRestoreAlreadyInProgress
129 ErrNoSuchKey130 ErrNoSuchKey
130 ErrNoSuchUpload131 ErrNoSuchUpload
@@ -859,6 +860,11 @@ var errorCodes = errorCodeMap{ · 728 unmodified lines
859 Description: "Remote service connection error - please check remote service credentials and target bucket",860 Description: "Remote service connection error - please check remote service credentials and target bucket",
860 HTTPStatusCode: http.StatusNotFound,861 HTTPStatusCode: http.StatusNotFound,
861 },862 },
863 ErrReplicationNoMatchingRuleError: {
864 Code: "XMinioReplicationNoMatchingRule",
865 Description: "No matching replication rule found for this object prefix",
866 HTTPStatusCode: http.StatusBadRequest,
867 },
862 ErrBucketRemoteIdenticalToSource: {868 ErrBucketRemoteIdenticalToSource: {
863 Code: "XMinioAdminRemoteIdenticalToSource",869 Code: "XMinioAdminRemoteIdenticalToSource",
864 Description: "The remote target cannot be identical to source",870 Description: "The remote target cannot be identical to source",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t