Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 1.54 KB

README.md

File metadata and controls

71 lines (53 loc) · 1.54 KB

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
}