{"record":{"id":"859299f3cc08931f","repo":"alibaba/nacos","slug":"renew-error","errorCode":null,"errorMessage":"renew error.","messagePattern":"renew error\\.","errorType":"exception","errorClass":"NacosLockException","httpStatus":null,"severity":"error","filePath":"lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java","lineNumber":508,"sourceCode":"        } else {\n            lockInfo.setEndTime(Math.min(maxExpireTime, expiredTime) + getNowTimestamp());\n        }\n        request.setLockInfo(lockInfo);\n        WriteRequest writeRequest = WriteRequest.newBuilder().setGroup(group())\n            .setData(ByteString.copyFrom(serializer.serialize(request)))\n            .setOperation(LockOperationEnum.RENEW.name()).build();\n        try {\n            Response response = protocol.write(writeRequest);\n            if (response.getSuccess()) {\n                return serializer.deserialize(response.getData().toByteArray());\n            }\n            throw new NacosLockException(response.getErrMsg());\n        } catch (NacosLockException e) {\n            LOGGER.error(\"key: {}, lockType:{} renew fail, errorMsg: {}\", lockInstance.getKey(),\n                lockInstance.getLockType(), e.getMessage());\n            throw e;\n        } catch (Exception e) {\n            throw new NacosLockException(\"renew error.\", e);\n        }\n    }\n    \n    @Override\n    public LockResult expire(LockInstance lockInstance) {\n        MutexLockRequest request = new MutexLockRequest();\n        LockInfo lockInfo = new LockInfo();\n        lockInfo.setKey(new LockKey(lockInstance.getLockType(), lockInstance.getKey()));\n        lockInfo.setOwner(lockInstance.getOwner());\n        request.setLockInfo(lockInfo);\n        WriteRequest writeRequest = WriteRequest.newBuilder().setGroup(group())\n            .setData(ByteString.copyFrom(serializer.serialize(request)))\n            .setOperation(LockOperationEnum.EXPIRE.name()).build();\n        try {\n            Response response = protocol.write(writeRequest);\n            if (response.getSuccess()) {\n                return serializer.deserialize(response.getData().toByteArray());\n            }","sourceCodeStart":490,"sourceCodeEnd":526,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java#L490-L526","documentation":"Error \"renew error.\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:508 when the library encounters an invalid state.","commonSituations":"Renewing a lock lease failed on the server.","solutions":["Inspect the server logs for the underlying cause, fix it, and retry the operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}