-
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
[Kafka Connector]Fix BadRequest exception when using serverless database account #43125
[Kafka Connector]Fix BadRequest exception when using serverless database account #43125
Conversation
API change check API changes are not detected in this pull request. |
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.
LGTM
...cosmos-kafka-connect/src/main/java/com/azure/cosmos/kafka/connect/CosmosSourceConnector.java
Show resolved
Hide resolved
/azp run java - cosmos - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - kafka |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM - Thanks
/check-enforcer override |
Issue
When customer using Event stream in Fabric with Serverless CosmosDB database account, the connector failed with:
Setting offer throughput or autopilot on container is not supported for serverless accounts
Root cause
When using event stream in Fabric with kafka connector, for
azure.cosmos.source.metadata.storage.type
will be default toCosmos
. Internally if the metadata container does not exists, kafka connector will try to create one with autoscale 4000 RU. However creating a container with throughput(neither manual nor autoscale) on serverless account is not supported, hence the errorFix
When Kafka connector try to create the metadata container, if it fails with 400, then will retry to create the metadata container without throughput configured
Tests
Manually test with serverless database account