{"record":{"id":"6292db1fc3b115f0","repo":"alibaba/nacos","slug":"informer-serviceinformer-sync-timed-out","errorCode":null,"errorMessage":"Informer serviceInformer sync timed out","messagePattern":"Informer serviceInformer 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":290,"sourceCode":"                        instanceOperatorClient.listAllInstances(namespace, serviceName);\n                    unregisterInstances(deleteIpSet, namespace, serviceName, oldInstanceList);\n                    Loggers.MAIN.info(\"delete instances, namespace:\" + namespace + \", serviceName: \"\n                        + serviceName);\n                } catch (NacosException e) {\n                    Loggers.MAIN.info(\"delete instances fail, namespace:\" + namespace\n                        + \", serviceName: \" + serviceName);\n                }\n            }\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","sourceCodeStart":272,"sourceCodeEnd":308,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/k8s-sync/src/main/java/com/alibaba/nacos/k8s/sync/K8sSyncServer.java#L272-L308","documentation":"Error \"Informer serviceInformer sync timed out\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at k8s-sync/src/main/java/com/alibaba/nacos/k8s/sync/K8sSyncServer.java:290 when the library encounters an invalid state.","commonSituations":"The Kubernetes service informer failed to sync within the timeout.","solutions":["Review the input and runtime state for k8s service 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"}