Exception in live scheduler service when rebuilding the admin ui index

Steps to reproduce

Steps to reproduce:
1. Schedule a capture and mark it for live
2. Wait for the event to be captured, ingested, published to search
3. Rebuild the admin ui index

Actual Results:
Exception:
Exception occurred for mp 5c5414da-0d1d-4212-adc7-9f1b2d74f58e, event type UpdateAgentId
java.lang.IllegalStateException: The duration is determined by the length of the tracks and cannot be set manually
at org.opencastproject.mediapackage.MediaPackageImpl.setDuration(MediaPackageImpl.java:241)[68:opencast-common:5.0.0.SNAPSHOT]
at org.opencastproject.liveschedule.impl.LiveScheduleServiceImpl.setDuration(LiveScheduleServiceImpl.java:424)[104:opencast-live-schedule-impl:5.0.0.SNAPSHOT]
at org.opencastproject.liveschedule.impl.LiveScheduleServiceImpl.updateLiveEvent(LiveScheduleServiceImpl.java:312)[104:opencast-live-schedule-impl:5.0.0.SNAPSHOT]

Expected Results:
The live service should ignore notifications for events in the search index that are not live.

The reason is that the event has already been captured, produced, and published, but the Scheduler Service sends updates regardless of that ("UpdateAgentId"). The live service should ignore those messages.

Workaround (if any):
None

Assignee

Maximiliano Lira Del Canto

Reporter

Rute Santos

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Affects versions

Priority

Major
Configure