opencast / opencast

The free and open source solution for automated video capture and distribution at scale.
https://opencast.org
Educational Community License v2.0
399 stars 235 forks source link

Missing index rebuild endpoint on presentation node #6176

Open geichelberger opened 2 months ago

geichelberger commented 2 months ago

The index rebuild endpoint is not present on the presentation node. A missing reference to the IndexRebuildService causes this.

Opencast :: elasticsearch-index (74)
------------------------------------
Status: Waiting
Declarative Services
org.opencastproject.elasticsearch.index.ElasticsearchIndex (22)
org.opencastproject.elasticsearch.index.endpoint.IndexEndpoint (23)
  missing references: IndexRebuildService

The service is not registered because the following conditions for the presentation node still need to be met. After all, only the Search rebuild service exists:

if (indexProducers.size() == IndexRebuildService.Service.values().length) {
  registerIndexRebuildService(bundleContext);
}

Workaround

Rebuilding the search index is working from the admin node.

gregorydlogan commented 2 months ago

A word of warning, non uniform file mounts (ie, if your whole oc data tree isn't mounted everywhere) may exhibit incorrect behaviour.

mtneug commented 2 months ago

A word of warning, non uniform file mounts (ie, if your whole oc data tree isn't mounted everywhere) may exhibit incorrect behaviour.

Can you give more details why this might cause problems?

gregorydlogan commented 2 months ago

Looks like I'm wrong. I thought it was pulling the Dublin core files from the AM, but it's using DuinCoreUtil and the workspace to get at them. Nevermind 😅

mtneug commented 2 months ago

Even when it would come from the asset manager, it should ultimately land in the workspace, shouldn't it? And if hard linking is not an option (asset manger not mounted, using S3, etc.) it should get downloaded.

gregorydlogan commented 2 months ago

There was (circa 12.x or so) a hack way to access things directly in the AM from elsewhere. It was unsafe, and removed at some point. Hence my confusion :)