bte

package
v4.15.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2018 License: GPL-3.0 Imports: 4 Imported by: 35

Documentation

Index

Constants

View Source
const AmbiguousStream = 418

When create() is called and although the uuid is different, the tags are not unique

View Source
const AmbiguousTags = 412

If a set of tags is given to identify a single stream, but fails to do so

View Source
const AnnotationTooBig = 422

Annotations cannot exceed 2MB

View Source
const AnnotationVersionMismatch = 423

The annotation version did not match

View Source
const AwesomenessExceedsThreshold = 410

Just in case

View Source
const BadValue = 425

Returned when you try insert NaN or Inf values

View Source
const BlazeIt = 420

Just in case this is required after Prop 64

View Source
const CephError = 432

Generic error from ceph

View Source
const ClusterDegraded = 419

When a write op on an unmapped UUID is attempted

View Source
const ConcurrentModification = 430

Returned if you try delete a stream while its attributes are being modified

View Source
const ContextError = 402

Things like user timeout

View Source
const EtcdFailure = 428

Returned when the etcd cluster is unhealthy

View Source
const FaultInjectionDisabled = 424

Fault injection is disabled (you need $BTRDB_ENABLE_FAULT_INJECTON=YES)

View Source
const GenericError = 416

When an error has no code

View Source
const InsertFailure = 403

Like tree depth

View Source
const InsertTooBig = 414

The insertion is too big (that's what she said)

View Source
const InvalidCollection = 407

Collection name is invalid

View Source
const InvalidLimit = 411

For commands accepting a limit argument, the passed limit is invalid

View Source
const InvalidParameter = 438

You sent the wrong thing to an API endpoint

View Source
const InvalidPointWidth = 415

Point widths are [0, 64)

View Source
const InvalidTagKey = 408

Tag key is invalid

View Source
const InvalidTagValue = 409

Tag value is invalid

View Source
const InvalidTimeRange = 413

The start/end times are invalid

View Source
const InvalidVersions = 427

Returned when you try do changed ranges with bad versions

View Source
const InvariantFailure = 500

Used for assert statements

View Source
const JournalError = 434

Generic error returned when journalling

View Source
const ManifestDeviceDoesntExist = 439

When you try delete a manifest device that does not exist

View Source
const ManifestDeviceDuplicated = 436

Returned when there is a duplicate device

View Source
const ManifestError = 435

Errors when manipulating the manifest

View Source
const NoSuchPoint = 401

If you ask for next/prev point but there isn't one

View Source
const NoSuchStream = 404
View Source
const NodeExisted = 433

Means that a node ID is reused, as of BTrDB 4.8 a node id must be unique

View Source
const NotImplemented = 501

Haha lol

View Source
const ObliterateDisabled = 431

Returned if you try to obliterate a stream on a node where BTRDB_ENABLE_OBLITERATE is not set to "YES"

View Source
const ResourceDepleted = 426

Used when the cluster is extremely overloaded and is shedding load to maintain stability

View Source
const ReusedUUID = 429

Returned if you try create a stream with a uuid that is the same as a previously deleted stream

View Source
const SameStream = 417

When create() is called and the uuid and tags are the same

View Source
const StreamExists = 406

The stream already exists

View Source
const Unauthorized = 437

User does not have the right permissions

View Source
const WrongArgs = 421

Generated in drivers when the arguments are the wrong type or length

View Source
const WrongEndpoint = 405

We don't have a write lock for this stream

Variables

This section is empty.

Functions

func Chan

func Chan(e BTE) chan BTE

func ChkContextError

func ChkContextError(ctx context.Context, rve chan BTE) bool

Context errors cascade quite a bit and tend to cause duplicate errors in the return channel. Try not to leak goroutiens by] blocking on them

func NoBlockError

func NoBlockError(e BTE, ch chan BTE)

Types

type BTE

type BTE interface {
	error
	Code() int
	Reason() string
	Cause() error
}

func CtxE

func CtxE(ctx context.Context) BTE

func Err

func Err(code int, reason string) BTE

func ErrF

func ErrF(code int, reasonz string, args ...interface{}) BTE

func ErrW

func ErrW(code int, reason string, cause error) BTE

func MaybeWrap

func MaybeWrap(err error) BTE

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL