Waited for 15.088ms for the query to return non stale result

Hi Paul

After upgrading to 1.0.13.1206 I all the suddent get the below exception

Server Error in ‘/’ Application.

Waited for 15.088ms for the query to return non stale result.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TimeoutException: Waited for 15.088ms for the query to return non stale result.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TimeoutException: Waited for 15.088ms for the query to return non stale result.]
Raven.Client.Document.SessionOperations.QueryOperation.IsAcceptable(QueryResult result) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\SessionOperations\QueryOperation.cs:273
Raven.Client.Document.AbstractDocumentQuery2.ExecuteActualQuery() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\AbstractDocumentQuery.cs:442 Raven.Client.Document.AbstractDocumentQuery2.InitSync() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\AbstractDocumentQuery.cs:422
Raven.Client.Document.AbstractDocumentQuery2.GetEnumerator() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\AbstractDocumentQuery.cs:593 System.Linq.Enumerable.FirstOrDefault(IEnumerable1 source) +220
Raven.Client.Linq.RavenQueryProviderProcessor1.GetQueryResult(IDocumentQuery1 finalQuery) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Linq\RavenQueryProviderProcessor.cs:1262
Raven.Client.Linq.RavenQueryProviderProcessor1.ExecuteQuery() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Linq\RavenQueryProviderProcessor.cs:1204 Raven.Client.Linq.RavenQueryProviderProcessor1.Execute(Expression expression) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Linq\RavenQueryProviderProcessor.cs:1187
Raven.Client.Linq.RavenQueryProvider1.Execute(Expression expression) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Linq\RavenQueryProvider.cs:133 Raven.Client.Linq.RavenQueryProvider1.System.Linq.IQueryProvider.Execute(Expression expression) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Linq\RavenQueryProvider.cs:178
System.Linq.Queryable.FirstOrDefault(IQueryable1 source, Expression1 predicate) +590
Octopus.Portal.Application.Authentication.OctopusPrincipalFilter.OnAuthorization(AuthorizationContext filterContext) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Portal\Application\Authentication\OctopusPrincipalFilter.cs:41
System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) +156
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +691
System.Web.Mvc.Controller.ExecuteCore() +162
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +305
System.Web.Mvc.<>c__DisplayClassb.b__5() +62
System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +20
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Hi Tom,

Did the problem eventually resolve itself?

I think I may just need to configure a higher timeout on the RavenDB query indexing.

Paul

Hi Paul

I had to restart the Octopus service to get it going again, first tried recycly app-pool and IIS restart without luck.

/Tom