Collections disappearing

View: New views
1 Messages — Rating Filter:   Alert me  

Collections disappearing

by Adiarto Pranoto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,


I am using eXist 1.2.6 and I am experiencing a strange issue where sometimes my
newly-created collections did not get stored properly and/or disappearing.

In the following example, I tried to create a collection
"/db/data/patients/2910"

Then, when I tried to access the collection, I saw this in log:
The collection received from the cache is not the requested:
/db/system/temp; received: /db/data/patients/2910
and based on the subsequent logs, it looks like eXist removed my collections;

Any further attempt to access the collection gave me this message in log:
- collection '/db/data/patients/2910' not found!

What's more interesting is that this does not always happen; when I tried to
store "/db/data/patients/2911" or "/db/data/patients/2912", the collections were
stored and I could access them without problems;

Not sure if this makes a difference, but I have a range index set up for the
parent collection "/db/data/patients" that looks like this:
/db/system/config/db/data/patients/collection.xconf:

<collection xmlns="http://exist-db.org/collection-config/1.0">
  <index>
    <fulltext default="all" attributes="true" alphanum="true"/>
    ...
    <create path="/patients/patient/@id" type="xs:integer"/>
  </index>
</collection>


Does anyone know what is happening here and how to prevent this? The log is
attached below.

Your help is appreciated;

Regards,
Adiarto


--------------
Full log:

009-11-02 09:54:15,906 [http-8080-Processor24] DEBUG (NativeBroker.java
[getOrCreateCollection]:605) - Creating collection '/db/data/patients/2910'...
2009-11-02 09:54:15,921 [http-8080-Processor24] DEBUG (NativeBroker.java
[getOrCreateCollection]:605) - Creating collection
'/db/data/patients/2910/visits'...
2009-11-02 09:54:15,968 [http-8080-Processor24] DEBUG (Collection.java
[validateXMLResourceInternal]:1188) - Scanning document
/db/data/patients/2910/patient.xml
2009-11-02 09:54:15,984 [http-8080-Processor24] DEBUG (Collection.java
[storeXMLInternal]:1000) - storing document 31933 ...
2009-11-02 09:54:16,015 [http-8080-Processor24] WARN  (NativeValueIndex.java
[convertToAtomic]:975) - Node value '' cannot be converted to xs:integer
2009-11-02 09:54:16,250 [http-8080-Processor24] DEBUG (Collection.java
[storeXMLInternal]:1014) - document stored.
2009-11-02 09:54:16,250 [http-8080-Processor24] WARN  (NativeValueIndex.java
[convertToAtomic]:975) - Node value '' cannot be converted to xs:integer
2009-11-02 09:54:16,265 [http-8080-Processor24] DEBUG (Insert.java
[eval]:131) - Found: 1 nodes
2009-11-02 09:54:16,296 [http-8080-Processor24] DEBUG (DOMFile.java
[insertAfter]:548) - creating new page: 60916
2009-11-02 09:54:16,484 [http-8080-Processor24] DEBUG (XQuery.java
[execute]:227) - Execution took 734 ms
2009-11-02 09:54:16,484 [http-8080-Processor24] DEBUG (HTTPUtils.java
[addLastModifiedHeader]:61) - mostRecentDocumentTime: 0
2009-11-02 09:54:16,531 [http-8080-Processor25] DEBUG (XQuery.java
[compile]:170) - Query diagnostics:
[skipped: more than 150 expressions]

...

2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] ERROR (
NativeBroker.java [openCollection]:687) -
The collection received from the cache is not the requested:
/db/system/temp; received: /db/data/patients/2910
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:945) - Removing children collections from
their parent '/db/data/patients/2910'...
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:945) - Removing children collections from
their parent '/db/data/patients/2910/visits'...
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NGramIndexWorker.java [removeCollection]:354) - Dropping NGram index for
collection /db/data/patients/2910/visits
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:983) - Removing collection
'/db/data/patients/2910/visits' from its parent...
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:1052) - Removing resources in
'/db/data/patients/2910/visits'...
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:1113) - Removing collection
'/db/data/patients/2910/visits' took 0
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 80 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 1 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 6 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NGramIndexWorker.java [removeCollection]:354) - Dropping NGram index for
collection /db/data/patients/2910
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:983) - Removing collection
'/db/data/patients/2910' from its parent...
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
BFile.java [removeAll]:333) - Found 2 items to remove.
2009-11-02 10:02:15,843 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:1052) - Removing resources in
'/db/data/patients/2910'...
2009-11-02 10:02:15,859 [exist_QuartzScheduler_Worker-1] DEBUG (
NativeBroker.java [removeCollection]:1113) - Removing collection
'/db/data/patients/2910' took 16
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
NativeBroker.java [removeCollection]:945) - Removing children collections from
their parent '/db/system/temp'...
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
NGramIndexWorker.java [removeCollection]:354) - Dropping NGram index for
collection /db/system/temp
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
NativeBroker.java [removeCollection]:983) - Removing collection
'/db/system/temp' from its parent...
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
BFile.java [removeAll]:333) - Found 0 items to remove.
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
NativeBroker.java [removeCollection]:1052) - Removing resources in
'/db/system/temp'...
2009-11-02 10:02:18,343 [exist_QuartzScheduler_Worker-4] DEBUG (
NativeBroker.java [removeCollection]:1113) - Removing collection
'/db/system/temp' took 0
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] DEBUG (
NGramIndex.java [sync]:86) - SYNC NGRAM
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (
NativeBroker.java [sync]:2904) - Memory: 520,256K total; 520,256K max;
452,946K free
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (
BTree.java [printStatistics]:2350) - dom.dbx INDEX Buffers occupation : 100%
(64 out of 64) Cache efficiency : 98%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (
DOMFile.java [printStatistics]:1431) - dom.dbx DATA Buffers occupation : 99%
(254 out of 256) Cache efficiency : 60%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (
BTree.java [printStatistics]:2350) - collections.dbx INDEX Buffers occupation :
100% (64 out of 64) Cache efficiency : 100%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (
BFile.java [printStatistics]:426) - collections.dbx DATA Buffers occupation :
99% (79 out of 80) Cache efficiency : 98%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (BTree.java [
printStatistics]:2350) - elements.dbx INDEX Buffers occupation : 92% (132 out
of 144) Cache efficiency : 98%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (BFile.java [
printStatistics]:426) - elements.dbx DATA Buffers occupation : 100% (1437 out
of 1438) Cache efficiency : 85%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (BTree.java [
printStatistics]:2350) - values.dbx INDEX Buffers occupation : 100% (64 out of
64) Cache efficiency : 97%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] INFO  (BFile.java [
printStatistics]:426) - values.dbx DATA Buffers occupation : 100% (302 out of
303) Cache efficiency : 98%
2009-11-02 10:02:20,843 [exist_QuartzScheduler_Worker-2] DEBUG (Journal.java [
checkpoint]:313) - Checkpoint reached

...


2009-11-02 10:12:16,203 [http-8080-Processor25] DEBUG (NativeBroker.java [
getXMLResource]:1589) - collection '/db/data/patients/2910' not found!

...

2009-11-02 11:37:04,671 [http-8080-Processor24] DEBUG (NativeBroker.java [
getXMLResource]:1589) - collection '/db/data/patients/2910' not found!

...

2009-11-02 11:57:57,656 [http-8080-Processor25] DEBUG (NativeBroker.java [
getXMLResource]:1589) - collection '/db/data/patients/2910' not found!





------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open