Opened 13 years ago

Closed 13 years ago

#602 closed defect (fixed)

CSW reader caching is not cleared when new metadata is inserted (with patch)

Reported by: jesseeichar Owned by: geonetwork-devel@…
Priority: major Milestone: v2.6.5
Component: General Version: v2.6.3
Keywords: Cc:

Description

When performing CSW searches it is common to have a stale reader. Here is the scenario.

  1. Do full CSW search
  2. Insert metadata
  3. Do full CSW search again

The first search will cache the reader and then the second search will reuse the cached reader and not see the new metadata.

The fix is simple and I have attached a patch to fix the issue. Obviously the idea is to check if the reader is stale or not before reusing it.

Attachments (1)

602_csw_reader_caching_bug.patch (65.5 KB ) - added by jesseeichar 13 years ago.

Download all attachments as: .zip

Change History (4)

by jesseeichar, 13 years ago

comment:1 by jesseeichar, 13 years ago

Resolution: fixed
Status: newclosed

fixed as of 8536.

comment:2 by jesseeichar, 13 years ago

Resolution: fixed
Status: closedreopened

This problem also happens when language changes but query is the same. It is a problem now that we do multilingual searches. I have a patch that fixes this issue as well.

comment:3 by jesseeichar, 13 years ago

Resolution: fixed
Status: reopenedclosed

Fixed as of r8724

Note: See TracTickets for help on using tickets.