HDFGroup / vol-rest

HDF5 REST VOL Connector
Other
5 stars 8 forks source link

Fix empty request on 0-sized write #22

Closed mattjala closed 1 year ago

mattjala commented 1 year ago

REST VOL used to send a PUT request with an empty body when a 0-element write occurred, which would result in a 400 error from the server.

Now it skips the request if the body is size 0.

A more involved workaround may be needed if parallelism is implemented, since coordination might rely on each worker completing an I/O request.

This fixes the REST VOL's failure on the "creation of 0-sized dataset" from vol-tests.