Skip to content

Conversation

@kentdr
Copy link
Contributor

@kentdr kentdr commented Jul 13, 2023

If the audit database (RavenDB 5) is deleted after installation through SCMU, the next time the audit service starts, the DB will be recreated with the document expiration setting turned off and the indexes are not recreated. In addition to the missing indexes causing errors at runtime, this will also cause message audit documents to accumulate and not be deleted at their configured retention time.

This PR ensures that the database setup routine is always run to ensure indexes are created, and the document expiration feature is always enabled.

@kentdr kentdr force-pushed the document-expiration-fix branch from 0602628 to 7799e30 Compare July 19, 2023 15:07
@kentdr kentdr marked this pull request as ready for review July 19, 2023 19:30
@kentdr kentdr changed the title Move expiration settings to EmbeddedDatabase Always run database setup during startup Jul 19, 2023
@kentdr kentdr merged commit 8909b0b into master Jul 19, 2023
@kentdr kentdr deleted the document-expiration-fix branch July 19, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audit retention does not work as expected

3 participants