KeywordIndex errors
Hi, started seeing quite a few of these showing up in one of our server's logs: ------ 2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not remove documentId -869933785 from index companies. This should not happen. exceptions.KeyError: -869933785 This is Zope 2.6.0, hence the total lack of traceback :-( Anyone got any idea what's going on here? cheers, Chris
--On Mittwoch, 27. November 2002 18:08 +0000 Chris Withers <chrisw@nipltd.com> wrote:
Hi, started seeing quite a few of these showing up in one of our server's logs:
------ 2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not remove documentId -869933785 from index companies. This should not happen.
exceptions.KeyError: -869933785
This looks like another i-will-never-go-away-bug. In fact I encountered this problem several times but it does not seem to be reproducable and I have no glue about the reason. :-( -aj
Andreas Jung wrote:
--On Mittwoch, 27. November 2002 18:08 +0000 Chris Withers <chrisw@nipltd.com> wrote:
Hi, started seeing quite a few of these showing up in one of our server's logs:
------ 2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not remove documentId -869933785 from index companies. This should not happen.
exceptions.KeyError: -869933785
This looks like another i-will-never-go-away-bug. In fact I encountered this problem several times but it does not seem to be reproducable and I have no glue about the reason. :-(
We've seen that too and in a big amounts. We have experimaental Data.fs for Plone migration purposes (branch-copy of production one). For ease of testing I was deleting almost all content to speed up migration processes under inspection. Documents have KeywordIndex applied also. And I've seen something like several hundreds such errors when deleting 3000 documents. Thus it appear to happen more or less each 10th unindex_object. I'd say rather reproducible case. m. -- Myroslav Opyr zope.net.ua <http://zope.net.ua/> ° Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua>
This usually happens when there are duplicates in the indexed keywords and the record isn't updated before unindexing. Shouldn't cause any problems, though it isn't nice. This can be easily fixed by changing the KeywordIndex' index_object method to make keywords unique before indexing. ----- Original Message ----- Sent: Wednesday, November 27, 2002 7:08 PM Subject: [Zope-dev] KeywordIndex errors
Hi, started seeing quite a few of these showing up in one of our server's logs:
------ 2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not remove documentId -869933785 from index companies. This should not happen.
exceptions.KeyError: -869933785
This is Zope 2.6.0, hence the total lack of traceback :-(
Anyone got any idea what's going on here?
cheers,
Chris
--On Donnerstag, 28. November 2002 01:48 +0100 Wolfram Kerber <wk@gallileus.de> wrote:
This usually happens when there are duplicates in the indexed keywords and the record isn't updated before unindexing. Shouldn't cause any problems, though it isn't nice. This can be easily fixed by changing the KeywordIndex' index_object method to make keywords unique before indexing.
Can you submit a patch? -aj
2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not remove documentId -869933785 from index companies. This should not happen.
exceptions.KeyError: -869933785
This usually happens when there are duplicates in the indexed keywords > and the record isn't updated before unindexing. Shouldn't cause any problems, though it isn't nice. This can be easily fixed by changing the KeywordIndex' index_object method to make keywords unique before indexing.
Hmm, recall that PathIndex error I reported a few days ago? That was also an unindex error, also exercised by migrating to 2.6.0. I wonder why the process of *migrating* should cause dups in the index...? seb
Hi, started seeing quite a few of these showing up in one of our server's
logs:
------ 2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not
remove
documentId -869933785 from index companies. This should not happen.
exceptions.KeyError: -869933785
This is Zope 2.6.0, hence the total lack of traceback :-(
Anyone got any idea what's going on here?
cheers,
Chris
----- Original Message ----- From: "seb bacon" <seb@jamkit.com> Sent: Thursday, November 28, 2002 11:22 AM Subject: Re: [Zope-dev] KeywordIndex errors
2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not remove documentId -869933785 from index companies. This should not happen.
exceptions.KeyError: -869933785
This usually happens when there are duplicates in the indexed keywords > and the record isn't updated before unindexing. Shouldn't cause any problems, though it isn't nice. This can be easily fixed by changing the KeywordIndex' index_object method to make keywords unique before indexing.
Hmm, recall that PathIndex error I reported a few days ago? That was also an unindex error, also exercised by migrating to 2.6.0.
I wonder why the process of *migrating* should cause dups in the index...?
It shouldn't cause them, they were probably already there. The PathIndex errors resulted from a change in the api, I don't think they are related to the errors Chris was seeing.
seb bacon wrote:
2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not remove documentId -869933785 from index companies. This should not happen.
exceptions.KeyError: -869933785
This usually happens when there are duplicates in the indexed keywords > and the record isn't updated before unindexing. Shouldn't cause any problems, though it isn't nice. This can be easily fixed by changing the KeywordIndex' index_object method to make keywords unique before indexing.
Hmm, recall that PathIndex error I reported a few days ago? That was also an unindex error, also exercised by migrating to 2.6.0.
I wonder why the process of *migrating* should cause dups in the index...?
The errors were reported when I was deleting object created in Zope 2.6.0 already, but that instance of Plone probably migrated 2.5 -> 2.6. We are migrating Plone, not Zope right now... m. -- Myroslav Opyr zope.net.ua <http://zope.net.ua/> ° Ukrainian Zope Hosting e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua>
participants (5)
-
Andreas Jung -
Chris Withers -
Myroslav Opyr -
seb bacon -
Wolfram Kerber