{"action":"created","issue":{"url":"https://api.github.com/repos/datastax/csharp-driver/issues/404","repository_url":"https://api.github.com/repos/datastax/csharp-driver","labels_url":"https://api.github.com/repos/datastax/csharp-driver/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/datastax/csharp-driver/issues/404/comments","events_url":"https://api.github.com/repos/datastax/csharp-driver/issues/404/events","html_url":"https://github.com/datastax/csharp-driver/pull/404","id":327580117,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMzM4NjIz","number":404,"title":"fix issue with \"An entry with the same key already exists.\" in TreeSe…","user":{"login":"cdwiegand","id":121301,"node_id":"MDQ6VXNlcjEyMTMwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/121301?v=4","gravatar_id":"","url":"https://api.github.com/users/cdwiegand","html_url":"https://github.com/cdwiegand","followers_url":"https://api.github.com/users/cdwiegand/followers","following_url":"https://api.github.com/users/cdwiegand/following{/other_user}","gists_url":"https://api.github.com/users/cdwiegand/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwiegand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwiegand/subscriptions","organizations_url":"https://api.github.com/users/cdwiegand/orgs","repos_url":"https://api.github.com/users/cdwiegand/repos","events_url":"https://api.github.com/users/cdwiegand/events{/privacy}","received_events_url":"https://api.github.com/users/cdwiegand/received_events","type":"User","site_admin":false},"labels":[{"id":189900475,"node_id":"MDU6TGFiZWwxODk5MDA0NzU=","url":"https://api.github.com/repos/datastax/csharp-driver/labels/cla-missing","name":"cla-missing","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-30T05:35:05Z","updated_at":"2018-06-03T15:26:30Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/datastax/csharp-driver/pulls/404","html_url":"https://github.com/datastax/csharp-driver/pull/404","diff_url":"https://github.com/datastax/csharp-driver/pull/404.diff","patch_url":"https://github.com/datastax/csharp-driver/pull/404.patch"},"body":"I'm getting a LOT of these errors, but not all of the time, and I can't reliably produce it on demand. I don't have the tools necessary to try to debug this, as I'm still new to Cassandra. But I did debug to this point, and got to this stack trace (below). Seems to happen when I run under Mono - real .Net on Windows doesn't seem to be affected. By setting by key directly, as opposed to calling Add(), we avoid any duplicate exceptions. I have verified that my Set<>s are unique in the Cassandra DB on affected rows, so I believe it's something in Mono, but I want to run this app on Mono/Linux and not real .Net.\r\n\r\n An entry with the same key already exists.:   at System.ThrowHelper.ThrowArgumentException (ExceptionResource resource) <0x4049de40 + 0x00027> in <filename unknown>:0\r\n  at System.Collections.Generic.TreeSet`1[T].AddIfNotPresent (System.Collections.Generic.T item) <0x4049a100 + 0x00037> in <filename unknown>:0\r\n  at System.Collections.Generic.SortedSet`1[T].Add (System.Collections.Generic.T item) <0x4049a0c0 + 0x00027> in <filename unknown>:0\r\n  at System.Collections.Generic.SortedDictionary`2[TKey,TValue].Add (System.Collections.Generic.TKey key, System.Collections.Generic.TValue value) <0x4049a000 + 0x000a7> in <filename unknown>:0\r\n  at System.Collections.Generic.SortedDictionary`2[TKey,TValue].System.Collections.IDictionary.Add (System.Object key, System.Object value) <0x40419ec0 + 0x0008b> in <filename unknown>:0\r\n  at Cassandra.Serialization.DictionarySerializer.Deserialize (UInt16 protocolVersion, System.Byte[] buffer, Int32 offset, Int32 length, IColumnInfo typeInfo) <0x403c9360 + 0x002f7> in <filename unknown>:0\r\n  at Cassandra.Serialization.Serializer.Deserialize (System.Byte[] buffer, Int32 offset, Int32 length, ColumnTypeCode typeCode, IColumnInfo typeInfo) <0x403c4490 + 0x001b9> in <filename unknown>:0\r\n  at Cassandra.FrameReader.ReadFromBytes (System.Byte[] buffer, Int32 offset, Int32 length, ColumnTypeCode typeCode, IColumnInfo typeInfo) <0x403c4400 + 0x00067> in <filename unknown>:0\r\n  at Cassandra.OutputRows.ProcessRowItem (Cassandra.FrameReader reader) <0x403c4030 + 0x00127> in <filename unknown>:0\r\n  at Cassandra.OutputRows.ProcessRows (Cassandra.RowSet rs, Cassandra.FrameReader reader) <0x403c3f20 + 0x00074> in <filename unknown>:0\r\n  at Cassandra.OutputRows..ctor (Cassandra.FrameReader reader, Nullable`1 traceId) <0x403c2320 + 0x000ff> in <filename unknown>:0\r\n  at Cassandra.Responses.ResultResponse..ctor (Cassandra.Frame frame) <0x403c1e70 + 0x0015f> in <filename unknown>:0\r\n  at Cassandra.Responses.ResultResponse.Create (Cassandra.Frame frame) <0x403c1e20 + 0x00037> in <filename unknown>:0\r\n  at Cassandra.FrameParser.Parse (Cassandra.Frame frame) <0x403b9cd0 + 0x0007e> in <filename unknown>:0\r\n  at Cassandra.Connection+<>c__DisplayClass76_0.<CreateResponseAction>g__DeserializeResponseStream0 (System.IO.MemoryStream stream) <0x403b8810 + 0x001d7> in <filename unknown>:0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7fe2a1c016d0 + 0x00029> in <filename unknown>:0\r\n  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7fe2a1bff6b0 + 0x000a7> in <filename unknown>:0\r\n  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7fe2a1bff630 + 0x0006b> in <filename unknown>:0\r\n  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7fe2a1bff5e0 + 0x0003a> in <filename unknown>:0\r\n  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7fe2a1bffd10 + 0x00017> in <filename unknown>:0\r\n  at Cassandra.Mapping.Mapper+<ExecuteAsyncAndAdapt>d__8`1[TResult].MoveNext () <0x4040ca20 + 0x004af> in <filename unknown>:0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7fe2a1c016d0 + 0x00029> in <filename unknown>:0\r\n  at Cassandra.Tasks.TaskHelper.WaitToComplete (System.Threading.Tasks.Task task, Int32 timeout) <0x409967f0 + 0x000bc> in <filename unknown>:0\r\n  at Cassandra.Tasks.TaskHelper.WaitToComplete[T] (System.Threading.Tasks.Task`1 task, Int32 timeout) <0x403b0050 + 0x0001b> in <filename unknown>:0\r\n  at Cassandra.Mapping.Mapper.FirstOrDefault[T] (Cassandra.Mapping.Cql cql) <0x40479b40 + 0x00063> in <filename unknown>:0\r\n  at Cassandra.Mapping.Mapper.FirstOrDefault[T] (System.String cql, System.Object[] args) <0x40479830 + 0x00053> in <filename unknown>:0\r\n<snipping my internal code where I have something like \"select * from users where id=X\""},"comment":{"url":"https://api.github.com/repos/datastax/csharp-driver/issues/comments/394169835","html_url":"https://github.com/datastax/csharp-driver/pull/404#issuecomment-394169835","issue_url":"https://api.github.com/repos/datastax/csharp-driver/issues/404","id":394169835,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDE2OTgzNQ==","user":{"login":"datastax-bot","id":10964110,"node_id":"MDQ6VXNlcjEwOTY0MTEw","avatar_url":"https://avatars0.githubusercontent.com/u/10964110?v=4","gravatar_id":"","url":"https://api.github.com/users/datastax-bot","html_url":"https://github.com/datastax-bot","followers_url":"https://api.github.com/users/datastax-bot/followers","following_url":"https://api.github.com/users/datastax-bot/following{/other_user}","gists_url":"https://api.github.com/users/datastax-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax-bot/subscriptions","organizations_url":"https://api.github.com/users/datastax-bot/orgs","repos_url":"https://api.github.com/users/datastax-bot/repos","events_url":"https://api.github.com/users/datastax-bot/events{/privacy}","received_events_url":"https://api.github.com/users/datastax-bot/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T15:26:30Z","updated_at":"2018-06-03T15:26:30Z","author_association":"MEMBER","body":"Thank you @cdwiegand for signing the Contribution License Agreement.\n\nCheers,\nDataStax Bot.\n"}}
{"actor":{"display_login":"datastax-bot"}}