Skip to content

Commit

Permalink
[dbnode] Remove coldwrites error message until feature is ready (#1651)
Browse files Browse the repository at this point in the history
* Remove coldwrites error message until feature is ready

* Add full stop

* Change error msg instead

* Fix formatting

* Fix spelling
  • Loading branch information
martin-mao authored May 20, 2019
1 parent bd3c994 commit 5cbbf13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/dbnode/storage/errors/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ var (
ErrTooPast = xerrors.NewInvalidParamsError(errors.New("datapoint is too far in the past"))

// ErrColdWritesNotEnabled is returned when cold writes are disabled
// and a write is too far in the past or future.
// and a write is too far in the past or future. Note, the error intentionally
// excludes anything regarding the cold writes feature until its release.
ErrColdWritesNotEnabled = xerrors.NewInvalidParamsError(errors.New(
"cold writes not enabled and datapoint is too far in the past or future"))
"datapoint is too far in the past or future"))
)

// NewUnknownNamespaceError returns a new error indicating an unknown namespace parameter.
Expand Down
4 changes: 2 additions & 2 deletions src/dbnode/storage/series/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import (
"github.com/m3db/m3/src/dbnode/clock"
"github.com/m3db/m3/src/dbnode/digest"
"github.com/m3db/m3/src/dbnode/encoding"
"github.com/m3db/m3/src/dbnode/namespace"
"github.com/m3db/m3/src/dbnode/persist"
"github.com/m3db/m3/src/dbnode/storage/block"
m3dberrors "github.com/m3db/m3/src/dbnode/storage/errors"
"github.com/m3db/m3/src/dbnode/namespace"
"github.com/m3db/m3/src/dbnode/ts"
"github.com/m3db/m3/src/dbnode/x/xio"
"github.com/m3db/m3/src/x/context"
Expand Down Expand Up @@ -79,7 +79,7 @@ type databaseBuffer interface {
id ident.ID,
tags ident.Tags,
persistFn persist.DataFn,
nsCtx namespace.Context,
nsCtx namespace.Context,
) error

Flush(
Expand Down

0 comments on commit 5cbbf13

Please sign in to comment.