Skip to content

Commit

Permalink
fix: handle bucket full on /chunks and /bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
aloknerurkar committed Jun 9, 2021
1 parent 954aaff commit 3ec4e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (s *server) bytesUploadHandler(w http.ResponseWriter, r *http.Request) {
if err != nil {
logger.Debugf("bytes upload: split write all: %v", err)
logger.Error("bytes upload: split write all")
jsonhttp.InternalServerError(w, nil)
mappedHTTPErr(w, err, nil)
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (s *server) chunkUploadHandler(w http.ResponseWriter, r *http.Request) {
if err != nil {
s.logger.Debugf("chunk upload: chunk write error: %v, addr %s", err, chunk.Address())
s.logger.Error("chunk upload: chunk write error")
jsonhttp.BadRequest(w, "chunk write error")
mappedHTTPErr(w, err, "chunk write error")
return
} else if len(seen) > 0 && seen[0] && tag != nil {
err := tag.Inc(tags.StateSeen)
Expand Down

0 comments on commit 3ec4e0b

Please sign in to comment.