[ZPatterns] Re: [Zope] ZCatalog: UnKeywordIndex error
Chris McDonough
[email protected]
Wed, 12 Dec 2001 08:52:10 -0500
This is due to a catalog becoming internally inconsistent. It can be
fixed by rebuilding the catalog via "update catalog". It's unclear
*why* it became inconsistent, but it could happen if you add an index to
the Catalog and you don't immediately index all the objects referenced
by the catalgo within it. Rule of thumb when adding a new index:
recatalog right afterwards. This is a Catalog design flaw.
- C
Jean Jordaan wrote:
> Hi all
>
> Does anyone have any idea why this code::
>
> WHEN OBJECT CHANGED CALL
> Catalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/'))
> , Catalog.catalog_object( self
> , _.string.join(self.getPhysicalPath(),'/'))
>
> would trigger this error::
>
> 2001-12-12T08:21:11 ERROR(200) UnKeywordIndex unindex_object could not
> remove documentId 1144296079 from index ComponentVersions. This should
> not happen.
> Traceback (innermost last):
> File /usr/local/zope/2-3-0/lib/python/SearchIndex/UnIndex.py, line 236,
> in removeForwardIndexEntry
> KeyError: 1144296079
>
> (in /home/httpd/zope-instances/dev-creme/var/z2.log). The snippet of
> SkinScript above is triggered by this call in a python script::
>
> license_propertysheet = license.propertysheets.basic
> license_propertysheet.manage_changeProperties(
> SystemReminders = system_reminders)
>
> When I look at documentId 1144296079 in the catalog, it's fine
> http://blommie:11080/Catalog/manage_objectInformation?rid=1144296079
> 'ComponentVersions' is the first index.
>
> Calls to manage_changeProperties works fine from methods of the
> License ZClass, and from the Licenses specialist. The call that's
> giving trouble is in a different specialist (Reminders). Would
> this make any difference?
>
> Any advice would be sorely appreciated ..
>
> Jean Jordaan
>
> _______________________________________________
> Zope maillist - [email protected]
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
--
Chris McDonough Zope Corporation
http://www.zope.org http://www.zope.com
"Killing hundreds of birds with thousands of stones"