{"record":{"id":"e7b031868a5b99ac","repo":"redis/go-redis","slug":"redis-failed-to-create-pipeline-connection-pool-e7b031","errorCode":null,"errorMessage":"redis: failed to create pipeline connection pool: %w","messagePattern":"redis: failed to create pipeline connection pool: %w","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sentinel.go","lineNumber":605,"sourceCode":"\tmainPoolName := opt.Addr + \"_\" + uniqueID\n\tpubsubPoolName := opt.Addr + \"_\" + uniqueID + \"_pubsub\"\n\n\tvar err error\n\trdb.connPool, err = newConnPool(opt, rdb.dialHook, mainPoolName)\n\tif err != nil {\n\t\tpanic(fmt.Errorf(\"redis: failed to create connection pool: %w\", err))\n\t}\n\trdb.pubSubPool, err = newPubSubPool(opt, rdb.dialHook, pubsubPoolName)\n\tif err != nil {\n\t\tpanic(fmt.Errorf(\"redis: failed to create pubsub pool: %w\", err))\n\t}\n\n\t// Create the dedicated pipeline pool unconditionally, mirroring NewClient\n\t// via the shared buildPipelinePool helper. PipelinePoolSize < 0 opts out.\n\tif opt.PipelinePoolSize >= 0 {\n\t\tref, err := rdb.buildPipelinePool(mainPoolName + \"_pipeline\")\n\t\tif err != nil {\n\t\t\tpanic(fmt.Errorf(\"redis: failed to create pipeline connection pool: %w\", err))\n\t\t}\n\t\trdb.pipelinePool = ref\n\t}\n\n\t// Register pools for OTel async gauge metrics, matching NewClient (the\n\t// failover client previously registered none, so pool gauges were silent\n\t// for the identical standalone setup). The pipeline pool is nil when not\n\t// configured.\n\totel.RegisterPools(rdb.connPool, rdb.pubSubPool, rdb.getPipelinePool(), opt.Addr)\n\n\trdb.onClose.register(onCloseHookIDSentinelFailover, failover.Close)\n\n\tfailover.mu.Lock()\n\tfailover.onFailover = func(ctx context.Context, addr string) {\n\t\tif connPool, ok := rdb.connPool.(*pool.ConnPool); ok {\n\t\t\t_ = connPool.Filter(func(cn *pool.Conn) bool {\n\t\t\t\treturn cn.RemoteAddr().String() != addr\n\t\t\t})","sourceCodeStart":587,"sourceCodeEnd":623,"githubUrl":"https://github.com/redis/go-redis/blob/c5cad058c72f58370553b48566302303cf8a2e89/sentinel.go#L587-L623","documentation":"Error \"redis: failed to create pipeline connection pool: %w\" thrown in redis/go-redis.","triggerScenarios":"Thrown at sentinel.go:605 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c5cad058c72f58370553b48566302303cf8a2e89","analyzedAt":"2026-09-01T06:50:53.388Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}