search for: databaselockerror

Displaying 9 results from an estimated 9 matches for "databaselockerror".

2010 Sep 01
1
DatabaseLockError: REMOTE: unable to get write lock
...xapian-tcpsrv --port 9100 --interface 127.0.0.1 --writable ./xapiandb/ and in script.py: import xapian as xa db = xa.remote_open_writable('localhost', 9100) # other stuff # ... script is a long running program, and when i try to run another instance, i get : xapian.DatabaseLockError: REMOTE:Unable to get write lock on /home/hinoglu/xapiandb/ : already locked Please correct me if i'm wrong, writelock is the xapian-tcpsrv's lock, not the clients'. So why am i getting databaselock error? Isn't xapian-tcpsrv capable of handling multiple clients? Thanks Ozgur -...
2016 Feb 24
4
Database left unlocked by Tcl bindings
...xapian-core sources: > > examples/simpleindex tmp.db & > examples/simpleindex tmp.db lfs at bruno [ /usr/src/sources-deptj/xapian-core-1.2.18 ]$ examples/simpleindex tmp.db & [1] 26157 lfs at bruno [ /usr/src/sources-deptj/xapian-core-1.2.18 ]$ examples/simpleindex tmp.db DatabaseLockError: Unable to get write lock on tmp.db: already locked [1]+ Stopped examples/simpleindex tmp.db so it is presumably not anything to do with the FS or the OS. I am hoping that the right Tcl person (whoever that is) may pick something up in an strace. > More recent Xapian vers...
2016 Feb 25
0
Database left unlocked by Tcl bindings
...; examples/simpleindex tmp.db & > > examples/simpleindex tmp.db > > lfs at bruno [ /usr/src/sources-deptj/xapian-core-1.2.18 ]$ examples/simpleindex tmp.db & > [1] 26157 > lfs at bruno [ /usr/src/sources-deptj/xapian-core-1.2.18 ]$ examples/simpleindex tmp.db > DatabaseLockError: Unable to get write lock on tmp.db: already locked > > [1]+ Stopped examples/simpleindex tmp.db > > so it is presumably not anything to do with the FS or the OS. I am > hoping that the right Tcl person (whoever that is) may pick something up > in an strace....
2016 Feb 25
2
Database left unlocked by Tcl bindings
...tmp.db & >>> examples/simpleindex tmp.db >> >> lfs at bruno [ /usr/src/sources-deptj/xapian-core-1.2.18 ]$ examples/simpleindex tmp.db & >> [1] 26157 >> lfs at bruno [ /usr/src/sources-deptj/xapian-core-1.2.18 ]$ examples/simpleindex tmp.db >> DatabaseLockError: Unable to get write lock on tmp.db: already locked >> >> [1]+ Stopped examples/simpleindex tmp.db >> >> so it is presumably not anything to do with the FS or the OS. I am >> hoping that the right Tcl person (whoever that is) may pick something u...
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
2011 Oct 30
1
xapian database corrupt with multi-write
I think it is a important bug. When there are mutiple write to a xapian db, it should raise db locked error. But I found the DB is currupted after that. It happened very often in our system. Yes, I know xapian support only one write. But admin mistake may happen. Can this be solved? thanks. -- Pan
2018 Feb 09
0
How to ensure thread-safety
...erent part of the manual: https://getting-started-with-xapian.readthedocs.io/en/latest/concepts/indexing/databases.html#concurrent-access > Currently, all the backends only support a single writer existing at a given time; attempting to open another writer on the same database will throw xapian.DatabaseLockError to indicate that it wasn’t possible to acquire a lock. Multiple concurrent readers are supported (in addition to the writer). Note the caution there about the number of versions that can exist in Xapian's MVCC, and how to deal with DatabaseModifiedError. J -- James Aylett, occasional trou...
2016 Feb 22
3
Database left unlocked by Tcl bindings
On Sun, 21 Feb 2016 22:33:22 +0000, Olly Betts <olly at survex.com> wrote: > On Sun, Feb 21, 2016 at 02:15:25PM +0100, Eric J wrote: > > I discovered, while trying to set up Tcl bindings for Notmuch > > (https://notmuchmail.org/), which uses Xapian, that flintlock was not > > being locked (I had lost updates). > > It seems to work for me, testing with this: >
2011 Apr 21
1
Installing Search::xapian
...3/Search::Xapian::UnimplementedError.3pm Manifying blib/man3/Search::Xapian::InvalidArgumentError.3pm Manifying blib/man3/Search::Xapian::DatabaseModifiedError.3pm Manifying blib/man3/Search::Xapian::ValueIterator.3pm Manifying blib/man3/Search::Xapian::Error.3pm Manifying blib/man3/Search::Xapian::DatabaseLockError.3pm Manifying blib/man3/Search::Xapian::RuntimeError.3pm Manifying blib/man3/Search::Xapian::TermIterator.3pm Manifying blib/man3/Search::Xapian::TradWeight.3pm Manifying blib/man3/Search::Xapian::DatabaseCorruptError.3pm Manifying blib/man3/Search::Xapian::BoolWeight.3pm Manifying blib/man3/Search...