Skip to content

Commit c5f3297

Browse files
deps: update dependency com.google.cloud:google-cloud-spanner-bom to v6.89.0 (#1961)
* deps: update dependency com.google.cloud:google-cloud-spanner-bom to v6.89.0 * chore: update test cases and regenerate documentation The Spanner client now also uses a multiplexed session to determine the database dialect that is in use. This means that BatchCreateSessions is not being called at all in many cases. Also re-generates the connection properties documentation. The typo in the description of the new connection property must be fixed in the Spanner client, as the list here is generated based on the source in the client. * chore: run code formatter --------- Co-authored-by: Knut Olav Løite <[email protected]>
1 parent 37fca7b commit c5f3297

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

documentation/connection_properties.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The 'Context' value indicates whether the property can only be set when a connec
3131
| enableextendedtracing | Include the SQL string in the OpenTelemetry traces that are generated by this connection. The SQL string is added as the standard OpenTelemetry attribute 'db.statement'. | | true, false | STARTUP |
3232
| encodedcredentials | Base64-encoded credentials to use for this connection. If neither this property or a credentials location are set, the connection will use the default Google Cloud credentials for the runtime environment. | | | STARTUP |
3333
| endpoint | The endpoint that the JDBC driver should connect to. The default is the default Spanner production endpoint when autoConfigEmulator=false, and the default Spanner emulator endpoint (localhost:9010) when autoConfigEmulator=true. This property takes precedence over any host name at the start of the connection URL. | | | STARTUP |
34+
| isexperimentalhost | Set this value to true for communication with a Experimental Host. | false | true, false | STARTUP |
3435
| keeptransactionalive | Enabling this option will trigger the connection to keep read/write transactions alive by executing a SELECT 1 query once every 10 seconds if no other statements are being executed. This option should be used with caution, as it can keep transactions alive and hold on to locks longer than intended. This option should typically be used for CLI-type application that might wait for user input for a longer period of time. | false | true, false | USER |
3536
| lenient | Silently ignore unknown properties in the connection string/properties (true/false) | false | true, false | STARTUP |
3637
| maxcommitdelay | The max delay that Spanner may apply to commit requests to improve throughput. | | | USER |

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<dependency>
6262
<groupId>com.google.cloud</groupId>
6363
<artifactId>google-cloud-spanner-bom</artifactId>
64-
<version>6.88.0</version>
64+
<version>6.89.0</version>
6565
<type>pom</type>
6666
<scope>import</scope>
6767
</dependency>

samples/spring-data-jdbc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>com.google.cloud</groupId>
3232
<artifactId>google-cloud-spanner-bom</artifactId>
33-
<version>6.88.0</version>
33+
<version>6.89.0</version>
3434
<scope>import</scope>
3535
<type>pom</type>
3636
</dependency>

src/test/java/com/google/cloud/spanner/jdbc/JdbcGrpcErrorTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,7 @@ public void transactionalCreateSession() throws SQLException {
430430

431431
@Test
432432
public void readOnlyCreateSession() throws SQLException {
433-
mockSpanner.setBatchCreateSessionsExecutionTime(
434-
SimulatedExecutionTime.ofException(serverException));
433+
mockSpanner.setCreateSessionExecutionTime(SimulatedExecutionTime.ofException(serverException));
435434
try (java.sql.Connection connection = createConnection()) {
436435
connection.setAutoCommit(false);
437436
connection.setReadOnly(true);

src/test/java/com/google/cloud/spanner/jdbc/MultiplexedSessionsMockServerTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@ public void testUsesMultiplexedSessionInCombinationWithSessionPoolOptions() thro
205205
CreateSessionRequest request = mockSpanner.getRequestsOfType(CreateSessionRequest.class).get(0);
206206
assertTrue(request.getSession().getMultiplexed());
207207
// There should be no regular sessions in use.
208-
// However, the query that detects the dialect that is used, uses a regular session.
209-
// This should be fixed in the Java client.
210-
assertEquals(1, mockSpanner.countRequestsOfType(BatchCreateSessionsRequest.class));
208+
assertEquals(0, mockSpanner.countRequestsOfType(BatchCreateSessionsRequest.class));
211209
}
212210
}

0 commit comments

Comments
 (0)