{"record":{"id":"a7d299168ff66f2d","repo":"rustfs/rustfs","slug":"cache-error-message","errorCode":null,"errorMessage":"Cache error: {message}","messagePattern":"Cache error: (.+?)","errorType":"exception","errorClass":"KmsError::CacheError","httpStatus":null,"severity":"error","filePath":"crates/kms/src/error.rs","lineNumber":75,"sourceCode":"\n    /// Invalid operation state\n    #[error(\"Invalid operation: {message}\")]\n    InvalidOperation { message: String },\n\n    /// Internal error\n    #[error(\"Internal error: {message}\")]\n    InternalError { message: String },\n\n    /// Serialization/deserialization error\n    #[error(\"Serialization error: {message}\")]\n    SerializationError { message: String },\n\n    /// I/O error\n    #[error(\"I/O error: {message}\")]\n    IoError { message: String },\n\n    /// Cache error\n    #[error(\"Cache error: {message}\")]\n    CacheError { message: String },\n\n    /// Validation error\n    #[error(\"Validation error: {message}\")]\n    ValidationError { message: String },\n\n    /// Unsupported algorithm\n    #[error(\"Unsupported algorithm: {algorithm}\")]\n    UnsupportedAlgorithm { algorithm: String },\n\n    /// Invalid key size\n    #[error(\"Invalid key size: expected {expected}, got {actual}\")]\n    InvalidKeySize { expected: usize, actual: usize },\n\n    /// Encryption context mismatch\n    #[error(\"Encryption context mismatch: {message}\")]\n    ContextMismatch { message: String },\n","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/rustfs/rustfs/blob/35af688cd9d41b4346fbe27dcf7250ba72046c1f/crates/kms/src/error.rs#L57-L93","documentation":"The KMS key cache reported an error — an operation on the in-memory cache of keys/DEKs failed, e.g. an entry is in an invalid state or a cache update was rejected. Distinct from backend errors; the failure is local to the cache layer.","triggerScenarios":"Thrown at crates/kms/src/error.rs:75 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the message for the cache-level failure","Clear or restart the KMS cache/service if entries are stale or corrupted","Report recurring cache errors with logs, as they may indicate a bug"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35af688cd9d41b4346fbe27dcf7250ba72046c1f","analyzedAt":"2026-08-20T21:57:04.799Z","contentChangedAt":"2026-08-20T21:57:04.799Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}