Multi get exception: "System.ArgumentException: An item with the same key has already been added." #102

theburningmonk opened this Issue Apr 5, 2012 · 0 comments


None yet

2 participants



I've seen this exception quite a number of times now when I do a batch get, here's the stack trace:

System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable
1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)
at Enyim.Caching.MemcachedClient.PerformMultiGet[T](IEnumerable
1 keys, Func3 collector) in d:\EnyimMemcached\Enyim.Caching\MemcachedClient.cs:line 0
at Enyim.Caching.MemcachedClient.Get(IEnumerable
1 keys) in d:\EnyimMemcached\Enyim.Caching\MemcachedClient.cs:line 714

I'm using the membase client, running against a cluster of 5 membase nodes, and we haven't been adding/removing nodes.

@enyim enyim closed this Apr 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment