Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RavenDB Server child process remains running #4776

Open
ramonsmits opened this issue Feb 5, 2025 · 0 comments
Open

RavenDB Server child process remains running #4776

ramonsmits opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels

Comments

@ramonsmits
Copy link
Member

ramonsmits commented Feb 5, 2025

Describe the bug

Description

RavenDB Server child process remains running after SC instance is stopped. This causes issues when the instance is (re)started.

Restarting or shutting down the server results in the RavenDB instance to be terminated which might cause the database to do lots of IO when starts as it detects its data might be incorrect.

This is already a problem but even more when performing an upgrade as this can result in the upgrade to fail (database unavailable or just not stopping).

https://www.youtube.com/watch?v=nkRYMQXZDQE

Expected behavior

RavenDB Server Child process to gracefully exit before service control

Actual behavior

Versions

6.3.0 and prior 6.x and 5.x versions that use RavenDB Server as child processes.

Steps to reproduce

  1. host instance
  2. load test instance

Ensure that the RavenDB studio has plenty of index backlog

  1. stop instance

Observe that the instance process eventually stops but that the RavenDB Server process to remain running

Relevant log output

Additional Information

Workarounds

  1. Run RavenDB Server as a local Windows or remote service
  2. Manually stop and use Task Manager, resource Manager and/or SysInternals ProcExp to monitor if all processes eventually stop

Possible solutions

  1. See workaround
  2. Kill child process after stop timeout exceeds (Stop cancellation token) at the risk of flagging the database as unhealthy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant