dsp-api
dsp-api copied to clipboard
If ontologies can't be loaded because they're invalid, Knora should go into an error state
On startup, when OntologyResponderV2 receives the message LoadOntologiesRequestV2, it loads and validates all ontologies. If an ontology is invalid, it throws InconsistentTriplestoreDataException. This should cause Knora to go into an error state. The only way to recover from this state would be to load the ontologies again.
How should Knora recover from this? Would the user be also required to restart Knora after the data in the triplestore was reloaded?
More precisely, would a manual restart of Knora be sufficient, or should Knora try to reload the ontologies periodically?
I don’t think Knora should retry automatically in this case. Only the user knows when the ontologies are ready to be loaded again. I guess the user could either restart Knora when ready, or click on a button in the admin interface to send another LoadOntologiesRequestV2.
But in any case, Knora shouldn’t accept any normal (non-admin) API requests while it’s in the error state, otherwise every request will return a rather unfriendly error.
ok, thanks for the input.