Skip to content

Commit 1083f4d

Browse files
committed
Added information regarding RavenDB version compatibility policy
1 parent ea8e0bb commit 1083f4d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ServiceControl.RavenDB/StartupChecks.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ public static class StartupChecks
99
{
1010
public static async Task EnsureServerVersion(IDocumentStore store, CancellationToken cancellationToken = default)
1111
{
12+
// RavenDB compatibility policy is that the major/minor version of the server must be
13+
// equal or higher than the client and ignores the patch version.
14+
//
15+
// https://docs.ravendb.net/6.2/client-api/faq/backward-compatibility/#compatibility---ravendb-42-and-higher
16+
//
17+
// > Starting with version 4.2, RavenDB clients are compatible with any server of their own version and higher.
18+
// > E.g. -
19+
// >
20+
// > Client 4.2 is compatible with Server 4.2, Server 4.5, Server 5.2, and any other server of a higher version.
21+
1222
var build = await store.Maintenance.Server.SendAsync(new GetBuildNumberOperation(), cancellationToken);
1323
var serverProductVersion = new Version(build.ProductVersion);
1424

0 commit comments

Comments
 (0)