{"record":{"id":"de952c82487354d5","repo":"alibaba/nacos","slug":"50310","errorCode":"50310","errorMessage":"fuzzy watch pattern over limit","messagePattern":"fuzzy watch pattern over limit","errorType":"error_code","errorClass":"NacosException","httpStatus":null,"severity":"error","filePath":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigFuzzyWatchContextService.java","lineNumber":219,"sourceCode":"        Set<String> strings = matchedGroupKeysMap.get(groupKeyPattern);\n        return strings != null && (reachToUpLimit(strings.size()));\n    }\n    \n    /**\n     * Matches the client effective group keys based on the specified group key pattern, client IP, and tag.\n     *\n     * @param groupKeyPattern The pattern to match group keys.\n     */\n    private void initMatchGroupKeys(String groupKeyPattern) throws NacosException {\n        if (matchedGroupKeysMap.containsKey(groupKeyPattern)) {\n            return;\n        }\n        \n        if (matchedGroupKeysMap.size() >= ConfigCommonConfig.getInstance().getMaxPatternCount()) {\n            LogUtil.DEFAULT_LOG.warn(\n                \"[fuzzy-watch] pattern count is over limit ,pattern {} init fail,current count is {}\",\n                groupKeyPattern, matchedGroupKeysMap.size());\n            throw new NacosException(FUZZY_WATCH_PATTERN_OVER_LIMIT.getCode(),\n                FUZZY_WATCH_PATTERN_OVER_LIMIT.getMsg());\n        }\n        \n        matchedGroupKeysMap.computeIfAbsent(groupKeyPattern, k -> new HashSet<>());\n        Set<String> matchedGroupKeys = this.matchedGroupKeysMap.get(groupKeyPattern);\n        long matchBeginTime = System.currentTimeMillis();\n        boolean overMatchCount = false;\n        for (String groupKey : ConfigCacheService.CACHE.keySet()) {\n            String[] groupKeyItems = GroupKey.parseKey(groupKey);\n            if (FuzzyGroupKeyPattern.matchPattern(groupKeyPattern, groupKeyItems[0],\n                groupKeyItems[1],\n                groupKeyItems[2])) {\n                \n                if (reachToUpLimit(matchedGroupKeys.size())) {\n                    LogUtil.DEFAULT_LOG.warn(\n                        \"[fuzzy-watch]   pattern matched service count is over limit , \"\n                            + \"other services will stop notify for pattern {} ,current count is {}\",\n                        groupKeyPattern,","sourceCodeStart":201,"sourceCodeEnd":237,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/config/src/main/java/com/alibaba/nacos/config/server/service/ConfigFuzzyWatchContextService.java#L201-L237","documentation":"Error \"fuzzy watch pattern over limit\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at config/src/main/java/com/alibaba/nacos/config/server/service/ConfigFuzzyWatchContextService.java:219 when the library encounters an invalid state.","commonSituations":"Registering more fuzzy watch patterns than the server limit allows.","solutions":["Reduce the size or count of the input so it stays within the configured limit."],"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"}