Skip to content

Commit 99548bd

Browse files
authored
Merge branch 'master' into skip-spannertests
2 parents c6fc698 + e927f2d commit 99548bd

File tree

54 files changed

+3224
-598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3224
-598
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run.",
3-
"modification": 34
3+
"pr": "36271",
4+
"modification": 35
45
}
56

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run",
3-
"modification": 5
3+
"modification": 0
44
}

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
## Bugfixes
8686

8787
* Fixed FirestoreV1 Beam connectors allow configuring inconsistent project/database IDs between RPC requests and routing headers #36895 (Java) ([#36895](https://github.com/apache/beam/issues/36895)).
88+
Logical type and coder registry are saved for pipelines in the case of default pickler. This fixes a side effect of switching to cloudpickle as default pickler in Beam 2.65.0 (Python) ([#35738](https://github.com/apache/beam/issues/35738)).
8889

8990
## Known Issues
9091

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ tasks.register("javaPreCommit") {
322322
dependsOn(":sdks:java:io:xml:build")
323323
dependsOn(":sdks:java:javadoc:allJavadoc")
324324
dependsOn(":sdks:java:managed:build")
325+
dependsOn("sdks:java:ml:inference:remote:build")
326+
dependsOn("sdks:java:ml:inference:openai:build")
325327
dependsOn(":sdks:java:testing:expansion-service:build")
326328
dependsOn(":sdks:java:testing:jpms-tests:build")
327329
dependsOn(":sdks:java:testing:junit:build")

buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ class BeamModulePlugin implements Plugin<Project> {
612612
def google_ads_version = "33.0.0"
613613
def google_clients_version = "2.0.0"
614614
def google_cloud_bigdataoss_version = "2.2.26"
615-
// [bomupgrader] TODO(#35868): currently pinned, should be determined by: com.google.cloud:google-cloud-spanner, consistent with: google_cloud_platform_libraries_bom
616-
def google_cloud_spanner_version = "6.95.1"
615+
// [bomupgrader] TODO(#37008): currently pinned before gcp-bom moving beyond this version, should be determined by: com.google.cloud:google-cloud-spanner, consistent with: google_cloud_platform_libraries_bom
616+
def google_cloud_spanner_version = "6.104.0"
617617
def google_code_gson_version = "2.10.1"
618618
def google_oauth_clients_version = "1.34.1"
619619
// [bomupgrader] determined by: io.grpc:grpc-netty, consistent with: google_cloud_platform_libraries_bom

model/fn-execution/src/main/proto/org/apache/beam/model/fn_execution/v1/beam_fn_api.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,15 @@ message Elements {
761761
// extensible and backward compatible
762762
message ElementMetadata {
763763
optional DrainMode.Enum drain = 1;
764+
// (Optional) As part of https://www.w3.org/TR/trace-context/ we are forwarding a trace and participating in it.
765+
// Traceparent header represents the incoming request in a tracing system in a common format.
766+
// Example value: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01
767+
optional string traceparent = 2;
768+
// (Optional) tracestate extends traceparent with open telemetry data represented by a set of name/value pairs.
769+
// Format specified https://www.w3.org/TR/trace-context/#list for interoperability and commonly used
770+
// across IOs - Kafka, PubSub, http.
771+
// Example value: congo=t61rcWkgMzE
772+
optional string tracestate = 3;
764773
}
765774

766775
// Represent the encoded user timer for a given instruction, transform and

runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/WindmillSink.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,15 @@ public long add(WindowedValue<T> data) throws IOException {
264264
}
265265
}
266266

267-
Windmill.KeyedMessageBundle.Builder keyedOutput = productionMap.get(key);
268-
if (keyedOutput == null) {
269-
keyedOutput = Windmill.KeyedMessageBundle.newBuilder().setKey(key);
270-
productionMap.put(key, keyedOutput);
271-
}
267+
Windmill.KeyedMessageBundle.Builder keyedOutput =
268+
productionMap.computeIfAbsent(
269+
key,
270+
(k) -> {
271+
Windmill.KeyedMessageBundle.Builder builder =
272+
Windmill.KeyedMessageBundle.newBuilder();
273+
builder.setKey(k);
274+
return builder;
275+
});
272276

273277
try {
274278
messageBuilder

sdks/java/core/src/test/java/org/apache/beam/sdk/fn/splittabledofn/RestrictionTrackersTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private static class RestrictionTrackerWithProgress extends RestrictionTracker<O
102102
implements HasProgress {
103103
private boolean blockTryClaim;
104104
private boolean blockTrySplit;
105-
private boolean isBlocked;
105+
private volatile boolean isBlocked;
106106
public static final Progress REPORT_PROGRESS = Progress.from(2.0, 3.0);
107107

108108
public RestrictionTrackerWithProgress() {

sdks/java/extensions/ml/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ applyJavaNature(
2626
)
2727

2828
description = 'Apache Beam :: SDKs :: Java :: Extensions :: ML'
29+
ext.summary = """beam-sdks-java-extensions-ml provides Apache Beam Java SDK machine learning integration with Google Cloud AI Video Intelligence service. For machine learning run inference modules, see beam-sdks-java-ml-reference-* artifacts."""
2930

3031
dependencies {
3132
implementation project(path: ":sdks:java:core", configuration: "shadow")

sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/SpannerChangeStreamErrorTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
import org.joda.time.Duration;
7171
import org.junit.After;
7272
import org.junit.Before;
73+
import org.junit.Ignore;
7374
import org.junit.Rule;
7475
import org.junit.Test;
7576
import org.junit.rules.ExpectedException;
@@ -115,6 +116,7 @@ public void tearDown() throws NoSuchFieldException, IllegalAccessException {
115116
}
116117

117118
@Test
119+
@Ignore("https://github.com/apache/beam/issues/37002 Re-enable skipped tests.")
118120
// Error code UNAVAILABLE is retried repeatedly until the RPC times out.
119121
public void testUnavailableExceptionRetries() throws InterruptedException {
120122
DirectOptions options = PipelineOptionsFactory.as(DirectOptions.class);
@@ -155,6 +157,7 @@ public void testUnavailableExceptionRetries() throws InterruptedException {
155157
}
156158

157159
@Test
160+
@Ignore("https://github.com/apache/beam/issues/37002 Re-enable skipped tests.")
158161
// Error code ABORTED is retried repeatedly until it times out.
159162
public void testAbortedExceptionRetries() throws InterruptedException {
160163
mockSpannerService.setExecuteStreamingSqlExecutionTime(
@@ -218,6 +221,7 @@ public void testUnknownExceptionDoesNotRetry() {
218221
}
219222

220223
@Test
224+
@Ignore("https://github.com/apache/beam/issues/37002 Re-enable skipped tests.")
221225
// Error code RESOURCE_EXHAUSTED is retried repeatedly.
222226
public void testResourceExhaustedRetry() {
223227
mockSpannerService.setExecuteStreamingSqlExecutionTime(
@@ -281,6 +285,7 @@ public void testResourceExhaustedRetryWithDefaultSettings() {
281285
}
282286

283287
@Test
288+
@Ignore("https://github.com/apache/beam/issues/37002 Re-enable skipped tests.")
284289
public void testInvalidRecordReceived() {
285290
final Timestamp startTimestamp = Timestamp.ofTimeSecondsAndNanos(0, 1000);
286291
final Timestamp endTimestamp =

0 commit comments

Comments
 (0)