{"action":"created","comment":{"url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/comments/78160169","id":78160169,"diff_hunk":"@@ -76,19 +76,19 @@ class CassandraJournal(cfg: Config) extends AsyncWriteJournal with CassandraReco\n     executeCreateKeyspaceAndTables(session, config, maxTagId)\n       .flatMap(_ => initializePersistentConfig(session)))\n \n-  def preparedWriteMessage = session.prepare(writeMessage)\n-  def preparedDeleteMessages = session.prepare(deleteMessages)\n+  def preparedWriteMessage = session.prepare(writeMessage).map(_.setIdempotent(true))\n+  def preparedDeleteMessages = session.prepare(deleteMessages).map(_.setIdempotent(true))\n   def preparedSelectMessages = session.prepare(selectMessages)\n-    .map(_.setConsistencyLevel(readConsistency))\n+    .map(_.setConsistencyLevel(readConsistency).setIdempotent(true))\n   def preparedCheckInUse = session.prepare(selectInUse)\n-    .map(_.setConsistencyLevel(readConsistency))\n-  def preparedWriteInUse = session.prepare(writeInUse)\n+    .map(_.setConsistencyLevel(readConsistency).setIdempotent(true))\n+  def preparedWriteInUse = session.prepare(writeInUse).map(_.setIdempotent(true))","path":"src/main/scala/akka/persistence/cassandra/journal/CassandraJournal.scala","position":15,"original_position":15,"commit_id":"0857bc58f8b734d26a1756591503cb291fd3ca3e","original_commit_id":"0857bc58f8b734d26a1756591503cb291fd3ca3e","user":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"body":"Interesting,","created_at":"2016-09-09T10:37:44Z","updated_at":"2016-09-09T10:37:44Z","html_url":"https://github.com/akka/akka-persistence-cassandra/pull/123#discussion_r78160169","pull_request_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/comments/78160169"},"html":{"href":"https://github.com/akka/akka-persistence-cassandra/pull/123#discussion_r78160169"},"pull_request":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123","id":84617484,"html_url":"https://github.com/akka/akka-persistence-cassandra/pull/123","diff_url":"https://github.com/akka/akka-persistence-cassandra/pull/123.diff","patch_url":"https://github.com/akka/akka-persistence-cassandra/pull/123.patch","issue_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/123","number":123,"state":"open","locked":false,"title":"update cassandra dependencies","user":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"body":"* cassandra-driver-core 3.1.0\r\n* cassandra-all 3.7 (for testing)","created_at":"2016-09-09T09:10:27Z","updated_at":"2016-09-09T10:37:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78d8a19af7cf05e485c325ddf82124031dfa9348","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akka/akka-persistence-cassandra/milestones/14","html_url":"https://github.com/akka/akka-persistence-cassandra/milestones/0.18","labels_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/milestones/14/labels","id":1854625,"number":14,"title":"0.18","description":"","creator":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2016-06-29T08:59:17Z","updated_at":"2016-09-09T10:22:22Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123/commits","review_comments_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123/comments","review_comment_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/123/comments","statuses_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/statuses/0857bc58f8b734d26a1756591503cb291fd3ca3e","head":{"label":"akka:wip-update-cassandra-patriknw","ref":"wip-update-cassandra-patriknw","sha":"0857bc58f8b734d26a1756591503cb291fd3ca3e","user":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"repo":{"id":48993109,"name":"akka-persistence-cassandra","full_name":"akka/akka-persistence-cassandra","owner":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akka/akka-persistence-cassandra","description":"A replicated Akka Persistence journal backed by Apache Cassandra","fork":true,"url":"https://api.github.com/repos/akka/akka-persistence-cassandra","forks_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/forks","keys_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/teams","hooks_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/hooks","issue_events_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/events{/number}","events_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/events","assignees_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/assignees{/user}","branches_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/branches{/branch}","tags_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/tags","blobs_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/refs{/sha}","trees_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/statuses/{sha}","languages_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/languages","stargazers_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/stargazers","contributors_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/contributors","subscribers_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/subscribers","subscription_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/subscription","commits_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/commits{/sha}","git_commits_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/commits{/sha}","comments_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/comments{/number}","issue_comment_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/comments{/number}","contents_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/contents/{+path}","compare_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/merges","archive_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/downloads","issues_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues{/number}","pulls_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls{/number}","milestones_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/milestones{/number}","notifications_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/labels{/name}","releases_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/releases{/id}","deployments_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/deployments","created_at":"2016-01-04T11:31:53Z","updated_at":"2016-09-06T05:09:20Z","pushed_at":"2016-09-09T10:23:34Z","git_url":"git://github.com/akka/akka-persistence-cassandra.git","ssh_url":"git@github.com:akka/akka-persistence-cassandra.git","clone_url":"https://github.com/akka/akka-persistence-cassandra.git","svn_url":"https://github.com/akka/akka-persistence-cassandra","homepage":"","size":735,"stargazers_count":97,"watchers_count":97,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":19,"forks":22,"open_issues":19,"watchers":97,"default_branch":"master"}},"base":{"label":"akka:master","ref":"master","sha":"fa7525b1259ec9e31b0815c9eeb7032f449b22f4","user":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"repo":{"id":48993109,"name":"akka-persistence-cassandra","full_name":"akka/akka-persistence-cassandra","owner":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akka/akka-persistence-cassandra","description":"A replicated Akka Persistence journal backed by Apache Cassandra","fork":true,"url":"https://api.github.com/repos/akka/akka-persistence-cassandra","forks_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/forks","keys_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/teams","hooks_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/hooks","issue_events_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/events{/number}","events_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/events","assignees_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/assignees{/user}","branches_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/branches{/branch}","tags_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/tags","blobs_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/refs{/sha}","trees_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/statuses/{sha}","languages_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/languages","stargazers_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/stargazers","contributors_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/contributors","subscribers_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/subscribers","subscription_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/subscription","commits_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/commits{/sha}","git_commits_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/git/commits{/sha}","comments_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/comments{/number}","issue_comment_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/comments{/number}","contents_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/contents/{+path}","compare_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/merges","archive_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/downloads","issues_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues{/number}","pulls_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls{/number}","milestones_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/milestones{/number}","notifications_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/labels{/name}","releases_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/releases{/id}","deployments_url":"https://api.github.com/repos/akka/akka-persistence-cassandra/deployments","created_at":"2016-01-04T11:31:53Z","updated_at":"2016-09-06T05:09:20Z","pushed_at":"2016-09-09T10:23:34Z","git_url":"git://github.com/akka/akka-persistence-cassandra.git","ssh_url":"git@github.com:akka/akka-persistence-cassandra.git","clone_url":"https://github.com/akka/akka-persistence-cassandra.git","svn_url":"https://github.com/akka/akka-persistence-cassandra","homepage":"","size":735,"stargazers_count":97,"watchers_count":97,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":19,"forks":22,"open_issues":19,"watchers":97,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123"},"html":{"href":"https://github.com/akka/akka-persistence-cassandra/pull/123"},"issue":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/123"},"comments":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/akka/akka-persistence-cassandra/statuses/0857bc58f8b734d26a1756591503cb291fd3ca3e"}}}}
{"actor":{"display_login":"ktoso"}}