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

Bulk API - Operations with no PK #1089

Merged
merged 6 commits into from
Dec 10, 2019
Merged

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Dec 7, 2019

Pull Request Template

Description

When an item was sent through Bulk using the Type API and the object did not contain the PartitionKey, the process was failing with a Null Reference due to the BulkExecutor failing to correctly resolve the Partition.

The PK is extracted as PartitionKey.None but the Executor is unable to correctly detect it.

This PR fixes the issue, plus adds coverage for the scenario.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

This PR closes #1088

@ealsur ealsur added bug Something isn't working Bulk labels Dec 7, 2019
@ealsur ealsur self-assigned this Dec 7, 2019
@ealsur ealsur added this to In progress in .NET v3 Board via automation Dec 7, 2019
@ealsur ealsur added this to In progress in Cosmos DB SDK team via automation Dec 7, 2019
Cosmos DB SDK team automation moved this from In progress to Reviewer approved Dec 10, 2019
.NET v3 Board automation moved this from In progress to Reviewer approved Dec 10, 2019
@kirankumarkolli kirankumarkolli merged commit 0cc32db into master Dec 10, 2019
Cosmos DB SDK team automation moved this from Reviewer approved to Done Dec 10, 2019
.NET v3 Board automation moved this from Reviewer approved to Done Dec 10, 2019
@kirankumarkolli kirankumarkolli deleted the users/ealsur/bulknopk branch December 10, 2019 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Bulk
Projects
.NET v3 Board
  
Done
Development

Successfully merging this pull request may close these issues.

Bulk API - Null reference when no PK
3 participants