[Zope-dev] ZCatalog "Key Error" question

Dieter Maurer dieter at handshake.de
Sun Sep 3 14:11:33 EDT 2006


Dieter Maurer wrote at 2006-9-3 19:22 +0200:
>zope-dev at rosenthaltechnologies.com wrote at 2006-9-1 13:29 -0400:
>>
>>Traceback for my Key Error (Dieter, thank you for alerting me on where
>>to find this):
>>
>>Traceback (innermost last):
>> ...
>>   - Physical Path: /nephron_links/news_dtml
>>  Module DocumentTemplate.DT_String, line 476, in __call__
>>  Module DocumentTemplate.DT_In, line 465, in renderwb
>>  Module DocumentTemplate.DT_In, line 747, in sort_sequence
>>  Module Products.ZCatalog.Lazy, line 158, in __getitem__
>>  Module Products.ZCatalog.Catalog, line 520, in getScoredResult
>>KeyError: -464571725
>
>This does not look like a catalog corruption.
>
>Instead, it looks as if the catalog changed since the search was
>done. Are you caching your search results?


Sorry! I was wrong!

  It has nothing to do with a catalog modification after the search.

Looks indeed as if an index reported a document which is no longer
indexed. Looks like an index bug. Which (types of) indexes are involved
in your failing queries?



-- 
Dieter


More information about the Zope-Dev mailing list