Skip to content

marmyr/cosmos-bug-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a repository made as a PoC for a bug.

When creating a new document in Cosmos DocumentDB with a partition key exceeding 100 bytes, documentdb throws an exception.

The size limit on a partition key is 1 KB, not 100b.

Steps to reproduce:
  1. Edit application.properties and fill it with the credentials to Cosmos DB
  2. Run the unit test thisWillThrowAnException() in BuggyApplicationTests.java
  3. Cosmos will throw an exception.

com.microsoft.azure.documentdb.DocumentClientException: Message: {"Errors":["PartitionKey extracted from document doesn't match the one specified in the header"]}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages