{"action":"created","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/5679","repository_url":"https://api.github.com/repos/arangodb/arangodb","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/5679/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/5679/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/5679/events","html_url":"https://github.com/arangodb/arangodb/issues/5679","id":335745742,"node_id":"MDU6SXNzdWUzMzU3NDU3NDI=","number":5679,"title":"Replication applier restrictions will crash synchronisation after initial sync","user":{"login":"soualid","id":1830223,"node_id":"MDQ6VXNlcjE4MzAyMjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1830223?v=4","gravatar_id":"","url":"https://api.github.com/users/soualid","html_url":"https://github.com/soualid","followers_url":"https://api.github.com/users/soualid/followers","following_url":"https://api.github.com/users/soualid/following{/other_user}","gists_url":"https://api.github.com/users/soualid/gists{/gist_id}","starred_url":"https://api.github.com/users/soualid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soualid/subscriptions","organizations_url":"https://api.github.com/users/soualid/orgs","repos_url":"https://api.github.com/users/soualid/repos","events_url":"https://api.github.com/users/soualid/events{/privacy}","received_events_url":"https://api.github.com/users/soualid/received_events","type":"User","site_admin":false},"labels":[{"id":4539395,"node_id":"MDU6TGFiZWw0NTM5Mzk1","url":"https://api.github.com/repos/arangodb/arangodb/labels/1%20Bug","name":"1 Bug","color":"b60205","default":false},{"id":806175592,"node_id":"MDU6TGFiZWw4MDYxNzU1OTI=","url":"https://api.github.com/repos/arangodb/arangodb/labels/3%20Master/Slave%20Replication","name":"3 Master/Slave Replication","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"jsteemann","id":1423118,"node_id":"MDQ6VXNlcjE0MjMxMTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1423118?v=4","gravatar_id":"","url":"https://api.github.com/users/jsteemann","html_url":"https://github.com/jsteemann","followers_url":"https://api.github.com/users/jsteemann/followers","following_url":"https://api.github.com/users/jsteemann/following{/other_user}","gists_url":"https://api.github.com/users/jsteemann/gists{/gist_id}","starred_url":"https://api.github.com/users/jsteemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsteemann/subscriptions","organizations_url":"https://api.github.com/users/jsteemann/orgs","repos_url":"https://api.github.com/users/jsteemann/repos","events_url":"https://api.github.com/users/jsteemann/events{/privacy}","received_events_url":"https://api.github.com/users/jsteemann/received_events","type":"User","site_admin":false},"assignees":[{"login":"jsteemann","id":1423118,"node_id":"MDQ6VXNlcjE0MjMxMTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1423118?v=4","gravatar_id":"","url":"https://api.github.com/users/jsteemann","html_url":"https://github.com/jsteemann","followers_url":"https://api.github.com/users/jsteemann/followers","following_url":"https://api.github.com/users/jsteemann/following{/other_user}","gists_url":"https://api.github.com/users/jsteemann/gists{/gist_id}","starred_url":"https://api.github.com/users/jsteemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsteemann/subscriptions","organizations_url":"https://api.github.com/users/jsteemann/orgs","repos_url":"https://api.github.com/users/jsteemann/repos","events_url":"https://api.github.com/users/jsteemann/events{/privacy}","received_events_url":"https://api.github.com/users/jsteemann/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/arangodb/arangodb/milestones/105","html_url":"https://github.com/arangodb/arangodb/milestone/105","labels_url":"https://api.github.com/repos/arangodb/arangodb/milestones/105/labels","id":3460422,"node_id":"MDk6TWlsZXN0b25lMzQ2MDQyMg==","number":105,"title":"3.3.12","description":null,"creator":{"login":"jsteemann","id":1423118,"node_id":"MDQ6VXNlcjE0MjMxMTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1423118?v=4","gravatar_id":"","url":"https://api.github.com/users/jsteemann","html_url":"https://github.com/jsteemann","followers_url":"https://api.github.com/users/jsteemann/followers","following_url":"https://api.github.com/users/jsteemann/following{/other_user}","gists_url":"https://api.github.com/users/jsteemann/gists{/gist_id}","starred_url":"https://api.github.com/users/jsteemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsteemann/subscriptions","organizations_url":"https://api.github.com/users/jsteemann/orgs","repos_url":"https://api.github.com/users/jsteemann/repos","events_url":"https://api.github.com/users/jsteemann/events{/privacy}","received_events_url":"https://api.github.com/users/jsteemann/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2018-06-28T17:44:48Z","updated_at":"2018-07-10T13:16:08Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-06-26T10:00:36Z","updated_at":"2018-07-16T10:53:52Z","closed_at":null,"author_association":"NONE","body":"## my environment running ArangoDB\r\nI'm using the latest ArangoDB of the respective release series:\r\n- [x] 3.3.9\r\n\r\nMode:\r\n- [x] Single-Server\r\n\r\nStorage-Engine:\r\n- [x] rocksdb\r\n\r\nOn this operating system:\r\n- [x] DCOS on\r\n  - [x] own infrastructure\r\n- [x] Linux \r\n  - [x] docker - official docker library\r\n\r\n## problem explanation\r\n\r\nWhen using the following configuration to setup an async replication between a master and a slave database with collection restrictions, the applier will fail with the following error message, it seems the applier tries to insert datas in the ignored collection after the initial sync: \r\n\r\n```\r\ncollection not found, offending marker ... \"cuid\":\"shares\"\r\n```\r\n\r\nTried to workaround the problem by manually creating empty collections for this. But the error still happens, an internal ID must be used to find the proper collection to insert datas into.\r\n\r\nHere is the applier configuration: \r\n\r\n```\r\nrequire(\"@arangodb/replication\").setupReplication({\r\n    \"endpoint\": \"tcp://xxxxx\",\r\n    \"database\": \"xxxxx\",\r\n    \"username\": \"root\",\r\n    \"password\": \"xxxxx\",    \r\n    \"requestTimeout\": 600,\r\n    \"connectTimeout\": 10,\r\n    \"ignoreErrors\": 0,\r\n    \"maxConnectRetries\": 100,\r\n    \"lockTimeoutRetries\": 0,\r\n    \"sslProtocol\": 0,\r\n    \"skipCreateDrop\": false,\r\n    \"autoStart\": true,\r\n    \"adaptivePolling\": false,\r\n    \"autoResync\": true,\r\n    \"autoResyncRetries\": 20,\r\n    \"includeSystem\": false,\r\n    \"requireFromPresent\": true,\r\n    \"verbose\": false,\r\n    \"incremental\": true,\r\n    \"restrictType\": \"exclude\",\r\n    \"restrictCollections\": [\"shares\",\"notifications\",\"events_\",\"sessions\",\"views\"],\r\n    \"connectionRetryWaitTime\": 15,\r\n    \"initialSyncMaxWaitTime\": 300000,\r\n    \"idleMinWaitTime\": 1,\r\n    \"idleMaxWaitTime\": 2.5\r\n});\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/comments/405211376","html_url":"https://github.com/arangodb/arangodb/issues/5679#issuecomment-405211376","issue_url":"https://api.github.com/repos/arangodb/arangodb/issues/5679","id":405211376,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTIxMTM3Ng==","user":{"login":"maxkernbach","id":9152640,"node_id":"MDQ6VXNlcjkxNTI2NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/9152640?v=4","gravatar_id":"","url":"https://api.github.com/users/maxkernbach","html_url":"https://github.com/maxkernbach","followers_url":"https://api.github.com/users/maxkernbach/followers","following_url":"https://api.github.com/users/maxkernbach/following{/other_user}","gists_url":"https://api.github.com/users/maxkernbach/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkernbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkernbach/subscriptions","organizations_url":"https://api.github.com/users/maxkernbach/orgs","repos_url":"https://api.github.com/users/maxkernbach/repos","events_url":"https://api.github.com/users/maxkernbach/events{/privacy}","received_events_url":"https://api.github.com/users/maxkernbach/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T10:53:51Z","updated_at":"2018-07-16T10:53:51Z","author_association":"CONTRIBUTOR","body":"Hi @soualid, \r\n\r\nversion 3.3.12, which includes a fix for this issue, has been released. Could you please upgrade to the latest version and check if the problem persists?"}}
{"actor":{"display_login":"maxkernbach"}}