Table of Contents

Class IndexFailure

Namespace
Tharga.MongoDB
Assembly
Tharga.MongoDB.dll

A recorded failure to drop or create a specific index on a collection within the current process. Surfaced via IDiskRepositoryCollection<TEntity>.GetFailedIndices() so consumers can build admin UIs without writing collection-specific auditors. Scope is in-process; cross-process persistence is a planned follow-up.

public sealed record IndexFailure : IEquatable<IndexFailure>
Inheritance
IndexFailure
Implements
Inherited Members

Properties

LastErrorMessage

The most recent error message captured for this (Operation, Name).

public required string LastErrorMessage { get; init; }

Property Value

string

Name

Name of the index whose operation failed.

public required string Name { get; init; }

Property Value

string

Operation

The operation that failed (Create or Drop).

public required IndexFailOperation Operation { get; init; }

Property Value

IndexFailOperation