Documentation ¶
Index ¶
Constants ¶
const AlreadyExists = 442
Error when something other than a stream already exists
const AmbiguousStream = 418
When create() is called and although the uuid is different, the tags are not unique
const AmbiguousTags = 412
If a set of tags is given to identify a single stream, but fails to do so
const AnnotationTooBig = 422
Annotations cannot exceed 2MB
const AnnotationVersionMismatch = 423
The annotation version did not match
const AwesomenessExceedsThreshold = 410
Just in case
const BadSQLValue = 441
Generic error when bad parameters are passed to metadata db
const BadValue = 425
Returned when you try insert NaN or Inf values
const BlazeIt = 420
Just in case this is required after Prop 64
const CephError = 432
Generic error from ceph
const ClusterDegraded = 419
When a write op on an unmapped UUID is attempted
const ConcurrentModification = 430
Returned if you try delete a stream while its attributes are being modified
const ContextError = 402
Things like user timeout
const EtcdFailure = 428
Returned when the etcd cluster is unhealthy
const FaultInjectionDisabled = 424
Fault injection is disabled (you need $BTRDB_ENABLE_FAULT_INJECTON=YES)
const GenericError = 416
When an error has no code
const InsertFailure = 403
Like tree depth
const InsertTooBig = 414
The insertion is too big (that's what she said)
const InvalidCollection = 407
Collection name is invalid
const InvalidLimit = 411
For commands accepting a limit argument, the passed limit is invalid
const InvalidParameter = 438
You sent the wrong thing to an API endpoint
const InvalidPointWidth = 415
Point widths are [0, 64)
const InvalidTagKey = 408
Tag key is invalid
const InvalidTagValue = 409
Tag value is invalid
const InvalidTimeRange = 413
The start/end times are invalid
const InvalidVersions = 427
Returned when you try do changed ranges with bad versions
const InvariantFailure = 500
Used for assert statements
const JournalError = 434
Generic error returned when journalling
const ManifestDeviceDoesntExist = 439
When you try delete a manifest device that does not exist
const ManifestDeviceDuplicated = 436
Returned when there is a duplicate device
const ManifestError = 435
Errors when manipulating the manifest
const MetadataConnectionError = 440
Metadata database failure (like connection failure)
const MissingParameter = 443
Error when a key in a parameter map is missing
const NoSuchPoint = 401
If you ask for next/prev point but there isn't one
const NoSuchStream = 404
const NodeExisted = 433
Means that a node ID is reused, as of BTrDB 4.8 a node id must be unique
const NotImplemented = 501
Haha lol
const ObjectInUse = 446
Error when you try delete an object but it is still in use
const ObjectNotFound = 445
Error when a non-stream object is not found
const ObliterateDisabled = 431
Returned if you try to obliterate a stream on a node where BTRDB_ENABLE_OBLITERATE is not set to "YES"
const OperationNotAllowed = 447
When you try an operation that is not permitted by the current configuration
const ResourceDepleted = 426
Used when the cluster is extremely overloaded and is shedding load to maintain stability
const ReusedUUID = 429
Returned if you try create a stream with a uuid that is the same as a previously deleted stream
const SameStream = 417
When create() is called and the uuid is the same as an existing stream
const SelectorError = 449
Error when interacting with a selector
const StreamExists = 406
The stream already exists
const TLSError = 448
When there is an error with TLS certificates
User does not have the right permissions
const UnrecognizedParameter = 444
Error when there is a key in a parameter map that is unrecognized
const WrongArgs = 421
Generated in drivers when the arguments are the wrong type or length
const WrongEndpoint = 405
We don't have a write lock for this stream
Variables ¶
This section is empty.
Functions ¶
func ChkContextError ¶
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