[Zope-dev] FieldIndex unindex_object could not remove... This should not happen.

Florent Guillaume fg@nuxeo.com
Thu, 28 Feb 2002 21:25:06 +0000 (UTC)


Both catalogs were ok.

BTW this patch is needed:
--- check_catalog.py    Thu Feb 28 22:13:30 2002
+++ check_catalog.py    Thu Feb 28 22:23:15 2002
@@ -140,7 +140,7 @@
         if o in ['--FieldIndex','--KeywordIndex','--PathIndex']:
             indexes.append(o[2:])

-    checkCatalog(args,indexes)
+    checkCatalog(args[0],indexes)


 if __name__=='__main__':




Andreas Jung <andreas@zope.com> wrote:
> Well...that should not happen :-)
> Maybe try the check_catalog.py script from Zope 2.5.X
> to find any problems in the indexes.
> 
> Andreas
> ----- Original Message -----
> From: "Florent Guillaume" <fg@nuxeo.com>
> Newsgroups: local.lists.zope.zope-dev
> To: <zope-dev@zope.org>
> Sent: Thursday, February 28, 2002 15:57
> Subject: Re: [Zope-dev] FieldIndex unindex_object could not remove... This
> should not happen.
> 
> 
> > Ok forget about it, I was unindexing and indexing from several catalogs,
> > and mixed some of them up. All is well now.
> > (However the message was still strange...)
> >
> > Florent
> >
> >
> > Florent Guillaume  <fg@nuxeo.com> wrote:
> > > 2.5.0 linux binary release, sorry.
> > >
> > > Andreas Jung <andreas@zope.com> wrote:
> > > > what zope version ?
> > > >
> > > > - aj
> > > > ----- Original Message -----
> > > > From: "Florent Guillaume" <fg@nuxeo.com>
> > > > Newsgroups: local.lists.zope.zope-dev
> > > > To: <zope-dev@zope.org>
> > > > Sent: Thursday, February 28, 2002 13:45
> > > > Subject: [Zope-dev] FieldIndex unindex_object could not remove... This
> > > > should not happen.
> > > >
> > > >
> > > > > Playing with workflow switching in CMF, I sometimes have this
> message:
> > > > >
> > > > > 2002-02-28T18:33:06 ERROR(200) FieldIndex unindex_object could not
> remove
> > > > documentId -862940561 from index review_state.  This should not
> happen.
> > > > > Traceback (innermost last):
> > > > >   File
> > > >
> /home/zope/test-zope/lib/python/Products/PluginIndexes/common/UnIndex.py,
> > > > line 168, in removeForwardIndexEntry
> > > > >     (Object: review_state)
> > > > > KeyError: -862940561
> > > > >
> > > > > I gather that this happens when I do self.unindexObject() on an
> object
> > > > > that had a review_state attribute (actually a workflow variable made
> > > > > available to the catalog through a wrapper) in the past (being in a
> > > > > reviewing workflow) but at the time of the unindexing this variable
> does
> > > > > not existe anymore because the current workflow followed by the
> object
> > > > > doesn't have it.
> > > > >
> > > > > Does this ring any bell ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Florent
> > --
> > Florent Guillaume, Nuxeo (Paris, France)
> > +33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com
> >
> > _______________________________________________
> > Zope-Dev maillist  -  Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> >
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com