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

add RequestTimeout as option for RavenDB healthcheck #1707

Closed

Conversation

schulz3000
Copy link

What this PR does / why we need it:
Possibility to set a timeout for RavenDB requests

Which issue(s) this PR fixes:
Make RavenDB request timeout configurable for Healthcheck

Please reference the issue this PR will close: #1558

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing
  • End-to-end tests passing


private class DatabaseHealthCheckCommand : RavenCommand
{
public DatabaseHealthCheckCommand()
{
Timeout = TimeSpan.FromSeconds(15); // maybe even less?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is default timeout now?

{
_.Urls = _urls;
_.Database = "Demo";
_.RequestTimeout = TimeSpan.Zero;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use some not-zero small value. Probably 0.5 seconds.

@sungam3r
Copy link
Collaborator

Needs fix from #1715.

@sungam3r
Copy link
Collaborator

sungam3r commented Jul 5, 2023

@schulz3000 Please rebase onto master so I can review/merge.

@sungam3r
Copy link
Collaborator

Superseded by #1881.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make RavenDB Healthcheck Timeout configurable
2 participants