Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from Azure:main #947

Merged
merged 17 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
0430452
Increment package versions for servicefabricmanagedclusters releases …
azure-sdk Dec 16, 2024
fd2e1bf
Fix bug: Property does not work when setting jms pool disabled (#43373)
moarychan Dec 16, 2024
b731a31
mgmt, playwrighttesting, add live tests (#43414)
v-hongli1 Dec 16, 2024
5526c62
[Automation] Generate Fluent Lite from TypeSpec deviceregistry (#43409)
azure-sdk Dec 16, 2024
190305b
[Automation] Generate Fluent Lite from TypeSpec iotoperations (#43411)
azure-sdk Dec 16, 2024
9655620
Increment package versions for iotoperations releases (#43419)
azure-sdk Dec 16, 2024
0ba2745
Increment package versions for deviceregistry releases (#43421)
azure-sdk Dec 16, 2024
3a773c2
Harden VertxRequestWriteSubsriber (#43402)
alzimmermsft Dec 16, 2024
509c877
Add additional convenience APIs to JSON model structure (#42951)
alzimmermsft Dec 16, 2024
d5391c9
Document Intelligence changelog updates (#43401)
samvaity Dec 16, 2024
cc996b6
Update for minor test fix (#43436)
samvaity Dec 17, 2024
7846b1d
[Automation] Generate Fluent Lite from Swagger datafactory#package-20…
azure-sdk Dec 17, 2024
5c7b26b
Fix broken links document intelligence (#43438)
samvaity Dec 17, 2024
bb912d5
Increment package versions for datafactory releases (#43443)
azure-sdk Dec 17, 2024
7a333b8
Merge to main after spring cloud azure 5.19.0 released (#43442)
Netyyyy Dec 17, 2024
7911bf2
update spring-reference.yml (#43446)
Netyyyy Dec 17, 2024
988f80e
[Automation] Generate SDK based on TypeSpec 0.27.1 (#43449)
azure-sdk Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions eng/emitter-package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-java": "0.27.0"
"@azure-tools/typespec-java": "0.27.1"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.49.0",
Expand Down
114 changes: 57 additions & 57 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,60 +211,60 @@ com.azure:identity-test-webapp;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-ai-vision-face;1.0.0-beta.2;1.0.0-beta.3
com.azure.spring:azure-monitor-spring-native;1.0.0-beta.1;1.0.0-beta.1
com.azure.spring:azure-monitor-spring-native-test;1.0.0-beta.1;1.0.0-beta.1
com.azure.spring:spring-cloud-azure-appconfiguration-config-web;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-appconfiguration-config;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-feature-management-web;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-feature-management;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-appconfiguration-config;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-dependencies;5.18.0;5.19.0-beta.1
com.azure.spring:spring-messaging-azure;5.18.0;5.19.0-beta.1
com.azure.spring:spring-messaging-azure-eventhubs;5.18.0;5.19.0-beta.1
com.azure.spring:spring-messaging-azure-servicebus;5.18.0;5.19.0-beta.1
com.azure.spring:spring-messaging-azure-storage-queue;5.18.0;5.19.0-beta.1
com.azure.spring:spring-integration-azure-core;5.18.0;5.19.0-beta.1
com.azure.spring:spring-integration-azure-eventhubs;5.18.0;5.19.0-beta.1
com.azure.spring:spring-integration-azure-servicebus;5.18.0;5.19.0-beta.1
com.azure.spring:spring-integration-azure-storage-queue;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-core;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-actuator-autoconfigure;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-actuator;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-autoconfigure;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-docker-compose;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-resourcemanager;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-service;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-active-directory;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-active-directory-b2c;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-actuator;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-appconfiguration;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-cosmos;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-data-cosmos;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-data-redis-lettuce;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-eventhubs;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-eventgrid;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-jdbc-mysql;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-jdbc-postgresql;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-keyvault;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-keyvault-certificates;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-keyvault-secrets;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-appconfiguration-config-web;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-appconfiguration-config;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-feature-management-web;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-feature-management;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-appconfiguration-config;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-dependencies;5.19.0;5.20.0-beta.1
com.azure.spring:spring-messaging-azure;5.19.0;5.20.0-beta.1
com.azure.spring:spring-messaging-azure-eventhubs;5.19.0;5.20.0-beta.1
com.azure.spring:spring-messaging-azure-servicebus;5.19.0;5.20.0-beta.1
com.azure.spring:spring-messaging-azure-storage-queue;5.19.0;5.20.0-beta.1
com.azure.spring:spring-integration-azure-core;5.19.0;5.20.0-beta.1
com.azure.spring:spring-integration-azure-eventhubs;5.19.0;5.20.0-beta.1
com.azure.spring:spring-integration-azure-servicebus;5.19.0;5.20.0-beta.1
com.azure.spring:spring-integration-azure-storage-queue;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-core;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-actuator-autoconfigure;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-actuator;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-autoconfigure;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-docker-compose;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-resourcemanager;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-service;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-active-directory;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-active-directory-b2c;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-actuator;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-appconfiguration;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-cosmos;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-data-cosmos;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-data-redis-lettuce;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-eventhubs;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-eventgrid;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-jdbc-mysql;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-jdbc-postgresql;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-keyvault;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-keyvault-certificates;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-keyvault-secrets;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-monitor;1.0.0-beta.6;1.0.0-beta.7
com.azure.spring:spring-cloud-azure-starter-servicebus-jms;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-servicebus;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage-blob;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage-file-share;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage-queue;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-integration-eventhubs;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-integration-servicebus;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-integration-storage-queue;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-eventhubs;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-servicebus;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-eventhubs-core;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-eventhubs;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus-core;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-testcontainers;5.18.0;5.19.0-beta.1
com.azure:azure-spring-data-cosmos;5.18.0;5.19.0-beta.1
com.azure.spring:spring-cloud-azure-starter-servicebus-jms;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-servicebus;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage-blob;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage-file-share;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-storage-queue;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-integration-eventhubs;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-integration-servicebus;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-integration-storage-queue;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-eventhubs;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-servicebus;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-starter;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-eventhubs-core;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-eventhubs;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus-core;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus;5.19.0;5.20.0-beta.1
com.azure.spring:spring-cloud-azure-testcontainers;5.19.0;5.20.0-beta.1
com.azure:azure-spring-data-cosmos;5.19.0;5.20.0-beta.1
com.azure.resourcemanager:azure-resourcemanager;2.45.0;2.46.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appplatform;2.45.0;2.46.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appservice;2.45.0;2.46.0-beta.1
Expand Down Expand Up @@ -326,7 +326,7 @@ com.azure.resourcemanager:azure-resourcemanager-frontdoor;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-mixedreality;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-automation;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-resourcemover;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-datafactory;1.0.0-beta.30;1.0.0-beta.31
com.azure.resourcemanager:azure-resourcemanager-datafactory;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-advisor;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-attestation;1.0.0-beta.3;1.0.0-beta.4
Expand Down Expand Up @@ -460,21 +460,21 @@ com.azure.resourcemanager:azure-resourcemanager-workloadssapvirtualinstance;1.0.
com.azure.resourcemanager:azure-resourcemanager-largeinstance;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-migrationdiscoverysap;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-storageactions;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-deviceregistry;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-deviceregistry;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-standbypool;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-edgezones;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-oracledatabase;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-mongocluster;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-computefleet;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-servicefabricmanagedclusters;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-servicefabricmanagedclusters;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-healthdataaiservices;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-redhatopenshift;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-fabric;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-containerorchestratorruntime;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-terraform;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-connectedcache;1.0.0-beta.1;1.0.0-beta.2
Expand Down
4 changes: 2 additions & 2 deletions sdk/boms/spring-cloud-azure-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-dependencies</artifactId>
<version>5.19.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-dependencies;current} -->
<version>5.20.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-dependencies;current} -->
<packaging>pom</packaging>

<name>Spring Cloud Azure Dependencies</name>
Expand Down Expand Up @@ -53,7 +53,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-sdk-bom</artifactId>
<version>1.2.29</version> <!-- NOTE: This should be updated manually. -->
<version>1.2.30</version> <!-- NOTE: This should be updated manually. -->
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

import com.azure.core.http.HttpResponse;
import com.azure.core.util.ProgressReporter;
import com.azure.core.util.logging.ClientLogger;
import io.netty.buffer.Unpooled;
import io.vertx.core.Promise;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpClientRequest;
import org.reactivestreams.Subscriber;
Expand All @@ -22,8 +24,10 @@
*/
@SuppressWarnings("ReactiveStreamsSubscriberImplementation")
public final class VertxRequestWriteSubscriber implements Subscriber<ByteBuffer> {
private static final ClientLogger LOGGER = new ClientLogger(VertxRequestWriteSubscriber.class);

private final HttpClientRequest request;
private final io.vertx.core.Promise<HttpResponse> promise;
private final Promise<HttpResponse> promise;
private final ProgressReporter progressReporter;
private final ContextView contextView;

Expand All @@ -42,7 +46,7 @@ public final class VertxRequestWriteSubscriber implements Subscriber<ByteBuffer>
* @param progressReporter The {@link ProgressReporter} to report progress to.
* @param contextView The {@link ContextView} to use when dropping errors.
*/
public VertxRequestWriteSubscriber(HttpClientRequest request, io.vertx.core.Promise<HttpResponse> promise,
public VertxRequestWriteSubscriber(HttpClientRequest request, Promise<HttpResponse> promise,
ProgressReporter progressReporter, ContextView contextView) {
this.request = request.exceptionHandler(this::onError).drainHandler(ignored -> requestNext());
this.promise = promise;
Expand Down Expand Up @@ -101,6 +105,10 @@ private void write(ByteBuffer bytes) {
}
} else {
this.state = State.ERROR;
if (error != null) {
// Don't lose any reactive error that may have occurred while writing.
result.cause().addSuppressed(error);
}
resetRequest(result.cause());
}
});
Expand All @@ -122,19 +130,53 @@ private void onErrorInternal(Throwable throwable) {
// code 2 and greater are completion states which means the error should be dropped as we already completed.
if (state.code >= 2) {
Operators.onErrorDropped(throwable, Context.of(contextView));

// Also, even though Reactor may have an operator for the dropped error or will be logged by Operators
// itself, we should log as well as at least this will help associate the error with this class.
LOGGER.atInfo()
.log(() -> "VertxRequestWriteSubscriber dropped an exception as it already reached a "
+ "completion state.", throwable);
}

this.state = State.ERROR;
if (state != State.WRITING) {
resetRequest(throwable);
} else {
error = throwable;
if (error != null) {
// Already saw another error while writing, add this as a suppressed exception.
error.addSuppressed(throwable);
} else {
// First error seen while writing, maintain it for future use.
error = throwable;
}
}
}

private void resetRequest(Throwable throwable) {
subscription.cancel();
promise.fail(throwable);
if (!promise.tryFail(throwable)) {
// Seems the promise has already completed in some form.
// Attempt to associate this error with the existing failure.
Throwable cause = promise.future().cause();
if (cause != null) {
cause.addSuppressed(throwable);

// Also, even though the exception was added as a suppressed exception to the failed Promise, we should
// log as well as at least this will help associate the error with this class.
LOGGER.atInfo()
.log(() -> "VertxRequestWriteSubscriber added an exception as a suppressed exception "
+ "as the Promise already failed.", throwable);
} else {
// Turns out the future was completed as successfully externally, drop the error.
Operators.onErrorDropped(LOGGER.logThrowableAsError(throwable), Context.of(contextView));

// Also, even though Reactor may have an operator for the dropped error or will be logged by Operators
// itself, we should log as well as at least this will help associate the error with this class.
LOGGER.atInfo()
.log(() -> "VertxRequestWriteSubscriber dropped an exception as the Promise already "
+ "completed successfully.", throwable);
}
}
request.reset(0, throwable);
}

Expand Down
Loading
Loading