minio / mint

Collection of tests to detect overall correctness of MinIO server.
Apache License 2.0
81 stars 50 forks source link

minio-go tests fail on server and gateway #227

Closed nitisht closed 6 years ago

nitisht commented 6 years ago

minio-go tests fail on server and gateway

Server log

ERRO[0043] Failed to create object minio-go-testn152wkcp31c6havvu/minio-go-testn152wkcp31c6havvu-resumable  cause=unexpected EOF source=[fs-v1.go:636:fsObjects.PutObject()] stack=fs-v1-helpers.go:303:fsCreateFile fs-v1.go:633:fsObjects.PutObject <autogenerated>:1:(*fsObjects).PutObject object-handlers.go:610:objectAPIHandlers.PutObjectHandler api-router.go:63:(objectAPIHandlers).PutObjectHandler-fm
ERRO[0043] Unable to create an object. /minio-go-testn152wkcp31c6havvu/minio-go-testn152wkcp31c6havvu-resumable  cause=#has incomplete body source=[object-handlers.go:612:objectAPIHandlers.PutObjectHandler()] stack=fs-v1-helpers.go:303:fsCreateFile fs-v1.go:633:fsObjects.PutObject <autogenerated>:1:(*fsObjects).PutObject object-handlers.go:610:objectAPIHandlers.PutObjectHandler api-router.go:63:(objectAPIHandlers).PutObjectHandler-fm

Mint log

{"alert":"","args":{"policy":"{\"expiration\":\"2017-11-27T10:57:38.724Z\",\"conditions\":[[\"eq\",\"$bucket\",\"minio-go-testpwobn0cngt1uea5ss\"],[\"eq\",\"$key\",\"zo3mx5bcnpj5q6pxvez446ylymh4jk\"],[\"eq\",\"$Content-Type\",\"binary/octet-stream\"],[\"eq\",\"$x-amz-meta-brk34eukd5uxg02zsyr24arsqd2ck4\",\"hg0djbp3lwc21o2zrcxu5y4fltouau\"],[\"content-length-range\", 10, 1048576]]}"},"duration":8,"error":"open /mint/data/datafile-33-KB: no such file or directory","function":"PresignedPostPolicy(policy)","message":"File open failed","name":"minio-go","status":"fail"}
nitisht commented 6 years ago

This works fine if MINT_DATA_DIR is not set

nitisht commented 6 years ago

IIUC https://github.com/minio/minio-go/pull/879 is the fix for this issue.

nitisht commented 6 years ago

Fixed by https://github.com/minio/minio-go/pull/879