{"record":{"id":"d9b4731c71e54ac4","repo":"probelabs/goreplay","slug":"file-output-reached-size-limit","errorCode":null,"errorMessage":"File output reached size limit","messagePattern":"File output reached size limit","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"output_file.go","lineNumber":257,"sourceCode":"\t\t\tlog.Fatal(o, \"Cannot open file %q. Error: %s\", o.currentName, err)\n\t\t}\n\n\t\to.QueueLength = 0\n\t}\n\n\tvar nn int\n\tn, err = o.writer.Write(msg.Meta)\n\tnn, err = o.writer.Write(msg.Data)\n\tn += nn\n\tnn, err = o.writer.Write(payloadSeparatorAsBytes)\n\tn += nn\n\n\to.totalFileSize += size.Size(n)\n\to.currentFileSize += n\n\to.QueueLength++\n\n\tif Settings.OutputFileConfig.OutputFileMaxSize > 0 && o.totalFileSize >= Settings.OutputFileConfig.OutputFileMaxSize {\n\t\treturn n, errors.New(\"File output reached size limit\")\n\t}\n\n\treturn n, err\n}\n\nfunc (o *FileOutput) flush() {\n\t// Don't exit on panic\n\tdefer func() {\n\t\tif r := recover(); r != nil {\n\t\t\tDebug(0, \"[OUTPUT-FILE] PANIC while file flush: \", r, o, string(debug.Stack()))\n\t\t}\n\t}()\n\n\to.Lock()\n\tdefer o.Unlock()\n\n\tif o.file != nil {\n\t\tif strings.HasSuffix(o.currentName, \".gz\") {","sourceCodeStart":239,"sourceCodeEnd":275,"githubUrl":"https://github.com/probelabs/goreplay/blob/251e45abd242886bb64ff2b2dc98789556b56330/output_file.go#L239-L275","documentation":"FileOutput.PluginWrite refuses to append once the accumulated output size meets OutputFileMaxSize: the current file is complete and the error signals the caller to rotate to the next file rather than a real write failure — bytes were already written successfully.","triggerScenarios":"Thrown at output_file.go:257 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Raise --output-file-max-size if you intended larger output files","Let the rotation logic create the next file — this error is the expected rotation trigger","Check disk quota if the limit was reached unintentionally"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"251e45abd242886bb64ff2b2dc98789556b56330","analyzedAt":"2026-09-02T16:44:11.369Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T21:17:11.164Z"}