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

Reply via email to