#126 ✓resolved
James

Duplicate search/browse topic results after multiple edits

Reported by James | December 5th, 2008 @ 01:46 PM | in 1.2

Summary

After a number of edits, a topic can end up appearing multiple times in search results.

An example of this happening can be seen at http://kete.net.nz/site/all/topics/ right now. (You may need to view 10 or 20 results on a page to see the problem.)

Possible causes

Possible causes could be:

  • Invalid XML OAI record being generated and therefore not being being locate an existing zoom record for the item
  • A non-matching XML OAI recording being generated, leading to the same problem as mentioned above

Possible indirect causes of these could be:

  • Race conditions in zoom related code in Kete
  • A bug in XML OAI generating code that leads to invalid/inconsistent XML generation
  • Another known code issue

Possible Solutions

  • Locate and fix bugs in OAI XML generation or zoom interface code
  • Update Zebra to a version which allows exact matching of individual records by OAI Identifier, rather than entire record

Comments and changes to this ticket

  • Kieran P

    Kieran P December 17th, 2008 @ 03:07 PM

    I noticed that a topic on Kete net (enhancement topic) had duplicate records after

    • related topic was added

    • and then that related topic had comment added

  • James

    James December 17th, 2008 @ 03:16 PM

    • Assigned user changed from “Kete” to “James”
  • James

    James January 12th, 2009 @ 03:25 PM

    • Tag changed from browse, bug, correctness, oai-record, search, xml, zebra, zoom to browse, bug, correctness, duplicates, oai-record, search, xml, zebra, zoom
    • State changed from “new” to “open”

    Re. Kieran's comment (see above):

    I noticed that a topic on Kete net (enhancement topic) had duplicate records after * related topic was added * and then that related topic had comment added

    I have investigated this specifically and unfortunately could not find any correlation between this taking place and search result duplication.


    During testing I did find an issue with moderation which has subsequently been fixed which would have contributed to search result duplication when full moderation was turned on or possibly if moderation was actively in use. See http://github.com/kete/kete/comm... for more details.

    One common pattern among topics that have duplicates is that they always have related topic(s) and it seems have a number of edits in both related topics by different parties in quick succession.

    This seems to point to some kind of race condition in the zoom record deletion and replacement routines relating to related topics.

    I think this should probably be next area of investigation.

    Cheers,

    James

  • Kieran P

    Kieran P February 10th, 2009 @ 01:11 PM

    • Assigned user changed from “James” to “Kieran P”
  • Kieran P

    Kieran P March 9th, 2009 @ 12:26 PM

    • State changed from “open” to “resolved”

    No further duplicate search results have shown up in a while. The integration tests can't find any issues with the most common use cases. If the problem happens again, we can open this ticket. For now, I'd call it resolved (and marking ticket as such).

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket

Pages