Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
7 changes: 0 additions & 7 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ branchProtectionRules:
- units (8)
- units (11)
- 'Kokoro - Test: Integration'
- 'Kokoro - Test: Integration with Multiplexed Sessions'
- cla/google
- checkstyle
- compile (8)
- compile (11)
- units-with-multiplexed-session (8)
- units-with-multiplexed-session (11)
- unmanaged_dependency_check
- library_generation
- pattern: 3.3.x
Expand Down Expand Up @@ -154,7 +151,6 @@ branchProtectionRules:
- units (8)
- units (11)
- 'Kokoro - Test: Integration'
- 'Kokoro - Test: Integration with Multiplexed Sessions'
- cla/google
- checkstyle
- compile (8)
Expand All @@ -173,7 +169,6 @@ branchProtectionRules:
- units (8)
- units (11)
- 'Kokoro - Test: Integration'
- 'Kokoro - Test: Integration with Multiplexed Sessions'
- cla/google
- checkstyle
- compile (8)
Expand All @@ -194,7 +189,6 @@ branchProtectionRules:
- units (8)
- units (11)
- 'Kokoro - Test: Integration'
- 'Kokoro - Test: Integration with Multiplexed Sessions'
- cla/google
- checkstyle
- compile (8)
Expand All @@ -215,7 +209,6 @@ branchProtectionRules:
- units (8)
- units (11)
- 'Kokoro - Test: Integration'
- 'Kokoro - Test: Integration with Multiplexed Sessions'
- cla/google
- checkstyle
- compile (8)
Expand Down
77 changes: 0 additions & 77 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,6 @@ jobs:
- run: .kokoro/build.sh
env:
JOB_TYPE: test
units-with-multiplexed-session:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 11, 17, 21 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: test
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS: true
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW: true
units-with-regular-session:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 11, 17, 21 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: test
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: false
units-java8:
# Building using Java 17 and run the tests with Java 8 runtime
name: "units (8)"
Expand All @@ -90,48 +55,6 @@ jobs:
- run: .kokoro/build.sh
env:
JOB_TYPE: test
units-with-multiplexed-session8:
# Building using Java 17 and run the tests with Java 8 runtime
name: "units-with-multiplexed-session (8)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- run: .kokoro/build.sh
env:
JOB_TYPE: test
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: true
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS: true
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW: true
units-with-regular-session8:
# Building using Java 17 and run the tests with Java 8 runtime
name: "units-with-regular-session (8)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- run: .kokoro/build.sh
env:
JOB_TYPE: test
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: false
windows:
runs-on: windows-latest
steps:
Expand Down

This file was deleted.

15 changes: 0 additions & 15 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,6 @@ integration)
verify
RETURN_CODE=$?
;;
integration-regular-sessions)
mvn -B ${INTEGRATION_TEST_ARGS} \
-ntp \
-Penable-integration-tests \
-Djava.net.preferIPv4Stack=true \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.main.skip=true \
-Dspanner.gce.config.project_id=gcloud-devel \
-Dspanner.testenv.instance=projects/gcloud-devel/instances/java-client-integration-tests-regular-sessions \
-fae \
verify
RETURN_CODE=$?
;;
integration-directpath-enabled)
mvn -B ${INTEGRATION_TEST_ARGS} \
-ntp \
Expand Down
48 changes: 0 additions & 48 deletions .kokoro/presubmit/integration-regular-sessions-enabled.cfg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
abstract class AbstractMultiplexedSessionDatabaseClient implements DatabaseClient {

@Override
public String getDatabaseRole() {
throw new UnsupportedOperationException();
}

@Override
public Timestamp writeAtLeastOnce(Iterable<Mutation> mutations) throws SpannerException {
return writeAtLeastOnceWithOptions(mutations).getCommitTimestamp();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,6 @@ private List<Partition> partitionReadUsingIndex(
}
return partitions.build();
} catch (SpannerException e) {
if (!isFallback && maybeMarkUnimplementedForPartitionedOps(e)) {
return partitionReadUsingIndex(
partitionOptions, table, index, keys, columns, true, option);
}
e.setRequestId(reqId);
throw e;
}
Expand Down Expand Up @@ -330,32 +326,11 @@ private List<Partition> partitionQuery(
}
return partitions.build();
} catch (SpannerException e) {
if (!isFallback && maybeMarkUnimplementedForPartitionedOps(e)) {
return partitionQuery(partitionOptions, statement, true, option);
}
e.setRequestId(reqId);
throw e;
}
}

boolean maybeMarkUnimplementedForPartitionedOps(SpannerException spannerException) {
if (MultiplexedSessionDatabaseClient.verifyErrorMessage(
spannerException, "Partitioned operations are not supported with multiplexed sessions")) {
synchronized (fallbackInitiated) {
if (!fallbackInitiated.get()) {
session.setFallbackSessionReference(
sessionClient.createSession().getSessionReference());
sessionName = session.getName();
initFallbackTransaction();
unimplementedForPartitionedOps.set(true);
fallbackInitiated.set(true);
}
return true;
}
}
return false;
}

@Override
public ResultSet execute(Partition partition) throws SpannerException {
if (partition.getStatement() != null) {
Expand Down
Loading