{"record":{"id":"e18ce56f9045b990","repo":"alibaba/nacos","slug":"informer-endpointinformer-sync-timed-out","errorCode":null,"errorMessage":"Informer endpointInformer sync timed out","messagePattern":"Informer endpointInformer sync timed out","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"k8s-sync/src/main/java/com/alibaba/nacos/k8s/sync/K8sSyncServer.java","lineNumber":298,"sourceCode":"            }\n        });\n        \n        // Wait until the cache of each informer has been fully synced before proceeding.\n        // This ensures that the local cache contains the latest and complete resource data.\n        long timeout = 30000L;\n        long startTime = System.currentTimeMillis();\n        serviceInformer.run();\n        while (!serviceInformer.hasSynced()) {\n            if (System.currentTimeMillis() - startTime > timeout) {\n                throw new RuntimeException(\"Informer serviceInformer sync timed out\");\n            }\n            ThreadUtils.sleep(100L);\n        }\n        startTime = System.currentTimeMillis();\n        endpointInformer.run();\n        while (!endpointInformer.hasSynced()) {\n            if (System.currentTimeMillis() - startTime > timeout) {\n                throw new RuntimeException(\"Informer endpointInformer sync timed out\");\n            }\n            ThreadUtils.sleep(100L);\n        }\n    }\n    \n    /**\n     * create instance.\n     *\n     * @param ip instance ip\n     * @param targetPort instance port\n     * @param serviceName service name\n     * @param port service port\n     * @return instance\n     */\n    public Instance createInstance(String ip, int targetPort, String serviceName, int port) {\n        Instance instance = new Instance();\n        instance.setIp(ip);\n        instance.setPort(targetPort);","sourceCodeStart":280,"sourceCodeEnd":316,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/k8s-sync/src/main/java/com/alibaba/nacos/k8s/sync/K8sSyncServer.java#L280-L316","documentation":"Error \"Informer endpointInformer sync timed out\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at k8s-sync/src/main/java/com/alibaba/nacos/k8s/sync/K8sSyncServer.java:298 when the library encounters an invalid state.","commonSituations":"The Kubernetes endpoint informer failed to sync within the timeout.","solutions":["Review the input and runtime state for k8s endpoint informer sync timeout, correct the reported problem, and retry."],"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"}