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

[Kafka Connector]Fix BadRequest exception when using serverless database account #43125

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

xinlian12
Copy link
Member

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 to Cosmos. 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 error

Fix

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

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants