Skip to content

Reproducing a bug in Azurite when inserting in batch mode into a non-existing table

Notifications You must be signed in to change notification settings

davidandradeduarte/azurite-insert-batch-bugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproducing two bugs in Azurite when inserting in batch mode

Batch insert into a non-existing table returns unexpected error

Github issue
Fixed by Azure/Azurite#831

For Go see main.go:

func main(){
    insert()
    insertBatch()
}

func insert(){
    // working - error is 404 TableNotFound, as expected
}

func insertBatch(){
    // not working - returns a EOF string error
}

For C# see Program.cs:

static void Main(string[] args)
{
    Insert();
    InsertBatch();
}

private static void Insert(){
    // working - error is 404 TableNotFound, as expected
}

private static void InsertBatch(){
    // not working - returns System.IO.InvalidDataException: Invalid header line: HTTP/1.1 400 Bad Request
}

Batch insert with Go SDK (using Azurite) only inserts one record

Github issue
Fixed by Azure/Azurite#1401

For Go see main.go:

func main(){
    insertBatch()
}

func insertBatch(){
    // not working - inserts only one of the two entities added to the batch
}

For C# see Program.cs:

static void Main(string[] args)
{
    InsertBatch();
}

private static void InsertBatch(){
    // working - inserts multiple records in batch mode
}

About

Reproducing a bug in Azurite when inserting in batch mode into a non-existing table

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published