{"record":{"id":"e13c4a0a02f81fc7","repo":"netdata/netdata","slug":"w-duplicate-quantile-v","errorCode":null,"errorMessage":"%w: duplicate quantile %v","messagePattern":"%w: duplicate quantile (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/go/pkg/metrix/summary.go","lineNumber":226,"sourceCode":"\tif schema == nil || len(schema.quantiles) == 0 {\n\t\tif len(point.Quantiles) > 0 {\n\t\t\tpanic(fmt.Errorf(\"%w: quantiles are not configured for this instrument\", errSummaryPoint))\n\t\t}\n\t\treturn point.Count, point.Sum, nil\n\t}\n\n\tif len(point.Quantiles) != len(schema.quantiles) {\n\t\tpanic(fmt.Errorf(\"%w: quantile count mismatch\", errSummaryPoint))\n\t}\n\n\tvalues := make([]SampleValue, len(schema.quantiles))\n\tseen := make(map[float64]struct{}, len(schema.quantiles))\n\tfor _, q := range point.Quantiles {\n\t\tif math.IsNaN(q.Quantile) || q.Quantile < 0 || q.Quantile > 1 {\n\t\t\tpanic(fmt.Errorf(\"%w: invalid quantile %v\", errSummaryPoint, q.Quantile))\n\t\t}\n\t\tif _, ok := seen[q.Quantile]; ok {\n\t\t\tpanic(fmt.Errorf(\"%w: duplicate quantile %v\", errSummaryPoint, q.Quantile))\n\t\t}\n\t\tseen[q.Quantile] = struct{}{}\n\n\t\tidx := summaryQuantileIndex(schema.quantiles, q.Quantile)\n\t\tif idx == -1 {\n\t\t\tpanic(fmt.Errorf(\"%w: quantile %v is not declared\", errSummaryPoint, q.Quantile))\n\t\t}\n\t\t// A summary may report a NaN quantile value (e.g. an empty observation window). Store it;\n\t\t// chartengine renders a non-finite dimension value as a gap (SETEMPTY). Reject only Inf.\n\t\tif math.IsInf(float64(q.Value), 0) {\n\t\t\tpanic(fmt.Errorf(\"%w: infinite quantile value %v\", errSummaryPoint, q.Value))\n\t\t}\n\t\tvalues[idx] = q.Value\n\t}\n\n\tif len(seen) != len(schema.quantiles) {\n\t\tpanic(fmt.Errorf(\"%w: missing quantiles in point\", errSummaryPoint))\n\t}","sourceCodeStart":208,"sourceCodeEnd":244,"githubUrl":"https://github.com/netdata/netdata/blob/4864de85e26f6734d92cfc27ccbeff5921f49938/src/go/pkg/metrix/summary.go#L208-L244","documentation":"Error \"%w: duplicate quantile %v\" thrown in netdata/netdata.","triggerScenarios":"Thrown at src/go/pkg/metrix/summary.go:226 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The same quantile was declared more than once.","Remove the duplicate quantile from the schema declaration."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4864de85e26f6734d92cfc27ccbeff5921f49938","analyzedAt":"2026-08-15T09:12:38.226Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}