From 856e70cf8e4dfc97e6b98bbb63b68232018e2444 Mon Sep 17 00:00:00 2001 From: sarahcaseybot Date: Tue, 26 Mar 2024 12:44:14 -0400 Subject: [PATCH] Add indexes on domainRepoId to DomainHistoryHost and PollMessage (#2380) * Add index for domainRepoId to PollMessage and DomainHistoryHost * Add flyway fix for Concurrent * fix gradle.properties * Modify lockfiles * Update the release tool and add IF NOT EXISTS * Test removing transactional lock from deploy script * Add transactional lock flag to actual flyway commands in script * Remove flag from info command * Add configuration for integration test --- core/build.gradle | 2 ++ core/buildscript-gradle.lockfile | 11 ++++++- core/gradle.lockfile | 4 +-- .../registry/model/domain/DomainHistory.java | 12 ++++---- .../registry/model/poll/PollMessage.java | 7 ++++- .../tools/DumpGoldenSchemaCommand.java | 5 ++++ db/build.gradle | 5 +++- db/gradle.lockfile | 4 +-- .../sql/er_diagram/brief_er_diagram.html | 6 ++-- .../sql/er_diagram/full_er_diagram.html | 30 +++++++++++++++++-- db/src/main/resources/sql/flyway.txt | 1 + ..._domain_repo_id_indexes_to_more_tables.sql | 16 ++++++++++ .../sql/schema/db-schema.sql.generated | 2 ++ .../resources/sql/schema/nomulus.golden.sql | 14 +++++++++ .../registry/sql/flyway/SchemaTest.java | 12 ++++++++ gradle.properties | 2 +- jetty/gradle.lockfile | 3 +- release/schema-deployer/deploy_sql_schema.sh | 3 +- services/backend/gradle.lockfile | 3 +- services/bsa/gradle.lockfile | 3 +- services/default/gradle.lockfile | 3 +- services/pubapi/gradle.lockfile | 3 +- services/tools/gradle.lockfile | 3 +- 23 files changed, 128 insertions(+), 26 deletions(-) create mode 100644 db/src/main/resources/sql/flyway/V165__add_domain_repo_id_indexes_to_more_tables.sql diff --git a/core/build.gradle b/core/build.gradle index ffce12f5d..479395b1e 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -17,6 +17,7 @@ import java.util.Optional plugins { id 'java-library' + id "org.flywaydb.flyway" version "10.8.1" id 'maven-publish' } @@ -317,6 +318,7 @@ dependencies { // Flyway classes needed to generate the golden file. implementation deps['org.flywaydb:flyway-core'] + implementation deps['org.flywaydb:flyway-database-postgresql'] closureCompiler deps['com.google.javascript:closure-compiler'] } diff --git a/core/buildscript-gradle.lockfile b/core/buildscript-gradle.lockfile index 0d156738b..138f1143d 100644 --- a/core/buildscript-gradle.lockfile +++ b/core/buildscript-gradle.lockfile @@ -1,4 +1,13 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -empty=classpath +com.fasterxml.jackson.core:jackson-annotations:2.15.2=classpath +com.fasterxml.jackson.core:jackson-core:2.15.2=classpath +com.fasterxml.jackson.core:jackson-databind:2.15.2=classpath +com.fasterxml.jackson.dataformat:jackson-dataformat-toml:2.15.2=classpath +com.fasterxml.jackson:jackson-bom:2.15.2=classpath +com.google.code.gson:gson:2.10.1=classpath +gradle.plugin.org.flywaydb:gradle-plugin-publishing:10.8.1=classpath +org.flywaydb.flyway:org.flywaydb.flyway.gradle.plugin:10.8.1=classpath +org.flywaydb:flyway-core:10.8.1=classpath +empty= diff --git a/core/gradle.lockfile b/core/gradle.lockfile index 13062795f..5e8bbea36 100644 --- a/core/gradle.lockfile +++ b/core/gradle.lockfile @@ -407,7 +407,7 @@ org.eclipse.jetty:jetty-session:12.0.7=testCompileClasspath,testRuntimeClasspath org.eclipse.jetty:jetty-util:12.0.7=testCompileClasspath,testRuntimeClasspath org.eclipse.jetty:jetty-xml:12.0.7=testCompileClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -org.flywaydb:flyway-database-postgresql:10.10.0=testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:jaxb-runtime:2.3.1=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:txw2:2.3.1=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.gwtproject:gwt-user:2.10.0=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath @@ -482,7 +482,7 @@ org.ow2.asm:asm:7.0=soy org.ow2.asm:asm:9.2=compileClasspath,nonprodCompileClasspath org.ow2.asm:asm:9.6=deploy_jar,jacocoAnt,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.pcollections:pcollections:3.1.4=annotationProcessor,errorprone,nonprodAnnotationProcessor,testAnnotationProcessor -org.postgresql:postgresql:42.7.3=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.reflections:reflections:0.10.2=checkstyle org.rnorth.duct-tape:duct-tape:1.0.8=compileClasspath,deploy_jar,nonprodCompileClasspath,nonprodRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.seleniumhq.selenium:selenium-api:3.141.59=testCompileClasspath,testRuntimeClasspath diff --git a/core/src/main/java/google/registry/model/domain/DomainHistory.java b/core/src/main/java/google/registry/model/domain/DomainHistory.java index 0e5f006d5..a3f60c2e7 100644 --- a/core/src/main/java/google/registry/model/domain/DomainHistory.java +++ b/core/src/main/java/google/registry/model/domain/DomainHistory.java @@ -91,11 +91,13 @@ public class DomainHistory extends HistoryEntry { @ElementCollection @JoinTable( name = "DomainHistoryHost", - indexes = - @Index( - columnList = - "domain_history_history_revision_id,domain_history_domain_repo_id,host_repo_id", - unique = true)) + indexes = { + @Index(columnList = "domain_history_domain_repo_id"), + @Index( + columnList = + "domain_history_history_revision_id,domain_history_domain_repo_id,host_repo_id", + unique = true) + }) @Column(name = "host_repo_id") Set> nsHosts; diff --git a/core/src/main/java/google/registry/model/poll/PollMessage.java b/core/src/main/java/google/registry/model/poll/PollMessage.java index 3902896e3..72cc4dc2b 100644 --- a/core/src/main/java/google/registry/model/poll/PollMessage.java +++ b/core/src/main/java/google/registry/model/poll/PollMessage.java @@ -86,7 +86,12 @@ import org.joda.time.DateTime; @ExternalMessagingName("message") @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name = "type") -@Table(indexes = {@Index(columnList = "registrar_id"), @Index(columnList = "eventTime")}) +@Table( + indexes = { + @Index(columnList = "domainRepoId"), + @Index(columnList = "registrar_id"), + @Index(columnList = "eventTime") + }) public abstract class PollMessage extends ImmutableObject implements Buildable, TransferServerApproveEntity, UnsafeSerializable { diff --git a/core/src/nonprod/java/google/registry/tools/DumpGoldenSchemaCommand.java b/core/src/nonprod/java/google/registry/tools/DumpGoldenSchemaCommand.java index cd7df1c5d..f079d8d1f 100644 --- a/core/src/nonprod/java/google/registry/tools/DumpGoldenSchemaCommand.java +++ b/core/src/nonprod/java/google/registry/tools/DumpGoldenSchemaCommand.java @@ -19,6 +19,7 @@ import com.beust.jcommander.Parameters; import java.io.IOException; import java.nio.file.Path; import org.flywaydb.core.Flyway; +import org.flywaydb.database.postgresql.PostgreSQLConfigurationExtension; import org.testcontainers.containers.Container; /** @@ -50,6 +51,10 @@ public class DumpGoldenSchemaCommand extends PostgresqlCommand { postgresContainer.getUsername(), postgresContainer.getPassword()) .load(); + + PostgreSQLConfigurationExtension configurationExtension = + flyway.getConfigurationExtension(PostgreSQLConfigurationExtension.class); + configurationExtension.setTransactionalLock(false); flyway.migrate(); String userName = postgresContainer.getUsername(); diff --git a/db/build.gradle b/db/build.gradle index 07e2880de..402084063 100644 --- a/db/build.gradle +++ b/db/build.gradle @@ -147,6 +147,9 @@ publishing { flyway { def accessInfo = project.ext.getJdbcAccessInfo() + pluginConfiguration = [ + postgresqlTransactionalLock: 'false' + ] url = accessInfo.url user = accessInfo.user @@ -160,7 +163,7 @@ dependencies { def deps = rootProject.dependencyMap implementation deps['org.flywaydb:flyway-core'] - runtimeOnly deps['org.flywaydb:flyway-database-postgresql'] + implementation deps['org.flywaydb:flyway-database-postgresql'] runtimeOnly deps['com.google.cloud.sql:postgres-socket-factory'] runtimeOnly deps['org.postgresql:postgresql'] diff --git a/db/gradle.lockfile b/db/gradle.lockfile index a61f6c4cc..56230fea5 100644 --- a/db/gradle.lockfile +++ b/db/gradle.lockfile @@ -91,7 +91,7 @@ org.checkerframework:checker-qual:3.12.0=checkstyle org.checkerframework:checker-qual:3.33.0=annotationProcessor,errorprone,testAnnotationProcessor org.checkerframework:checker-qual:3.42.0=deploy_jar,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=compileClasspath,deploy_jar,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -org.flywaydb:flyway-database-postgresql:10.10.0=deploy_jar,runtimeClasspath,testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=compileClasspath,deploy_jar,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.hamcrest:hamcrest-core:1.3=testCompileClasspath,testRuntimeClasspath org.jacoco:org.jacoco.agent:0.8.11=jacocoAgent,jacocoAnt org.jacoco:org.jacoco.ant:0.8.11=jacocoAnt @@ -113,7 +113,7 @@ org.ow2.asm:asm-tree:9.6=jacocoAnt org.ow2.asm:asm:9.2=deploy_jar,runtimeClasspath org.ow2.asm:asm:9.6=jacocoAnt,testCompileClasspath,testRuntimeClasspath org.pcollections:pcollections:3.1.4=annotationProcessor,errorprone,testAnnotationProcessor -org.postgresql:postgresql:42.7.3=deploy_jar,runtimeClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=deploy_jar,runtimeClasspath,testRuntimeClasspath org.reflections:reflections:0.10.2=checkstyle org.rnorth.duct-tape:duct-tape:1.0.8=testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-api:1.7.36=testCompileClasspath diff --git a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html index e6a61256f..667a66a76 100644 --- a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html @@ -261,11 +261,11 @@ td.section { generated on - 2024-03-11 20:42:54.463293864 + 2024-03-14 23:12:37.761866826 last flyway file - V164__rename_console_user_history_time.sql + V165__add_domain_repo_id_indexes_to_more_tables.sql @@ -280,7 +280,7 @@ td.section { generated by SchemaCrawler 16.10.1 generated on - 2024-03-11 20:42:54.463293864 + 2024-03-14 23:12:37.761866826 diff --git a/db/src/main/resources/sql/er_diagram/full_er_diagram.html b/db/src/main/resources/sql/er_diagram/full_er_diagram.html index 700f6ab84..1a4f057fa 100644 --- a/db/src/main/resources/sql/er_diagram/full_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/full_er_diagram.html @@ -261,11 +261,11 @@ td.section { </tr> <tr> <td class="property_name">generated on</td> - <td class="property_value">2024-03-11 20:42:51.738018408</td> + <td class="property_value">2024-03-14 23:12:35.464952842</td> </tr> <tr> <td class="property_name">last flyway file</td> - <td id="lastFlywayFile" class="property_value">V164__rename_console_user_history_time.sql</td> + <td id="lastFlywayFile" class="property_value">V165__add_domain_repo_id_indexes_to_more_tables.sql</td> </tr> </tbody> </table> @@ -280,7 +280,7 @@ td.section { <text text-anchor="start" x="4443.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text> <text text-anchor="start" x="4526.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.10.1</text> <text text-anchor="start" x="4442.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text> - <text text-anchor="start" x="4526.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-03-11 20:42:51.738018408</text> + <text text-anchor="start" x="4526.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-03-14 23:12:35.464952842</text> <polygon fill="none" stroke="#888888" points="4439,-4 4439,-44 4726,-44 4726,-4 4439,-4" /> <!-- allocationtoken_a08ccbef --> <g id="node1" class="node"> <title> @@ -8671,6 +8671,18 @@ td.section { <tr> <td colspan="3"></td> </tr> + <tr> + <td colspan="2" class="name">idx69qun5kxt3eux5igrxrqcycv0</td> + <td class="description right">[non-unique index]</td> + </tr> + <tr> + <td class="spacer"></td> + <td class="minwidth">domain_history_domain_repo_id</td> + <td class="minwidth">ascending</td> + </tr> + <tr> + <td colspan="3"></td> + </tr> <tr> <td colspan="2" class="name">ukt2e7ae3t8gcsxd13wjx2ka7ij</td> <td class="description right">[unique index]</td> @@ -10253,6 +10265,18 @@ td.section { <tr> <td colspan="3"></td> </tr> + <tr> + <td colspan="2" class="name">idxf2q9dqj899h1q8lah5y719nxd</td> + <td class="description right">[non-unique index]</td> + </tr> + <tr> + <td class="spacer"></td> + <td class="minwidth">domain_repo_id</td> + <td class="minwidth">ascending</td> + </tr> + <tr> + <td colspan="3"></td> + </tr> <tr> <td colspan="2" class="name">idxe7wu46c7wpvfmfnj4565abibp</td> <td class="description right">[non-unique index]</td> diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index 9f71b5755..0006aa626 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -162,3 +162,4 @@ V161__rename_console_epp_history_time.sql V162__rename_console_poc_history_time.sql V163__rename_console_registrar_history_time.sql V164__rename_console_user_history_time.sql +V165__add_domain_repo_id_indexes_to_more_tables.sql diff --git a/db/src/main/resources/sql/flyway/V165__add_domain_repo_id_indexes_to_more_tables.sql b/db/src/main/resources/sql/flyway/V165__add_domain_repo_id_indexes_to_more_tables.sql new file mode 100644 index 000000000..410b1584b --- /dev/null +++ b/db/src/main/resources/sql/flyway/V165__add_domain_repo_id_indexes_to_more_tables.sql @@ -0,0 +1,16 @@ +-- Copyright 2024 The Nomulus Authors. All Rights Reserved. +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +CREATE INDEX CONCURRENTLY IF NOT EXISTS IDX69qun5kxt3eux5igrxrqcycv0 ON "DomainHistoryHost" (domain_history_domain_repo_id); +CREATE INDEX CONCURRENTLY IF NOT EXISTS IDXf2q9dqj899h1q8lah5y719nxd ON "PollMessage" (domain_repo_id); diff --git a/db/src/main/resources/sql/schema/db-schema.sql.generated b/db/src/main/resources/sql/schema/db-schema.sql.generated index e44abda33..6fd4bdd99 100644 --- a/db/src/main/resources/sql/schema/db-schema.sql.generated +++ b/db/src/main/resources/sql/schema/db-schema.sql.generated @@ -848,6 +848,7 @@ create index IDXrh4xmrot9bd63o382ow9ltfig on "DomainHistory" (creation_time); create index IDXaro1omfuaxjwmotk3vo00trwm on "DomainHistory" (history_registrar_id); create index IDXsu1nam10cjes9keobapn5jvxj on "DomainHistory" (history_type); create index IDX6w3qbtgce93cal2orjg1tw7b7 on "DomainHistory" (history_modification_time); +create index IDX69qun5kxt3eux5igrxrqcycv0 on "DomainHistoryHost" (domain_history_domain_repo_id); alter table if exists "DomainHistoryHost" add constraint UKt2e7ae3t8gcsxd13wjx2ka7ij unique (domain_history_history_revision_id, domain_history_domain_repo_id, host_repo_id); @@ -869,6 +870,7 @@ create index IDXkkwbwcwvrdkkqothkiye4jiff on "HostHistory" (host_name); create index IDXknk8gmj7s47q56cwpa6rmpt5l on "HostHistory" (history_type); create index IDX67qwkjtlq5q8dv6egtrtnhqi7 on "HostHistory" (history_modification_time); create index IDXlg6a5tp70nch9cp0gc11brc5o on "PackagePromotion" (token); +create index IDXf2q9dqj899h1q8lah5y719nxd on "PollMessage" (domain_repo_id); create index IDXe7wu46c7wpvfmfnj4565abibp on "PollMessage" (registrar_id); create index IDXaydgox62uno9qx8cjlj5lauye on "PollMessage" (event_time); create index premiumlist_name_idx on "PremiumList" (name); diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 44974b6e9..cc0362386 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -1961,6 +1961,13 @@ CREATE INDEX idx5yqacw829y5bm6f7eajsq1cts ON public."UserUpdateHistory" USING bt CREATE INDEX idx67qwkjtlq5q8dv6egtrtnhqi7 ON public."HostHistory" USING btree (history_modification_time); +-- +-- Name: idx69qun5kxt3eux5igrxrqcycv0; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx69qun5kxt3eux5igrxrqcycv0 ON public."DomainHistoryHost" USING btree (domain_history_domain_repo_id); + + -- -- Name: idx6ebt3nwk5ocvnremnhnlkl6ff; Type: INDEX; Schema: public; Owner: - -- @@ -2129,6 +2136,13 @@ CREATE INDEX idxe7wu46c7wpvfmfnj4565abibp ON public."PollMessage" USING btree (r CREATE INDEX idxeokttmxtpq2hohcioe5t2242b ON public."BillingCancellation" USING btree (registrar_id); +-- +-- Name: idxf2q9dqj899h1q8lah5y719nxd; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idxf2q9dqj899h1q8lah5y719nxd ON public."PollMessage" USING btree (domain_repo_id); + + -- -- Name: idxfdk2xpil2x1gh0omt84k2y3o1; Type: INDEX; Schema: public; Owner: - -- diff --git a/db/src/test/java/google/registry/sql/flyway/SchemaTest.java b/db/src/test/java/google/registry/sql/flyway/SchemaTest.java index b4fc834d9..77c15484f 100644 --- a/db/src/test/java/google/registry/sql/flyway/SchemaTest.java +++ b/db/src/test/java/google/registry/sql/flyway/SchemaTest.java @@ -26,6 +26,7 @@ import java.net.URL; import java.nio.charset.StandardCharsets; import java.nio.file.Paths; import org.flywaydb.core.Flyway; +import org.flywaydb.database.postgresql.PostgreSQLConfigurationExtension; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledIfSystemProperty; import org.junit.jupiter.api.condition.EnabledIfSystemProperty; @@ -92,6 +93,10 @@ class SchemaTest { sqlContainer.getJdbcUrl(), sqlContainer.getUsername(), sqlContainer.getPassword()) .load(); + PostgreSQLConfigurationExtension configurationExtension = + flyway.getConfigurationExtension(PostgreSQLConfigurationExtension.class); + configurationExtension.setTransactionalLock(false); + // flyway.migrate() returns the number of newly pushed scripts. This is a variable // number as our schema evolves. assertThat(flyway.migrate().migrations).isNotEmpty(); @@ -123,6 +128,10 @@ class SchemaTest { .dataSource( sqlContainer.getJdbcUrl(), sqlContainer.getUsername(), sqlContainer.getPassword()) .load(); + PostgreSQLConfigurationExtension configurationExtension = + flyway.getConfigurationExtension(PostgreSQLConfigurationExtension.class); + configurationExtension.setTransactionalLock(false); + flyway.migrate(); logger.atInfo().log("Base schema version: %s", flyway.info().current().getVersion()); @@ -133,6 +142,9 @@ class SchemaTest { .dataSource( sqlContainer.getJdbcUrl(), sqlContainer.getUsername(), sqlContainer.getPassword()) .load(); + configurationExtension = + flyway.getConfigurationExtension(PostgreSQLConfigurationExtension.class); + configurationExtension.setTransactionalLock(false); flyway.migrate(); flyway.validate(); logger.atInfo().log("Latest schema version: %s", flyway.info().current().getVersion()); diff --git a/gradle.properties b/gradle.properties index 8a8b84822..d991b10f7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -# This file defines properties used by the gradle build. It must be kept in +# This file defines properties used by the gradle build. It must be kept in # sync with config/nom_build.py. # # To regenerate, run ./nom_build --generate-gradle-properties diff --git a/jetty/gradle.lockfile b/jetty/gradle.lockfile index 318fe72bd..2063ea3c2 100644 --- a/jetty/gradle.lockfile +++ b/jetty/gradle.lockfile @@ -324,6 +324,7 @@ org.codehaus.jackson:jackson-mapper-asl:1.9.13=deploy_jar,runtimeClasspath,testR org.codehaus.mojo:animal-sniffer-annotations:1.23=deploy_jar,runtimeClasspath,testRuntimeClasspath org.conscrypt:conscrypt-openjdk-uber:2.5.2=deploy_jar,runtimeClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=deploy_jar,runtimeClasspath,testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=deploy_jar,runtimeClasspath,testRuntimeClasspath org.glassfish.jaxb:jaxb-runtime:2.3.1=deploy_jar,runtimeClasspath,testRuntimeClasspath org.glassfish.jaxb:txw2:2.3.1=deploy_jar,runtimeClasspath,testRuntimeClasspath org.gwtproject:gwt-user:2.10.0=deploy_jar,runtimeClasspath,testRuntimeClasspath @@ -366,7 +367,7 @@ org.ow2.asm:asm-tree:9.6=jacocoAnt org.ow2.asm:asm-util:7.0=deploy_jar,runtimeClasspath,testRuntimeClasspath org.ow2.asm:asm:9.6=deploy_jar,jacocoAnt,runtimeClasspath,testRuntimeClasspath org.pcollections:pcollections:3.1.4=annotationProcessor,errorprone,testAnnotationProcessor -org.postgresql:postgresql:42.7.3=deploy_jar,runtimeClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=deploy_jar,runtimeClasspath,testRuntimeClasspath org.reflections:reflections:0.10.2=checkstyle org.rnorth.duct-tape:duct-tape:1.0.8=deploy_jar,runtimeClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.1.0-alpha1=deploy_jar,runtimeClasspath,testRuntimeClasspath diff --git a/release/schema-deployer/deploy_sql_schema.sh b/release/schema-deployer/deploy_sql_schema.sh index 898acea2d..0936a3cc0 100755 --- a/release/schema-deployer/deploy_sql_schema.sh +++ b/release/schema-deployer/deploy_sql_schema.sh @@ -78,7 +78,8 @@ if ! pgrep cloud_sql_proxy; then exit 1 fi -/flyway/flyway -community -user=${db_user} -password=${db_password} \ +/flyway/flyway -postgresql.transactional.lock=false -community \ + -user=${db_user} -password=${db_password} \ -url=jdbc:postgresql://localhost:5432/postgres \ -locations=classpath:sql/flyway \ ${flyway_action} diff --git a/services/backend/gradle.lockfile b/services/backend/gradle.lockfile index 90a39b3f7..b89ab53ce 100644 --- a/services/backend/gradle.lockfile +++ b/services/backend/gradle.lockfile @@ -304,6 +304,7 @@ org.codehaus.jackson:jackson-mapper-asl:1.9.13=compileClasspath,runtimeClasspath org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath,testRuntimeClasspath org.conscrypt:conscrypt-openjdk-uber:2.5.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:jaxb-runtime:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:txw2:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.gwtproject:gwt-user:2.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath @@ -338,7 +339,7 @@ org.ow2.asm:asm-tree:9.2=compileClasspath,runtimeClasspath,testCompileClasspath, org.ow2.asm:asm-util:7.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm:9.2=compileClasspath,testCompileClasspath org.ow2.asm:asm:9.6=runtimeClasspath,testRuntimeClasspath -org.postgresql:postgresql:42.7.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.rnorth.duct-tape:duct-tape:1.0.8=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-jdk14:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath diff --git a/services/bsa/gradle.lockfile b/services/bsa/gradle.lockfile index 90a39b3f7..b89ab53ce 100644 --- a/services/bsa/gradle.lockfile +++ b/services/bsa/gradle.lockfile @@ -304,6 +304,7 @@ org.codehaus.jackson:jackson-mapper-asl:1.9.13=compileClasspath,runtimeClasspath org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath,testRuntimeClasspath org.conscrypt:conscrypt-openjdk-uber:2.5.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:jaxb-runtime:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:txw2:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.gwtproject:gwt-user:2.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath @@ -338,7 +339,7 @@ org.ow2.asm:asm-tree:9.2=compileClasspath,runtimeClasspath,testCompileClasspath, org.ow2.asm:asm-util:7.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm:9.2=compileClasspath,testCompileClasspath org.ow2.asm:asm:9.6=runtimeClasspath,testRuntimeClasspath -org.postgresql:postgresql:42.7.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.rnorth.duct-tape:duct-tape:1.0.8=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-jdk14:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath diff --git a/services/default/gradle.lockfile b/services/default/gradle.lockfile index 90a39b3f7..b89ab53ce 100644 --- a/services/default/gradle.lockfile +++ b/services/default/gradle.lockfile @@ -304,6 +304,7 @@ org.codehaus.jackson:jackson-mapper-asl:1.9.13=compileClasspath,runtimeClasspath org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath,testRuntimeClasspath org.conscrypt:conscrypt-openjdk-uber:2.5.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:jaxb-runtime:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:txw2:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.gwtproject:gwt-user:2.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath @@ -338,7 +339,7 @@ org.ow2.asm:asm-tree:9.2=compileClasspath,runtimeClasspath,testCompileClasspath, org.ow2.asm:asm-util:7.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm:9.2=compileClasspath,testCompileClasspath org.ow2.asm:asm:9.6=runtimeClasspath,testRuntimeClasspath -org.postgresql:postgresql:42.7.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.rnorth.duct-tape:duct-tape:1.0.8=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-jdk14:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath diff --git a/services/pubapi/gradle.lockfile b/services/pubapi/gradle.lockfile index 90a39b3f7..b89ab53ce 100644 --- a/services/pubapi/gradle.lockfile +++ b/services/pubapi/gradle.lockfile @@ -304,6 +304,7 @@ org.codehaus.jackson:jackson-mapper-asl:1.9.13=compileClasspath,runtimeClasspath org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath,testRuntimeClasspath org.conscrypt:conscrypt-openjdk-uber:2.5.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:jaxb-runtime:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:txw2:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.gwtproject:gwt-user:2.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath @@ -338,7 +339,7 @@ org.ow2.asm:asm-tree:9.2=compileClasspath,runtimeClasspath,testCompileClasspath, org.ow2.asm:asm-util:7.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm:9.2=compileClasspath,testCompileClasspath org.ow2.asm:asm:9.6=runtimeClasspath,testRuntimeClasspath -org.postgresql:postgresql:42.7.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.rnorth.duct-tape:duct-tape:1.0.8=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-jdk14:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath diff --git a/services/tools/gradle.lockfile b/services/tools/gradle.lockfile index 90a39b3f7..b89ab53ce 100644 --- a/services/tools/gradle.lockfile +++ b/services/tools/gradle.lockfile @@ -304,6 +304,7 @@ org.codehaus.jackson:jackson-mapper-asl:1.9.13=compileClasspath,runtimeClasspath org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath,testRuntimeClasspath org.conscrypt:conscrypt-openjdk-uber:2.5.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.flywaydb:flyway-core:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.flywaydb:flyway-database-postgresql:10.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:jaxb-runtime:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.glassfish.jaxb:txw2:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.gwtproject:gwt-user:2.10.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath @@ -338,7 +339,7 @@ org.ow2.asm:asm-tree:9.2=compileClasspath,runtimeClasspath,testCompileClasspath, org.ow2.asm:asm-util:7.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm:9.2=compileClasspath,testCompileClasspath org.ow2.asm:asm:9.6=runtimeClasspath,testRuntimeClasspath -org.postgresql:postgresql:42.7.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.postgresql:postgresql:42.7.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.rnorth.duct-tape:duct-tape:1.0.8=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:slf4j-jdk14:2.1.0-alpha1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath