Skip to content

Conversation

@mauroservienti
Copy link
Member

@mauroservienti mauroservienti commented Mar 28, 2025

The RavenDB persister (both for the primary and the audit instances) always sets the ServerUrl value to localhost using the configured maintenance port. When running in external mode and RavenDB is on the same machine or the RavenDB container is in the same network, localhost may work, and the persisted connection string and server URL values match. However, it's better to favor using the connection string over the server URL when connecting to RavenDB to retrieve dirty memory details, and fallback to the server URL if the connection string is not set.


@mauroservienti mauroservienti merged commit 7b208cd into master Apr 1, 2025
32 checks passed
@mauroservienti mauroservienti deleted the fix-dirty-memory-custom-check-connection branch April 1, 2025 07:47
mauroservienti added a commit that referenced this pull request Apr 1, 2025
… mode (#4917)

* Favor connection string over server URL when trying to connect to RavenDB to retrieve dirty memory details

* Update comment to reflect reality

* Update audit comment

---------

Co-authored-by: Brandon Ording <bording@gmail.com>
mauroservienti added a commit that referenced this pull request Apr 1, 2025
… mode (#4917) (#4920)

* Favor connection string over server URL when trying to connect to RavenDB to retrieve dirty memory details

* Update comment to reflect reality

* Update audit comment

---------

Co-authored-by: Brandon Ording <bording@gmail.com>
@mauroservienti mauroservienti added this to the 6.5.2 milestone Apr 1, 2025
@mauroservienti mauroservienti changed the title Dirty memory check may fail connecting to RavenDB when using external mode Dirty memory custom check may fail connecting to RavenDB when using external mode Apr 1, 2025
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.

4 participants