[NCBC-68] Getting a thread abort (ocassionally) on store Created: 13/Jun/12  Updated: 28/Oct/13  Resolved: 28/Oct/13

Status: Resolved
Project: Couchbase .NET client library
Component/s: library
Affects Version/s: None
Fix Version/s: 1.3.0

Type: Bug Priority: Major
Reporter: Mike Wiederhold Assignee: Jeff Morris
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


Please follow up with this user on the forums after resolving this issue.

We are using the c# client to hit a couchbase 1.8 membase bucket. Every once in while (enough were it's bad) we are getting thread aborts during the store call. Here is the full stack of the error.

2012-06-11 02:59:39,819 [10] ERROR Knotice.Caching [(null)] <(null)> - Failed to add object to L2 cache with key: 297of type:SimpleDatabase msg:Thread was being aborted.
System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Net.UnsafeNclNativeMethods.OSSOCK.recv(IntPtr socketHandle, Byte* pinnedBuffer, Int32 len, SocketFlags socketFlags)
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError& errorCode)
   at Enyim.Caching.Memcached.PooledSocket.BasicNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
   at Enyim.Caching.Memcached.PooledSocket.Read(Byte[] buffer, Int32 offset, Int32 count)
   at Enyim.Caching.Memcached.Protocol.Binary.BinaryResponse.Read(PooledSocket socket)
   at Enyim.Caching.Memcached.Protocol.Binary.BinarySingleItemOperation.ReadResponse(PooledSocket socket)
   at Enyim.Caching.Memcached.MemcachedNode.ExecuteOperation(IOperation op)
   at Couchbase.CouchbaseClient.ExecuteWithRedirect(IMemcachedNode startNode, ISingleItemOperation op)
   at Couchbase.CouchbaseClient.PerformStore(StoreMode mode, String key, Object value, UInt32 expires, UInt64& cas, Int32& statusCode)
   at Enyim.Caching.MemcachedClient.Store(StoreMode mode, String key, Object value, DateTime expiresAt)
   at Knotice.Caching.CacheManager.Store(Object key, Object item, Type type, Int32 tenantId, CacheSettings settings) in d:\Temp\Concentri\Dev - Full Build\Sources\Lib\Caching\Knotice.Caching\CacheManager.cs:line 109

Comment by Jeff Morris [ 28/Oct/13 ]
Generated at Wed Dec 17 16:35:35 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.