From 967d3d033f1bfc1b3224d0497983aad78d869bb3 Mon Sep 17 00:00:00 2001 From: Robert Wang Date: Fri, 24 Jun 2022 08:06:12 -0700 Subject: [PATCH 1/4] Remove the statement of session number limits Cloud Spanner no longer has the 10K "Sessions per database per node" limit. --- .../src/main/java/com/google/cloud/spanner/Session.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java index 697521554e9..7f69d551720 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java @@ -28,10 +28,10 @@ * read-write/write-only transactions, create multiple sessions. Note that standalone reads and * queries use a transaction internally, and count toward the one transaction limit. * - *

Cloud Spanner limits the number of sessions that can exist at any given time; thus, it is a - * good idea to delete idle and/or unneeded sessions. Aside from explicit deletes, Cloud Spanner can - * delete sessions for which no operations are sent for more than an hour, or due to internal - * errors. If a session is deleted, requests to it return {@link ErrorCode#NOT_FOUND}. + *

It is a good idea to delete idle and/or unneeded sessions. Aside from explicit deletes, + * Cloud Spanner can delete sessions for which no operations are sent for more than an hour, + * or due to internal errors. If a session is deleted, requests to it return + * {@link ErrorCode#NOT_FOUND}. * *

Idle sessions can be kept alive by sending a trivial SQL query periodically, for example, * {@code SELECT 1}. From b2eeed8902c2fb01e0ceafb1419fbb0470e13ed3 Mon Sep 17 00:00:00 2001 From: ansh0l Date: Wed, 3 Aug 2022 10:52:19 +0530 Subject: [PATCH 2/4] fix: remote extra whitespace --- .../src/main/java/com/google/cloud/spanner/Session.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java index 7f69d551720..512e5736bdd 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java @@ -31,7 +31,7 @@ *

It is a good idea to delete idle and/or unneeded sessions. Aside from explicit deletes, * Cloud Spanner can delete sessions for which no operations are sent for more than an hour, * or due to internal errors. If a session is deleted, requests to it return - * {@link ErrorCode#NOT_FOUND}. + * {@link ErrorCode#NOT_FOUND}. * *

Idle sessions can be kept alive by sending a trivial SQL query periodically, for example, * {@code SELECT 1}. From 3619175b0afbaaa4f8e2cdd70b01ee95c7b99a0b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 12 Oct 2022 05:50:05 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 6 +++--- .../src/main/java/com/google/cloud/spanner/Session.java | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 62e0b317c72..d5f831d5004 100644 --- a/README.md +++ b/README.md @@ -49,20 +49,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.0.0') +implementation platform('com.google.cloud:libraries-bom:26.1.3') implementation 'com.google.cloud:google-cloud-spanner' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.26.0' +implementation 'com.google.cloud:google-cloud-spanner:6.31.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.31.2" ``` ## Authentication diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java index 512e5736bdd..d322e0fb6d0 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Session.java @@ -28,10 +28,9 @@ * read-write/write-only transactions, create multiple sessions. Note that standalone reads and * queries use a transaction internally, and count toward the one transaction limit. * - *

It is a good idea to delete idle and/or unneeded sessions. Aside from explicit deletes, - * Cloud Spanner can delete sessions for which no operations are sent for more than an hour, - * or due to internal errors. If a session is deleted, requests to it return - * {@link ErrorCode#NOT_FOUND}. + *

It is a good idea to delete idle and/or unneeded sessions. Aside from explicit deletes, Cloud + * Spanner can delete sessions for which no operations are sent for more than an hour, or due to + * internal errors. If a session is deleted, requests to it return {@link ErrorCode#NOT_FOUND}. * *

Idle sessions can be kept alive by sending a trivial SQL query periodically, for example, * {@code SELECT 1}. From ac292003e94d65b0fe9464597153ca1f4acc921a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 17 Nov 2022 16:11:50 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fad7a98ef09..620ea87532b 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.32.0' +implementation 'com.google.cloud:google-cloud-spanner:6.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.33.0" ``` ## Authentication