Unable to Resolve Document Conflict

40 views
Skip to first unread message

Nathan Ratcliff

unread,
Jun 3, 2013, 12:52:36 PM6/3/13
to rav...@googlegroups.com
Build 2330 - 3 servers, 1 master, 2 slaves.

We had a replication conflict on a facets document earlier this morning.  While troubleshooting in studio, instead of modifying the original document to clear the conflict, one of my associates deleted the 2 conflict documents.

Now the original document shows as empty  {} and you can't modify it without getting this error below in studio.  Is there any way to manually resolve this conflict or have we totally hosed things?

Thanks!


Server Error:
-----------------------------------------
/docs/facets/MediaItemFacets
System.NullReferenceException: Object reference not set to an instance of an object.
   at Raven.Database.Bundles.Replication.Impl.ReplicationData.GetHistory(RavenJObject existingMetadata) in c:\Builds\RavenDB-Stable\Raven.Database\Bundles\Replication\Impl\ReplicationData.cs:line 16
   at Raven.Bundles.Replication.Triggers.RemoveConflictOnPutTrigger.OnPut(String key, RavenJObject document, RavenJObject metadata, TransactionInformation transactionInformation) in c:\Builds\RavenDB-Stable\Raven.Database\Bundles\Replication\Triggers\RemoveConflictOnPutTrigger.cs:line 47
   at Raven.Database.DocumentDatabase.<>c__DisplayClass44.<Put>b__3e(AbstractPutTrigger trigger) in c:\Builds\RavenDB-Stable\Raven.Database\DocumentDatabase.cs:line 701
   at Raven.Abstractions.MEF.OrderedPartCollection`1.Apply(Action`1 action) in c:\Builds\RavenDB-Stable\Raven.Abstractions\MEF\OrderedPartCollection.cs:line 103
   at Raven.Database.DocumentDatabase.<>c__DisplayClass44.<Put>b__3d(IStorageActionsAccessor actions) in c:\Builds\RavenDB-Stable\Raven.Database\DocumentDatabase.cs:line 701
   at Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action) in c:\Builds\RavenDB-Stable\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 557
   at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action) in c:\Builds\RavenDB-Stable\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 516
   at Raven.Database.DocumentDatabase.Put(String key, Nullable`1 etag, RavenJObject document, RavenJObject metadata, TransactionInformation transactionInformation) in c:\Builds\RavenDB-Stable\Raven.Database\DocumentDatabase.cs:line 692
   at Raven.Database.Server.Responders.Document.Put(IHttpContext context, String docId) in c:\Builds\RavenDB-Stable\Raven.Database\Server\Responders\Document.cs:line 175
   at Raven.Database.Server.Responders.Document.Respond(IHttpContext context) in c:\Builds\RavenDB-Stable\Raven.Database\Server\Responders\Document.cs:line 49
   at Raven.Database.Server.HttpServer.DispatchRequest(IHttpContext ctx) in c:\Builds\RavenDB-Stable\Raven.Database\Server\HttpServer.cs:line 864
   at Raven.Database.Server.HttpServer.HandleActualRequest(IHttpContext ctx) in c:\Builds\RavenDB-Stable\Raven.Database\Server\HttpServer.cs:line 609
-----------------------------------------




   at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Func`2 func)
   at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Action`1 action)
   at Raven.Studio.Models.EditableDocumentModel.SaveDocumentCommand.SaveDocument()
   at Raven.Studio.Models.EditableDocumentModel.SaveDocumentCommand.ConfirmSave()
   at Raven.Studio.Models.EditableDocumentModel.SaveDocumentCommand.<Execute>b__76(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.SynchronizationContextTaskScheduler.PostCallback(Object obj)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.Dispatch(DispatcherPriority priority)
   at System.Windows.Threading.Dispatcher.OnInvoke(Object context)
   at System.Windows.Hosting.CallbackCookie.Invoke(Object[] args)
   at System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(IntPtr pHandle, Int32 nParamCount, ScriptParam[] pParams, ScriptParam& pResult)



Client side exception:
System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20125.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
   at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Func`2.Invoke(T arg)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise)

Nathan Ratcliff

unread,
Jun 3, 2013, 1:00:18 PM6/3/13
to rav...@googlegroups.com
Nevermind.  I was able to find the name of the missing conflict documents in the log, recreate them and then studio let me resolve the conflict.

Kijana Woodard

unread,
Jun 3, 2013, 1:04:39 PM6/3/13
to rav...@googlegroups.com
Ok. I was going to guess at that, so it's nice to know that really works.


--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages