You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method should set event attributes (lat/lon/time/etc) based on the deleted product, rather than leaving the event record empty. Check whether event has event-like attributes (lat/lon/time) then update everything if possible.
The text was updated successfully, but these errors were encountered:
I used the following queryies to (manually) remove problem events from realtime indexes:
-- Events without productsDELETE e
FROM event e
LEFT JOIN productSummary p ON (p.eventid=e.id)
WHEREp.id is NULL;
-- Products without eventsDELETE p
FROM productSummary p
LEFT JOIN event e ON (e.id=p.eventid)
WHEREp.eventidIS NOT NULLANDe.id is NULL;
-- Events created using deleted productsDELETE e, p
FROM event e
JOIN productSummary p ON (p.eventid=e.id)
WHEREe.updated IS NULLANDe.source IS NULLANDe.sourceCode IS NULLANDe.eventTime IS NULLANDe.latitude IS NULLANDe.longitude IS NULLANDe.depth IS NULLANDe.magnitude IS NULLAND (e.status IS NULLORe.status='DELETE');
When a delete product is received after an event has been archived, the eventsUpdated method does not set event attributes which prevents archiving.
https://github.com/usgs/pdl/blob/master/src/gov/usgs/earthquake/indexer/JDBCProductIndex.java#L2048
The method should set event attributes (lat/lon/time/etc) based on the deleted product, rather than leaving the event record empty. Check whether event has event-like attributes (lat/lon/time) then update everything if possible.
The text was updated successfully, but these errors were encountered: