While performing a sequence of inserts, I restart one of the cluster nodes.
ExecuteStore(StoreMode.Set, key: Guid.NewGuid().ToString(), value: Guid.NewGuid().ToString(), persistTo: PersistTo.Zero, replciateTo: ReplicateTo.One);
The node failure causes the .NET client to crash with the following error.
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at Couchbase.ObserveHandler.CheckNodesForKey(IEnumerable`1 nodes, IObserveOpe
ration command, Boolean& isMasterInExpectedState, Int32& replicaFoundCount, Int3
2& replicaPersistedCount, ObserveKeyState persistedKeyState, ObserveKeyState rep
licatedKeyState)
at Couchbase.ObserveHandler.<>c__DisplayClass12.b__f(
Object state)
at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionCo
ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireQueuedTimerCompletion(Object state)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWor
kItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()