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

Update column info for show databases to mention where composite databases return null #2212

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

Hunterness
Copy link
Contributor

@Hunterness Hunterness commented Apr 1, 2025

We updated the store column to not say --0.0 in 2025.04 (and backported to next release of 5.LTS as well), and the currentPrimariesCount/currentSecondariesCount to be null to match what the requested versions already did.

Also added the sentence about being null for composite on the columns where that was already the case.

Copy link
Collaborator

@renetapopova renetapopova left a comment

Choose a reason for hiding this comment

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

I left a suggestion. Otherwise, looks good.

@renetapopova
Copy link
Collaborator

We updated the store column to not say --0.0 in 2025.04

@Hunterness Where is this updated store column (that doesn't say --0.0 in 2025.04)? We need to mark the change with a label that it's available from 2025.04, but I don't see the change.

@@ -171,6 +181,8 @@ The value is a string formatted as:
----
A database must be `online` or `deallocating` for this value to be available.
For other database states the value will be `NULL`.

The value will be `NULL` for composite databases, as it is not applicable for them.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where is this updated store column (that doesn't say --0.0 in 2025.04)? We need to mark the change with a label that it's available from 2025.04, but I don't see the change.

This is the store column, it's really just a bug fix as --0.0 isn't really a valid/useful storage engine/format. But we're not backporting it to the other calendar releases just the 5.LTS one 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

both the store, currentPrimariesCount and currentSecondariesCount columns got updated to return null for composite (the current_Count ones are also columns that now have this sentence)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should add a footnote to explain that this change is applicable to 2025.04 and 5.25.5 and later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

5.26.5 maybe? but sure could work (but I don't know how to do a footnote)

@neo-technology-commit-status-publisher
Copy link
Collaborator

This PR includes documentation updates
View the updated docs at https://neo4j-docs-operations-2212.surge.sh

Updated pages:

@@ -82,7 +82,7 @@ The default for a standalone database is `neo4j://localhost:7687`. label:default
| role
| The current role of the database (`primary`, `secondary`, `unknown`). label:default-output[]

The value for composite databases is `NULL` because it does not apply to them.
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[This change applies to versions 2025.04 and later and 5.25.5 and later.]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

still don't think 5.25 is correct, the 5.LTS is 5.26

and should we mention the 5.X version here anyway or only in the 5.x version of the docs? (and then not mention the 2025.04 in the 5.x docs)

@@ -82,7 +82,7 @@ The default for a standalone database is `neo4j://localhost:7687`. label:default
| role
| The current role of the database (`primary`, `secondary`, `unknown`). label:default-output[]

The value for composite databases is `NULL` because it does not apply to them.
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[This change applies to versions 2025.04 and later and 5.25.5 and later.]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

also the role column have been null since before, we only updated 3 of the columns but I added the comments in docs on all the columns where it applied as the old ones didn't have docs comments either.

Suggested change
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[This change applies to versions 2025.04 and later and 5.25.5 and later.]
The value for composite databases is `NULL` because it does not apply to them.

@@ -133,28 +133,28 @@ Not returned by `SHOW HOME DATABASE` or `SHOW DEFAULT DATABASE`.
| Number of primaries for this database reported as running currently.
It is the same as the number of rows where `role=primary` and `name=this database`.

The value for composite databases is `NULL` because it does not apply to them.
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[This change applies to versions 2025.04 and later.]

or if you want to keep the 5.LTS version info as well

Suggested change
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[This change applies to versions 2025.04 and later and 5.26.5 and later.]

| INTEGER

| `requestedPrimariesCount`
| The requested number of primaries for this database.
May be lower than current if the DBMS is currently reducing the number of copies of the database, or higher if it is currently increasing the number of copies.

The value for composite databases is `NULL` because it does not apply to them.
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]
The value for composite databases is `NULL` because it does not apply to them.

| INTEGER

| `requestedSecondariesCount`
| The requested number of secondaries for this database.
May be lower than current if the DBMS is currently reducing the number of copies of the database, or higher if it is currently increasing the number of copies.

The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]
The value for composite databases is `NULL` because it does not apply to them.

@@ -171,6 +181,8 @@ The value is a string formatted as:
----
A database must be `online` or `deallocating` for this value to be available.
For other database states the value will be `NULL`.

The value for composite databases is `NULL` because it does not apply to them.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
The value for composite databases is `NULL` because it does not apply to them.
The value for composite databases is `NULL` because it does not apply to them.footnote:compositeDb[]

so you added the footnote to some that wasn't updated and missed one of the ones that were updated

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

Successfully merging this pull request may close these issues.

4 participants