{"record":{"id":"837cfea9b3ac1705","repo":"apache/rocketmq","slug":"get-user-from-rocksdb-failed","errorCode":null,"errorMessage":"Get user from RocksDB failed.","messagePattern":"Get user from RocksDB failed\\.","errorType":"exception","errorClass":"AuthenticationException","httpStatus":null,"severity":"error","filePath":"auth/src/main/java/org/apache/rocketmq/auth/authentication/provider/LocalAuthenticationMetadataProvider.java","lineNumber":172,"sourceCode":"    private static class UserCacheLoader implements CacheLoader<String, User> {\n        private final ConfigRocksDBStorage storage;\n        public static final User EMPTY_USER = new User();\n\n        public UserCacheLoader(ConfigRocksDBStorage storage) {\n            this.storage = storage;\n        }\n\n        @Override\n        public User load(String username) {\n            try {\n                byte[] keyBytes = username.getBytes(StandardCharsets.UTF_8);\n                byte[] valueBytes = storage.get(AUTH_METADATA_COLUMN_FAMILY, keyBytes);\n                if (ArrayUtils.isEmpty(valueBytes)) {\n                    return EMPTY_USER;\n                }\n                return JSON.parseObject(new String(valueBytes, StandardCharsets.UTF_8), User.class);\n            } catch (Exception e) {\n                throw new AuthenticationException(\"Get user from RocksDB failed.\", e);\n            }\n        }\n    }\n}\n","sourceCodeStart":154,"sourceCodeEnd":177,"githubUrl":"https://github.com/apache/rocketmq/blob/293f5885719fc4aa3619446a1900f58ccfcfdd29/auth/src/main/java/org/apache/rocketmq/auth/authentication/provider/LocalAuthenticationMetadataProvider.java#L154-L177","documentation":"Error \"Get user from RocksDB failed.\" thrown in apache/rocketmq.","triggerScenarios":"Occurs when reading a user record from the local RocksDB-backed authentication metadata store fails.","commonSituations":"RocksDB read failure due to corrupted SST files, disk I/O errors, or deserialization failure of the stored user data.","solutions":["Verify the username is correct and the user exists in the authentication metadata store.","Check broker logs for RocksDB read errors (lock, corruption, missing directory) and resolve them.","Restart the broker if the RocksDB instance failed to open, then retry the getUser operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"293f5885719fc4aa3619446a1900f58ccfcfdd29","analyzedAt":"2026-08-14T11:50:13.822Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}