-
Notifications
You must be signed in to change notification settings - Fork 160
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
Issue 2751 2756 prevent concurrent schema updates and support whole_system_schema healthcheck #2880
Conversation
…rsion tracking Signed-off-by: Robin Arnold <[email protected]>
Signed-off-by: Robin Arnold <[email protected]>
Signed-off-by: Robin Arnold <[email protected]>
…select privilege for Db2 and PostgreSQL fhirserver user Signed-off-by: Robin Arnold <[email protected]>
...tabase-utils/src/main/java/com/ibm/fhir/database/utils/version/CreateWholeSchemaVersion.java
Outdated
Show resolved
Hide resolved
fhir-database-utils/src/main/java/com/ibm/fhir/database/utils/version/CreateControl.java
Outdated
Show resolved
Hide resolved
fhir-persistence-schema/src/main/java/com/ibm/fhir/schema/control/CancelLease.java
Outdated
Show resolved
Hide resolved
fhir-persistence-schema/src/main/java/com/ibm/fhir/schema/control/UpdateSchemaVersion.java
Outdated
Show resolved
Hide resolved
// apply this data model to the target if necessary - note - this table | ||
// is not managed in the VERSION_HISTORY table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason not to manage this one in VERSION_HISTORY? hopefully simple-enough that we shouldn't ever need to change it, but I thought we'd still have it there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it has to be available before we process anything with version history. It's describing the schema version itself, so I didn't want to create some sort of circular dependency.
Signed-off-by: Robin Arnold <[email protected]>
fhir-persistence-schema/src/test/java/com/ibm/fhir/schema/derby/DerbyLeaseTest.java
Outdated
Show resolved
Hide resolved
...rsistence-jdbc/src/main/java/com/ibm/fhir/persistence/jdbc/impl/FHIRPersistenceJDBCImpl.java
Outdated
Show resolved
Hide resolved
...rsistence-jdbc/src/main/java/com/ibm/fhir/persistence/jdbc/impl/FHIRPersistenceJDBCImpl.java
Show resolved
Hide resolved
fhir-persistence-schema/src/main/java/com/ibm/fhir/schema/api/ILeaseManager.java
Outdated
Show resolved
Hide resolved
// Make sure we can correctly determine the latest schema version value | ||
svm.updateSchemaVersion(); | ||
assertEquals(svm.getVersionForSchema(), FhirSchemaVersion.V0020.vid()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this break when we go to V0021? I guess we just need to remember to come in here and update this line after each schema change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it will break (intentionally)
Signed-off-by: Robin Arnold <[email protected]>
Signed-off-by: Robin Arnold <[email protected]>
Signed-off-by: Robin Arnold <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#2751
#2756