PiRSquared17 / flaxcode

Automatically exported from code.google.com/p/flaxcode
0 stars 0 forks source link

Xapian Database error #187

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Flax (unpackaged) on Mongoose
2. Index the xapian-core-1.0.6 folder
3. Try a search with 'code' as the query

What is the expected output? What do you see instead?

<!--
Details: 500 Internal Server Error

Traceback (most recent call last):
  File "D:\flax\localinst\cherrypy\_cprequest.py", line 551, in respond
    cherrypy.response.body = self.handler()
  File "D:\flax\localinst\cherrypy\_cpdispatch.py", line 24, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "D:\flax\src\cpserver.py", line 337, in search
    return self._search.search(advanced=False, **kwargs )
  File "D:\flax\src\cpserver.py", line 303, in search
    return template(self._flax_data.collections, results, cols,
self._flax_data.formats)
  File "D:\flax\src\templates.py", line 510, in admin_search_render
    return self._tman.create_admin_template("search.html", render_search,
nav_id=nav_id).render(True, self, False, *args)
  File "D:\flax\localinst\HTMLTemplate.py", line 729, in render
    self.__callback(clone, *args)
  File "D:\flax\src\templates.py", line 190, in render_search
    render_search_result(template.main, results, collections, selcols, formats)
  File "D:\flax\src\templates.py", line 440, in render_search_result
    res_node.results.repeat(fill_results, results.xap_results)
  File "D:\flax\localinst\HTMLTemplate.py", line 442, in repeat
    for item in list:
  File "D:\flax\localinst\xappy\searchconnection.py", line 180, in next
    return SearchResult(msetitem, self._results)
  File "D:\flax\localinst\xappy\searchconnection.py", line 66, in __init__
    ProcessedDocument.__init__(self, results._fieldmappings, msetitem.document)
  File "c:\Python25\lib\site-packages\xapian\__init__.py", line 4333, in
_get_document
    self._document = self._mset._get_hit_internal(self.rank -
self._firstitem).get_document()
DatabaseModifiedError: The revision being read has been discarded - you
should call Xapian::Database::reopen() and retry the operation

-->

Original issue reported on code.google.com by charliej...@gmail.com on 25 Apr 2008 at 3:38

GoogleCodeExporter commented 9 years ago
Charlie reports that this is happening after indexing has finished.  This 
implies
that something is keeping a very old copy of the Database around and using it,
instead of using a recent database.

Original comment by boulton.rj@gmail.com on 25 Apr 2008 at 3:42

GoogleCodeExporter commented 9 years ago
Weirdly, this is happening locally, under linux, too.  And it happens for all
searches, whether the indexer is running or not.  And if I stop flax, and run 
delve
over the result, it reports the same problem.  Therefore, the databases being 
created
are in some way invalid.

I've been testing with xapian HEAD - I'll test with xapian 1.0.6, and then with
earlier xapian, and see if it's something which has been introduced recently.

Raising the priority, since this breaks everything!

Original comment by boulton.rj@gmail.com on 25 Apr 2008 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by charliej...@gmail.com on 27 Aug 2009 at 1:23

GoogleCodeExporter commented 9 years ago
http://xappy.org/docs/0.5/introduction.html#concurrent-update-limitations
here's some information about this error

Original comment by ask...@gmail.com on 18 Feb 2010 at 4:00