Or if a forest is detached while documents are inserted

On 26 Jun 2013, at 12:24, David Lee <[email protected]> wrote:

> This can also happen if you have put data into 2 forests explicitly and not 
> been very careful of guarenteeing URI uniqueness.
>  
>  
> -----------------------------------------------------------------------------
> David Lee
> Lead Engineer
> MarkLogic Corporation
> [email protected]
> Phone: +1 812-482-5224
> Cell:  +1 812-630-7622
> www.marklogic.com
> 
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Ellis Pritchard
> Sent: Wednesday, June 26, 2013 6:53 AM
> To: Florent Georges; MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Two document nodes at the same URI
>  
> Hi Florent,
>  
> Could you have duplicate URIs in your database? 
>  
> I believe this situation could be created by turning locking off, perhaps 
> during a bulk load containing duplicate document URIs:
>  
> ยท         locking specifies how robust transaction locking should be. When 
> set to strict, locking enforces mutual exclusion on existing documents and on 
> new documents. When set to fast, locking enforces mutual exclusion on 
> existing and new documents. Instead of locking all the forests on new 
> documents, it uses a hash function to select one forest to lock. In general, 
> this is faster than strict. However, for a short period of time after a new 
> forest is added, some of the transactions need to be retried internally. When 
> set to off, locking does not enforce mutual exclusion on existing documents 
> or on new documents; only use this setting if you are sure all documents you 
> are loading are new (a new bulk load, for example), otherwise you might 
> create duplicate URIs in the database.
> 
> (from database Admin Help panel)
>  
> Ellis.
>  
>  
> On 26 Jun 2013, at 11:43, Florent Georges <[email protected]> wrote:
> 
> 
>   Hi,
> 
>   In a production environment on another project, at the client's I am
> currently working for, they found a very weird situation.  It turns
> out that one document URI contains 2 document nodes.  This has been
> verified by the following queries:
> 
>     count(doc('...'))
>        ==> 2
> 
>     doc('...') instance of document-node()
>        ==> false
> 
>     doc('...') instance of document-node()+
>        ==> true
> 
>   Is anyone aware of that bug?  Is there anything we should pay
> attention to?  Is it possible to xdmp:document-delete it (them)?  Is
> it possible to remove it (them) from a collection they are part of?
> 
>   MarkLogic version: 6.0-2.3.
> 
>   Regards,
> 
> 
> -- 
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to