Skip to content

Commit 592a4b1

Browse files
committed
Merge branch 'main' into gfe_latency
2 parents 5262081 + 1f143a4 commit 592a4b1

File tree

8 files changed

+27
-27
lines changed

8 files changed

+27
-27
lines changed

.github/workflows/hermetic_library_generation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
40-
- uses: googleapis/sdk-platform-java/.github/scripts@v2.51.1
40+
- uses: googleapis/sdk-platform-java/.github/scripts@v2.52.0
4141
if: env.SHOULD_RUN == 'true'
4242
with:
4343
base_ref: ${{ github.base_ref }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you are using Maven without the BOM, add this to your dependencies:
4949
If you are using Gradle 5.x or later, add this to your dependencies:
5050

5151
```Groovy
52-
implementation platform('com.google.cloud:libraries-bom:26.52.0')
52+
implementation platform('com.google.cloud:libraries-bom:26.53.0')
5353
5454
implementation 'com.google.cloud:google-cloud-spanner'
5555
```

generation_config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
gapic_generator_version: 2.51.1
2-
googleapis_commitish: d581bbe1a66ad2e47eda2beebf6200f23b766ca9
3-
libraries_bom_version: 26.52.0
1+
gapic_generator_version: 2.52.0
2+
googleapis_commitish: 280725e991516d4a0f136268faf5aa6d32d21b54
3+
libraries_bom_version: 26.53.0
44
libraries:
55
- api_shortname: spanner
66
name_pretty: Cloud Spanner

google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractResultSet.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ abstract class AbstractResultSet<R> extends AbstractStructReader implements Resu
4848
interface Listener {
4949
/**
5050
* Called when transaction metadata is seen. This method may be invoked at most once. If the
51-
* method is invoked, it will precede {@link #onError(SpannerException)} or {@link #onDone()}.
51+
* method is invoked, it will precede {@link #onError(SpannerException,boolean)} or {@link
52+
* #onDone(boolean)}.
5253
*/
5354
void onTransactionMetadata(Transaction transaction, boolean shouldIncludeId)
5455
throws SpannerException;
@@ -160,7 +161,7 @@ default boolean initiateStreaming(AsyncResultSet.StreamMessageListener streamMes
160161
}
161162

162163
/** it requests the initial prefetch chunks from gRPC stream */
163-
default void requestPrefetchChunks() {};
164+
default void requestPrefetchChunks() {}
164165
}
165166

166167
static double valueProtoToFloat64(com.google.protobuf.Value proto) {

google-cloud-spanner/src/test/java/com/google/cloud/spanner/GceTestEnvConfig.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public class GceTestEnvConfig implements TestEnvConfig {
5959

6060
public GceTestEnvConfig() {
6161
String projectId = System.getProperty(GCE_PROJECT_ID, "");
62-
projectId = "span-cloud-testing";
6362
String serverUrl = System.getProperty(GCE_SERVER_URL, "");
6463
String credentialsFile = System.getProperty(GCE_CREDENTIALS_FILE, "");
6564
double errorProbability =
@@ -84,22 +83,22 @@ public GceTestEnvConfig() {
8483
throw new RuntimeException(e);
8584
}
8685
}
87-
// SpannerInterceptorProvider interceptorProvider =
88-
// SpannerInterceptorProvider.createDefault().with(new GrpcErrorInjector(errorProbability));
89-
// if (attemptDirectPath) {
90-
// interceptorProvider =
91-
// interceptorProvider.with(new DirectPathAddressCheckInterceptor(directPathTestScenario));
92-
// }
93-
// builder.setInterceptorProvider(interceptorProvider);
86+
SpannerInterceptorProvider interceptorProvider =
87+
SpannerInterceptorProvider.createDefault().with(new GrpcErrorInjector(errorProbability));
88+
if (attemptDirectPath) {
89+
interceptorProvider =
90+
interceptorProvider.with(new DirectPathAddressCheckInterceptor(directPathTestScenario));
91+
}
92+
builder.setInterceptorProvider(interceptorProvider);
9493
// DirectPath tests need to set a custom endpoint to the ChannelProvider
9594
InstantiatingGrpcChannelProvider.Builder customChannelProviderBuilder =
9695
InstantiatingGrpcChannelProvider.newBuilder();
9796
if (attemptDirectPath) {
9897
customChannelProviderBuilder
9998
.setEndpoint(DIRECT_PATH_ENDPOINT)
10099
.setAttemptDirectPath(true)
101-
.setAttemptDirectPathXds();
102-
// .setInterceptorProvider(interceptorProvider);
100+
.setAttemptDirectPathXds()
101+
.setInterceptorProvider(interceptorProvider);
103102
builder.setChannelProvider(customChannelProviderBuilder.build());
104103
}
105104
options = builder.build();

proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CrontabSpec.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
7676
* <pre>
7777
* Required. Textual representation of the crontab. User can customize the
7878
* backup frequency and the backup version time using the cron
79-
* expression. The version time must be in UTC timzeone.
79+
* expression. The version time must be in UTC timezone.
8080
*
8181
* The backup will contain an externally consistent copy of the
8282
* database at the version time. Allowed frequencies are 12 hour, 1 day,
@@ -110,7 +110,7 @@ public java.lang.String getText() {
110110
* <pre>
111111
* Required. Textual representation of the crontab. User can customize the
112112
* backup frequency and the backup version time using the cron
113-
* expression. The version time must be in UTC timzeone.
113+
* expression. The version time must be in UTC timezone.
114114
*
115115
* The backup will contain an externally consistent copy of the
116116
* database at the version time. Allowed frequencies are 12 hour, 1 day,
@@ -684,7 +684,7 @@ public Builder mergeFrom(
684684
* <pre>
685685
* Required. Textual representation of the crontab. User can customize the
686686
* backup frequency and the backup version time using the cron
687-
* expression. The version time must be in UTC timzeone.
687+
* expression. The version time must be in UTC timezone.
688688
*
689689
* The backup will contain an externally consistent copy of the
690690
* database at the version time. Allowed frequencies are 12 hour, 1 day,
@@ -717,7 +717,7 @@ public java.lang.String getText() {
717717
* <pre>
718718
* Required. Textual representation of the crontab. User can customize the
719719
* backup frequency and the backup version time using the cron
720-
* expression. The version time must be in UTC timzeone.
720+
* expression. The version time must be in UTC timezone.
721721
*
722722
* The backup will contain an externally consistent copy of the
723723
* database at the version time. Allowed frequencies are 12 hour, 1 day,
@@ -750,7 +750,7 @@ public com.google.protobuf.ByteString getTextBytes() {
750750
* <pre>
751751
* Required. Textual representation of the crontab. User can customize the
752752
* backup frequency and the backup version time using the cron
753-
* expression. The version time must be in UTC timzeone.
753+
* expression. The version time must be in UTC timezone.
754754
*
755755
* The backup will contain an externally consistent copy of the
756756
* database at the version time. Allowed frequencies are 12 hour, 1 day,
@@ -782,7 +782,7 @@ public Builder setText(java.lang.String value) {
782782
* <pre>
783783
* Required. Textual representation of the crontab. User can customize the
784784
* backup frequency and the backup version time using the cron
785-
* expression. The version time must be in UTC timzeone.
785+
* expression. The version time must be in UTC timezone.
786786
*
787787
* The backup will contain an externally consistent copy of the
788788
* database at the version time. Allowed frequencies are 12 hour, 1 day,
@@ -810,7 +810,7 @@ public Builder clearText() {
810810
* <pre>
811811
* Required. Textual representation of the crontab. User can customize the
812812
* backup frequency and the backup version time using the cron
813-
* expression. The version time must be in UTC timzeone.
813+
* expression. The version time must be in UTC timezone.
814814
*
815815
* The backup will contain an externally consistent copy of the
816816
* database at the version time. Allowed frequencies are 12 hour, 1 day,

proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CrontabSpecOrBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface CrontabSpecOrBuilder
3030
* <pre>
3131
* Required. Textual representation of the crontab. User can customize the
3232
* backup frequency and the backup version time using the cron
33-
* expression. The version time must be in UTC timzeone.
33+
* expression. The version time must be in UTC timezone.
3434
*
3535
* The backup will contain an externally consistent copy of the
3636
* database at the version time. Allowed frequencies are 12 hour, 1 day,
@@ -53,7 +53,7 @@ public interface CrontabSpecOrBuilder
5353
* <pre>
5454
* Required. Textual representation of the crontab. User can customize the
5555
* backup frequency and the backup version time using the cron
56-
* expression. The version time must be in UTC timzeone.
56+
* expression. The version time must be in UTC timezone.
5757
*
5858
* The backup will contain an externally consistent copy of the
5959
* database at the version time. Allowed frequencies are 12 hour, 1 day,

proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup_schedule.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ message BackupSchedule {
100100
message CrontabSpec {
101101
// Required. Textual representation of the crontab. User can customize the
102102
// backup frequency and the backup version time using the cron
103-
// expression. The version time must be in UTC timzeone.
103+
// expression. The version time must be in UTC timezone.
104104
//
105105
// The backup will contain an externally consistent copy of the
106106
// database at the version time. Allowed frequencies are 12 hour, 1 day,

0 commit comments

Comments
 (0)