Hi,
I am using RavenDB4 and RavenTestDriver. When running unit test cases as a batch or mostly run all, random test case(s) are randomly failing with the following exception:
1. Raven.Client.Exceptions.AllTopologyNodesDownException
There are no nodes in the topology at all
at Raven.Client.Http.NodeSelector.UnlikelyEveryoneFaultedChoice(NodeSelectorState state)
at Raven.Client.Http.NodeSelector.GetPreferredNode()
at Raven.Client.Http.RequestExecutor.ChooseNodeForRequest[TResult](RavenCommand`1 cmd, SessionInfo sessionInfo)
at Raven.Client.Http.RequestExecutor.<UnlikelyExecuteAsync>d__65`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Raven.Client.Util.AsyncHelpers.<>c__DisplayClass2_1.<<RunSync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Raven.Client.Util.AsyncHelpers.RunSync(Func`1 task)
at Raven.Client.Http.RequestExecutor.Execute[TResult](RavenCommand`1 command, JsonOperationContext context, SessionInfo sessionInfo)
at Raven.Client.Documents.Session.DocumentSession.Load[T](String id)
at Flucticiel.Simetryk.Extensions.Common.Context.ExtensionContext.Set(IDocumentSession session, String tenantName)
2. Raven.Client.Exceptions.Database.DatabaseDoesNotExistException
Database 'Create_[x]' does not exist.
at Raven.Client.Exceptions.Database.DatabaseDoesNotExistException.Throw(String databaseName)
at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__72`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__72`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Raven.Client.Http.RequestExecutor.<UpdateTopologyAsync>d__60.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Raven.Client.Http.RequestExecutor.<FirstTopologyUpdate>d__67.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Raven.Client.Http.RequestExecutor.<UnlikelyExecuteAsync>d__65`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Raven.Client.Util.AsyncHelpers.<>c__DisplayClass2_1.<<RunSync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Raven.Client.Util.AsyncHelpers.RunSync(Func`1 task)
at Raven.Client.Http.RequestExecutor.Execute[TResult](RavenCommand`1 command, JsonOperationContext context, SessionInfo sessionInfo)
at Raven.Client.Documents.Session.DocumentSession.Load[T](String id)
at Flucticiel.Simetryk.Extensions.Common.Context.ExtensionContext.Set(IDocumentSession session, String tenantName)
The above exceptions are actually inner exception that happen at the same place during bootstrapping (which is the 1st load statement from session object). What makes me even more curious is that it is able to open a session but when I try to load a document, it throws the above exceptions.
Is this something that is caused due to wrong initialization of the TestDriver? Do you have any suggestion on how to fix or work around this?
Thanks,
Lokesh