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

7 0 0 mb #5678

Merged
merged 25 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a2a0a8a
pom bump to 7.0.0 (#5615)
longma1 Jan 22, 2024
b982abb
Check index existence on raw SQL creation (#5624)
tadgh Jan 24, 2024
47867fc
5621 deadlock on caffeine cache when creating a resource with conditi…
epeartree Jan 24, 2024
4b1ac77
Searching with more than one chained Bundle SearchParameter returns i…
nathandoef Jan 24, 2024
ba28ff9
Avoiding Exception being thrown on @EventListener invocation (#5628)
epeartree Jan 25, 2024
1441a90
simple fix (#5630)
longma1 Jan 25, 2024
224e569
Incorrect version of auto versioned reference for conditional update …
volodymyr-korzh Jan 26, 2024
d3876c5
Oracle: Ensure migrated database still takes large resource text upd…
lukedegruchy Jan 26, 2024
c7fd015
Fix expansion for `ValueSet` with no concepts based on CodeSystem `ur…
Jan 29, 2024
5004907
$expunge operation ignoring ExpungeThreadCount setting in certain cas…
volodymyr-korzh Jan 30, 2024
94e932c
Fix Measure group id null pointer exception (#5620)
JPercival Jan 30, 2024
16aa9fc
Rule evaluation: Allow Bundles with PATCH Parameters (#5641)
lukedegruchy Jan 30, 2024
5ed30f3
Prevent batch2 job execution to stop for empty chunk when last job st…
jmarchionatto Jan 30, 2024
59f7d4a
Index review fixes (#5649)
michaelabuckley Jan 31, 2024
ec1b8fe
Fix conditional creates without leading '?' (#5646)
lukedegruchy Jan 31, 2024
0537ab5
Searching for Bundles with read all Bundles permission returns 403 (#…
nathandoef Feb 2, 2024
0f3c744
Fix NullPointerException when performing a system bulk export in the …
Feb 2, 2024
14a489c
Serializing changes for sensitive data (#5655)
tadgh Feb 3, 2024
d63d3ca
Rel 7 0 CVE (#5663)
tadgh Feb 4, 2024
ace3fcc
Descendent fix (#5669)
tadgh Feb 5, 2024
b395039
mergeback rel_7_0 to master
Feb 6, 2024
4832a5c
fix conflict mistake
Feb 6, 2024
27ffdfd
removed test assert that is no longer true:
Feb 7, 2024
f1026f2
version bumpb to 7.1.1
Feb 7, 2024
70a66a7
fix version Enum test
Feb 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check index existence on raw SQL creation (#5624)
* Add conditional check on index existence before we try again

* Add conditional check on index existence before we try again

* Changelog

* remit

* remit

* debug statements
  • Loading branch information
tadgh committed Jan 24, 2024
commit b982abbfbe33469a9445ec9bf088817a99e22719
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: fix
issue: 5547
title: "The addition of the indexes `idx_sp_uri_hash_identity_pattern_ops` and `idx_sp_string_hash_nrm_pattern_ops` could occasionally timeout during migration in Postgresql on large databases, leaving the migration table in a failed state, and Smile CDR unable to boot.
Now existence of the index is checked before attempting to add it again."
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ protected void init700() {
QUERY_FOR_COLUMN_COLLATION_TEMPLATE,
"HFJ_SPIDX_STRING".toLowerCase(),
"SP_VALUE_NORMALIZED".toLowerCase()),
"Column HFJ_SPIDX_STRING.SP_VALUE_NORMALIZED already has a collation of 'C' so doing nothing");

"Column HFJ_SPIDX_STRING.SP_VALUE_NORMALIZED already has a collation of 'C' so doing nothing")
.onlyIf(
"SELECT NOT EXISTS(select 1 from pg_indexes where indexname='idx_sp_string_hash_nrm_pattern_ops')",
"Index idx_sp_string_hash_nrm_pattern_ops already exists");
version.executeRawSql(
"20231212.2",
"CREATE UNIQUE INDEX idx_sp_uri_hash_identity_pattern_ops ON public.hfj_spidx_uri USING btree (hash_identity, sp_uri varchar_pattern_ops, res_id, partition_id)")
Expand All @@ -195,7 +197,10 @@ protected void init700() {
QUERY_FOR_COLUMN_COLLATION_TEMPLATE,
"HFJ_SPIDX_URI".toLowerCase(),
"SP_URI".toLowerCase()),
"Column HFJ_SPIDX_STRING.SP_VALUE_NORMALIZED already has a collation of 'C' so doing nothing");
"Column HFJ_SPIDX_STRING.SP_VALUE_NORMALIZED already has a collation of 'C' so doing nothing")
.onlyIf(
"SELECT NOT EXISTS(select 1 from pg_indexes where indexname='idx_sp_uri_hash_identity_pattern_ops')",
"Index idx_sp_uri_hash_identity_pattern_ops already exists.");
}

// This fix was bad for MSSQL, it has been set to do nothing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,11 @@ public BuilderCompleteTask onlyIf(@Language("SQL") String theSql, String reason)
"Only SELECT statements (including CTEs) are allowed here. Please check your SQL: [%s]",
theSql));
}
ourLog.info("SQL to evaluate: {}", theSql);
ourLog.debug("SQL to evaluate: {}", theSql);

myTask.addPrecondition(new ExecuteTaskPrecondition(
() -> {
ourLog.info("Checking precondition for SQL: {}", theSql);
ourLog.debug("Checking precondition for SQL: {}", theSql);
return MigrationJdbcUtils.queryForSingleBooleanResultMultipleThrowsException(
theSql, myTask.newJdbcTemplate());
},
Expand Down
Loading