{"action":"created","issue":{"url":"https://api.github.com/repos/couchbaselabs/sg-replicate/issues/16","repository_url":"https://api.github.com/repos/couchbaselabs/sg-replicate","labels_url":"https://api.github.com/repos/couchbaselabs/sg-replicate/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/couchbaselabs/sg-replicate/issues/16/comments","events_url":"https://api.github.com/repos/couchbaselabs/sg-replicate/issues/16/events","html_url":"https://github.com/couchbaselabs/sg-replicate/issues/16","id":136175313,"number":16,"title":"Potential interference with remote checkpoint stored in sync gateway","user":{"login":"tleyden","id":296876,"avatar_url":"https://avatars.githubusercontent.com/u/296876?v=3","gravatar_id":"","url":"https://api.github.com/users/tleyden","html_url":"https://github.com/tleyden","followers_url":"https://api.github.com/users/tleyden/followers","following_url":"https://api.github.com/users/tleyden/following{/other_user}","gists_url":"https://api.github.com/users/tleyden/gists{/gist_id}","starred_url":"https://api.github.com/users/tleyden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tleyden/subscriptions","organizations_url":"https://api.github.com/users/tleyden/orgs","repos_url":"https://api.github.com/users/tleyden/repos","events_url":"https://api.github.com/users/tleyden/events{/privacy}","received_events_url":"https://api.github.com/users/tleyden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T20:16:58Z","updated_at":"2016-03-30T21:44:38Z","closed_at":null,"body":"\r\nIn \r\n\r\n```\r\nfunc (r Replication) targetCheckpointAddress() string {\r\n\r\n    // TODO: this needs to take into account other aspects\r\n    // of replication (filters, filterparams, etc)\r\n\r\n    targetUrlString := r.Parameters.getTargetDbUrl()\r\n    hash := crypto.SHA1.New()\r\n    hash.Sum([]byte(targetUrlString))\r\n    return hex.EncodeToString(hash.Sum(nil))\r\n}\r\n```\r\n\r\n* Multiple replications that only differ in parameters will (erroneously) use the same checkpoint url to store a checkpoint in sync gateway.  \r\n* Multiple sg-replicate instances using same config will also use the same checkpoint url.  \r\n\r\nI'm not sure what the implications of this interference are, but it’s probably safer if they don’t interfere w/ each other."},"comment":{"url":"https://api.github.com/repos/couchbaselabs/sg-replicate/issues/comments/203647672","html_url":"https://github.com/couchbaselabs/sg-replicate/issues/16#issuecomment-203647672","issue_url":"https://api.github.com/repos/couchbaselabs/sg-replicate/issues/16","id":203647672,"user":{"login":"tleyden","id":296876,"avatar_url":"https://avatars.githubusercontent.com/u/296876?v=3","gravatar_id":"","url":"https://api.github.com/users/tleyden","html_url":"https://github.com/tleyden","followers_url":"https://api.github.com/users/tleyden/followers","following_url":"https://api.github.com/users/tleyden/following{/other_user}","gists_url":"https://api.github.com/users/tleyden/gists{/gist_id}","starred_url":"https://api.github.com/users/tleyden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tleyden/subscriptions","organizations_url":"https://api.github.com/users/tleyden/orgs","repos_url":"https://api.github.com/users/tleyden/repos","events_url":"https://api.github.com/users/tleyden/events{/privacy}","received_events_url":"https://api.github.com/users/tleyden/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T21:44:38Z","updated_at":"2016-03-30T21:44:38Z","body":"TODO: review couchbase lite canonicialization approach"}}