We've encountered a problem with our dasl query, such that we can let
the repository crash. It seems it goes wrong when executing a query
which contains a <d:contains>*</d:contains>.

I am running against Hippo Repository 1.2.15.1. I have written a
simple testprogram using the Hippo Repository Adapter 2.12.00-dev (due
to a concurrency bug in 2.11). My testprogram creates 20 threads which
are going to execute the next query over and over having a little
sleep between each execution.

The query:

<?xml version="1.0" encoding="UTF-8"?>
<d:searchrequest xmlns:s="http://jakarta.apache.org/slide/";
xmlns:h="http://hippo.nl/cms/1.0"; xmlns:d="DAV:">
    <d:basicsearch>
        <d:select>
            <d:prop>
                <s:nrHits />
                <h:caption />
                <h:index />
            </d:prop>
        </d:select>
        <d:from>
            <d:scope>
                <d:href>content/</d:href>
                <d:depth>Infinity</d:depth>
            </d:scope>
        </d:from>
        <d:where>
            <d:contains>*</d:contains>
        </d:where>
        <limit xmlns="DAV:">
            <nresults>12</nresults>
            <offset xmlns="http://jakarta.apache.org/slide/";>0</offset>
        </limit>
        <d:orderby>
            <d:order>
                <d:prop>
                    <h:index />
                </d:prop>
                <d:ascending />
            </d:order>
        </d:orderby>
    </d:basicsearch>
</d:searchrequest>

It can crash the repository running with 512 MB memory, but with 1 GB
it is also possible. (It takes just a minute longer or so)

Is this expected behaviour?

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to