-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix Spring Cloud Azure 4.0 EventHubs binder processor configuration #24888
Fix Spring Cloud Azure 4.0 EventHubs binder processor configuration #24888
Conversation
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
.build() | ||
.buildAsyncClient() | ||
.getBlobContainerAsyncClient(checkpointStoreProperties.getContainerName()); | ||
|
||
if (Boolean.FALSE.equals(blobContainerAsyncClient.exists().block(Duration.ofSeconds(3)))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hardcode timeout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this has to be done at the initializing time in a sync way?
since this will slow up the spring boot application start up time and it is already pretty slow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add two more configuration entries here, to let users customize whether to create the container automatically and the timeout.
…uring the initialization of blob container
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
The
AzureBlobCheckpointStoreConfiguration
was only conditional on propertycontainer-name
, but we needaccount-name
+container-name
together to locate a blob container. So in this PR theAzureBlobCheckpointStoreConfiguration
will be conditional on these two properties.In the early version, a
BlobServiceClientBuilderFactory
was created inside the creation of beanBlobCheckpointStore
, which will make theBlobServiceClientBuilderFactory
inaccessible for some instrumentation. So in this PR, a bean ofBlobServiceClientBuilderFactory
will be created.Also added some tests for the
BlobServiceClientBuilderFactory
and to make sure it could work withAzureStorageBlobAutoConfiguration
.Also remove the
optional
scope for<artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId>
inspring-cloud-azure-stream-binder-eventhubs
.