{"action":"closed","issue":{"url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/537","repository_url":"https://api.github.com/repos/YugaByte/yugabyte-db","labels_url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/537/comments","events_url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/537/events","html_url":"https://github.com/YugaByte/yugabyte-db/issues/537","id":378418249,"node_id":"MDU6SXNzdWUzNzg0MTgyNDk=","number":537,"title":"One CQL call can lead to multiple writes to DocDB due to internal retries","user":{"login":"ttyusupov","id":903044,"node_id":"MDQ6VXNlcjkwMzA0NA==","avatar_url":"https://avatars0.githubusercontent.com/u/903044?v=4","gravatar_id":"","url":"https://api.github.com/users/ttyusupov","html_url":"https://github.com/ttyusupov","followers_url":"https://api.github.com/users/ttyusupov/followers","following_url":"https://api.github.com/users/ttyusupov/following{/other_user}","gists_url":"https://api.github.com/users/ttyusupov/gists{/gist_id}","starred_url":"https://api.github.com/users/ttyusupov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttyusupov/subscriptions","organizations_url":"https://api.github.com/users/ttyusupov/orgs","repos_url":"https://api.github.com/users/ttyusupov/repos","events_url":"https://api.github.com/users/ttyusupov/events{/privacy}","received_events_url":"https://api.github.com/users/ttyusupov/received_events","type":"User","site_admin":false},"labels":[{"id":711841622,"node_id":"MDU6TGFiZWw3MTE4NDE2MjI=","url":"https://api.github.com/repos/YugaByte/yugabyte-db/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"spolitov","id":891914,"node_id":"MDQ6VXNlcjg5MTkxNA==","avatar_url":"https://avatars0.githubusercontent.com/u/891914?v=4","gravatar_id":"","url":"https://api.github.com/users/spolitov","html_url":"https://github.com/spolitov","followers_url":"https://api.github.com/users/spolitov/followers","following_url":"https://api.github.com/users/spolitov/following{/other_user}","gists_url":"https://api.github.com/users/spolitov/gists{/gist_id}","starred_url":"https://api.github.com/users/spolitov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolitov/subscriptions","organizations_url":"https://api.github.com/users/spolitov/orgs","repos_url":"https://api.github.com/users/spolitov/repos","events_url":"https://api.github.com/users/spolitov/events{/privacy}","received_events_url":"https://api.github.com/users/spolitov/received_events","type":"User","site_admin":false},"assignees":[{"login":"spolitov","id":891914,"node_id":"MDQ6VXNlcjg5MTkxNA==","avatar_url":"https://avatars0.githubusercontent.com/u/891914?v=4","gravatar_id":"","url":"https://api.github.com/users/spolitov","html_url":"https://github.com/spolitov","followers_url":"https://api.github.com/users/spolitov/followers","following_url":"https://api.github.com/users/spolitov/following{/other_user}","gists_url":"https://api.github.com/users/spolitov/gists{/gist_id}","starred_url":"https://api.github.com/users/spolitov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolitov/subscriptions","organizations_url":"https://api.github.com/users/spolitov/orgs","repos_url":"https://api.github.com/users/spolitov/repos","events_url":"https://api.github.com/users/spolitov/events{/privacy}","received_events_url":"https://api.github.com/users/spolitov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-07T18:41:04Z","updated_at":"2018-12-04T18:48:31Z","closed_at":"2018-12-04T18:48:31Z","author_association":"CONTRIBUTOR","body":"We can have one CQL call lead to multiple writes to DocDB with different timestamps due to retries inside TabletInvoker.\r\nSo, we can have a scenario when a sequence of two CQL calls: `write 4`, `cas 4->1` lead to having 3 values into DocDB:\r\n```\r\nSubDocKey(DocKey(0xba22, [0], []), [ColumnId(1); HT{ physical: 1540796350911062 w: 1 }]) -> 4\r\nSubDocKey(DocKey(0xba22, [0], []), [ColumnId(1); HT{ physical: 1540796350842148 }]) -> 1\r\nSubDocKey(DocKey(0xba22, [0], []), [ColumnId(1); HT{ physical: 1540796338616427 w: 1 }]) -> 4\r\n```\r\n\r\nAnd concurrent reader observes reading 4, 1, 4.\r\nWhich is treated by Jepsen as non-linearizable history and breaks the Single key ACID test.\r\nThis happens under kill-start-tserver nemesis when tservers are randomly killed and started during workload.\r\n"}}
{"actor":{"display_login":"kmuthukk"}}