{"record":{"id":"1eff0d5bbbd41b26","repo":"pinpoint-apm/pinpoint","slug":"cann-t-find-taggroup","errorCode":null,"errorMessage":"cann't find tagGroup","messagePattern":"cann't find tagGroup","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/service/SystemMetricDataServiceImpl.java","lineNumber":181,"sourceCode":"\n        List<MetricValueGroup<?>> metricValueGroupList = new ArrayList<>(valueList.size());\n        for (Map.Entry<TagGroup, List<MetricValue<?>>> entry : metricValueGroupMap.entrySet()) {\n            String groupName = entry.getKey().groupName();\n            List<MetricValue<?>> value = entry.getValue();\n            MetricValueGroup<?> group = new MetricValueGroup(value, groupName);\n            metricValueGroupList.add(group);\n        }\n\n        return metricValueGroupList;\n    }\n\n    private TagGroup findTagGroup(List<TagGroup> uniqueTagGroupList, TagGroup tagGroup) {\n        for (TagGroup tg : uniqueTagGroupList) {\n            if (equalsTagGroup(tg, tagGroup)) {\n                return tg;\n            }\n        }\n        throw new RuntimeException(\"cann't find tagGroup\");\n    }\n\n    private List<TagGroup> createUniqueTagGroupList(List<MetricValue<? extends Number>> metricValueList) {\n        List<TagGroup> uniqueTagGroupList = new ArrayList<>();\n\n        for (MetricValue<?> metricValue : metricValueList) {\n            boolean containTagGroup = false;\n\n            List<Tag> tagList = metricValue.getTagList();\n            TagGroup newTagGroup = new TagGroup(tagList);\n\n            for (TagGroup tagGroup : uniqueTagGroupList) {\n                if (equalsTagGroup(tagGroup, newTagGroup)) {\n                    containTagGroup = true;\n                }\n            }\n\n            if (containTagGroup == false) {","sourceCodeStart":163,"sourceCodeEnd":199,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/service/SystemMetricDataServiceImpl.java#L163-L199","documentation":"Sentinel RuntimeException from findTagGroup: no tag group in uniqueTagGroupList equals the requested tagGroup, i.e. metric data arrived whose tag combination was not among the pre-computed unique groups — typically inconsistent tags between metric and tag collections.","triggerScenarios":"Thrown at metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/service/SystemMetricDataServiceImpl.java:181 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the metric query's tag filters match tags actually collected","Rebuild uniqueTagGroupList from the same source as the incoming tagGroup","Return an empty/unknown group instead of throwing when tags are merely stale"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"744c3d3075e595656abb1ae331ad2c0e4c9eb996","analyzedAt":"2026-09-07T18:48:45.289Z","contentChangedAt":"2026-09-07T18:48:45.289Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}