Displaying 20 results from an estimated 29 matches for "databasemodifiederror".
2008 Jan 26
1
how to catch Xapian::DatabaseModifiedError in perl?
Hello,
The pod-documentation of Database.pm says:
> reopen
>
> This re-opens the database(s) to the latest available version(s).
It can be
> used either to make sure the latest results are returned, or to
recover from
> a Xapian::DatabaseModifiedError.
I really would like to do that, but as soon as this exception occures
my applications dies with a SIGABRT.
Is there any posibility to catch a Xapian::DatabaseModifiedError with
Search::Xapian in Perl?
At the moment I need reopen() the database before each query, which
seems the only way t...
2023 Aug 27
1
DatabaseModifiedError while iterating on mset
On Wed, Aug 23, 2023 at 01:53:27PM +0000, Eric Wong wrote:
> I'm already retrying the ->get_mset operations; but now I'm
> wondering where I'd hit DatabaseModifiedErrors while inside a
> Xapian::MSetIterator loop.
>
> I assume ->get_document is a place where it gets thrown;
> but once a document is retrieved, can iterating through
> terms in one document (using TermIterator) also throw DB modified?
If you only look at the terms and wdfs then yo...
2017 Aug 09
2
Asking Help
<span style="white-space:pre"> </span>Hi£¬I am a student in China and I am using Xapian to do some projects recently, for the error DatabaseModifiedError i dont know how to catch it in java, i do not find the relative class in xapian.jar. So I write this letter for help.<div><span style="white-space:pre"> </span>So sorry to interrupt you!</div><div><br></div>
2023 Aug 23
1
DatabaseModifiedError while iterating on mset
I'm already retrying the ->get_mset operations; but now I'm
wondering where I'd hit DatabaseModifiedErrors while inside a
Xapian::MSetIterator loop.
I assume ->get_document is a place where it gets thrown;
but once a document is retrieved, can iterating through
terms in one document (using TermIterator) also throw DB modified?
I'm dumping multiple terms per-document to a stream.
While retrying...
2023 Aug 28
1
DatabaseModifiedError while iterating on mset
Olly Betts <olly at survex.com> wrote:
> On Wed, Aug 23, 2023 at 01:53:27PM +0000, Eric Wong wrote:
> > I'm already retrying the ->get_mset operations; but now I'm
> > wondering where I'd hit DatabaseModifiedErrors while inside a
> > Xapian::MSetIterator loop.
> >
> > I assume ->get_document is a place where it gets thrown;
> > but once a document is retrieved, can iterating through
> > terms in one document (using TermIterator) also throw DB modified?
>
> If you only...
2011 Mar 23
1
DatabaseModifiedError
Hi,
I am starting to see more frequent occurrences of a DatabaseModifiedError when users execute searches on my site. Since our index is being updated all the time, its easy to understand why these happen, but is it possible to ignore this error and execute the search against the stale revision? It's likely only a few seconds out of date, and if I follow the advice and...
2017 Aug 09
1
Java bindings exceptions [was Re: Asking Help]
On Wed, Aug 09, 2017 at 11:09:55PM +0100, Olly Betts wrote:
> The Xapian exception classes aren't wrapped for Java at the moment, so
> currently you'll get a java.io.IOException exception, and you can check
> for DatabaseModifiedError using code like this (untested):
>
> try {
> // Code which might cause DatabaseModifiedError.
> } catch (Exception e) {
Sorry, that should be:
} catch (java.io.IOException e) {
> if (e.toString().startsWith("DatabaseModifiedError:")) {
> // Deal with...
2007 Jul 29
0
Xapian::DatabaseModifiedError caused withintransaction
Please keep conversations on-list so that everyone can help and
benefit :-)
On Sun, Jul 29, 2007 at 09:15:01PM +0800, Hightman(???) wrote:
> James Aylett,???
>
> Even if I split the two operator into different transaction one
> after another, It cause DatabaseModifiedError Also ... It seems
> that if I update one document by unique term frequently (within
> some seconds), the ERROR produced. :(
>
> "xapian-check: DatabaseCorruptError: Db block overwritten - are
> there multiple writers?"
>
> I am sure that only use...
2015 Jan 16
2
Question on "single writer, multiple reader"
Hi, dear Xapianers!
I've been using Xapian in my project recently. The feature "single
writer, multiple reader" is one of my favorite, but currently I can't make
it work.
My goal is to add more documents to the database increamentally, while
the Xapian search process is not stopped.
I followed "quickstartindex.cc" and "quickstartsearch.cc" on
2015 Jan 20
2
Question on "single writer, multiple reader"
On Sun, Jan 18, 2015 at 04:25:29PM +0000, James Aylett wrote:
> That?s exactly how it?s supposed to work. ?Eventually? (once the
> writer gets sufficiently far ahead of the reader), the reader will get
> a DatabaseModifiedError and will have to re-open the database, but
> until then it?s up to it when it does so. You may wish to do it every
> N requests, or every K seconds, or only when you have to handle
> DatabaseModifiedError; it?s up to you.
>
> We have a note that some more detailed documentation aroun...
2012 Dec 19
1
question about trigger of reopen
Hi all,
Currently I'm implementing a retrieval system with multiple reader
processes and only one writer process updating the database periodically.
In a reader process, whenever a Xapian::DatabaseModifiedError exception is
caught, I call function reopen() and retry.
However, my problem is, when there is only a small set of modification,
e.g. only one new document is added, the reader would never get the
DatabaseModifiedError and hence would not call reopen. I am sure that I've
called commit() in the...
2012 Feb 17
2
DatabaseModifiedError on get_data - best practice?
Hi,
I have previously had a problem with getting this error on a get_mset
call, and solved it by subclassing XapianEnquire with a
backoff-and-retry algorithm (as suggested by this list, many thanks!).
However, I now get it intermittently when calling get_data on a
XapianDocument. The same solution doesn't seem to be quite as easy in
this case, because:
1. The document is not instantiated
2004 Jul 13
2
Multithread problem: Writing to a db disables reading from another one
...chine with a custom 2.4.20 kernel.
(I used ./configure without parameters.)
I have followed the recent "threaded test" discussion here, and I have tested the examples:
- Richard Boulton's example with one database, one writer, and three readers (1)
works fine, I only see the expected DatabaseModifiedError.
- Eric B. Ridge's example with just two writers to separate databases (2)
also shows no errors (I stopped after 162 docs were added).
I then expanded Richard's example by adding a second writer that writes to a separate database (see attachment).
(I am also reopening the db if necessary.)...
2006 May 20
2
xapian-tcpsrv need to reopen database?
...y ;) to do search across multiple
remotes database, for now, I have only one xapian-tcpsrc running, but I have
documents being inserted at the same time, so (like I have readed in others
e-mails) the xapian-tcpsrc throw the following message:
Connection from 192.168.0.101, port 64161
Got exception DatabaseModifiedError: The revision being read has been
discarded - you should call Xapian::Database::reopen() and retry the
operation
Closing connection.
Raising an IOError on the python script, would have the xapian-tcpsrc to
reopen the database?
Have some patch for this, or this not is a error?
Should I try write a...
2023 Mar 27
1
uncaught C++ exception from Perl Search::Xapian XS?
I'm using Search::Xapian XS from Debian stable and I'm getting what
appears to be an unwrapped C++ exception:
terminate called after throwing an instance of 'Xapian::DatabaseModifiedError'
Using `eval' from Perl5 doesn't seem effective in catching it.
I'm using postlist_begin, postlist_end and ++ to iterate a
PositionIterator, and reading XS/*Iterator.xs, I see the XS
wrappers are missing:
try { } catch { handle_exception(); }
in several places. Not sure if th...
2023 Mar 28
1
uncaught C++ exception from Perl Search::Xapian XS?
On Mon, Mar 27, 2023 at 11:46:04AM +0000, Eric Wong wrote:
> I'm using Search::Xapian XS from Debian stable and I'm getting what
> appears to be an unwrapped C++ exception:
>
> terminate called after throwing an instance of 'Xapian::DatabaseModifiedError'
>
> Using `eval' from Perl5 doesn't seem effective in catching it.
>
> I'm using postlist_begin, postlist_end and ++ to iterate a
> PositionIterator, and reading XS/*Iterator.xs, I see the XS
> wrappers are missing:
FWIW, postlist_begin gives you a PostingItera...
2014 Aug 20
6
Full MVCC in Brass
...lists---a key step toward full MVCC---and I
offered to pitch in on putting the other pieces into place.
Before I wade too deep into this, I wanted to propose my plan.
Full MVCC would enable Xapian to keep any database revision valid as
long as any reader is using it, thus eliminating the dreaded
DatabaseModifiedError and simplifying application logic.
The high level idea is to use file range locking to represent locks on
database revisions. Readers will acquire a shared lock on the latest
revision. Writers will acquire an exclusive lock from revision 0 to
the highest revision they can lock, up to but not inc...
2017 May 17
2
Xapian 1.4.3 "Db block overwritten - are there multiple writers?"
Hi,
I have a user reporting the following error during recoll indexing:
flush() failed: Db block overwritten - are there multiple writers?
"flush() failed" is from recoll, the rest is, I think the text of the Xapian
exception.
This is with Xapian 1.4.3 on Linux (I asked for more details, should be
coming).
I don't think that I've ever seen this error, and I also
2018 Feb 08
7
How to ensure thread-safety
Hi,
I have read the concurrency webpage from the Xapian documentation:
http://getting-started-with-xapian.readthedocs.io/en/latest/concepts/concurrency.html
But it is still not clear to me how to ensure thread-safety when using
libxapian (C++ API). Usually when doing multi-threading many threads can
read the same variable concurrently without locking provided none of the
threads modifies the
2015 Apr 27
2
empty FD after reopen since version 1.2.16
...s the problem occurs in Version 1.2.16 and above.
in <=1.2.15 everything works fine without seeing this error once.
attaches strace shows read ends on FD.
strace starts at reopen() call.
FDs are shown on bottom
Greetz Matze
-------------- next part --------------
[pid 27922] write(2, "DatabaseModifiedError: The revis"..., 134DatabaseModifiedError: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation) = 134
[pid 27922] write(2, "\n", 1
) = 1
[pid 27922] write(2, "type=", 5type=) = 5
[pid 27922] write(2...