{"record":{"id":"0b702ea4cb69f560","repo":"juicedata/juicefs","slug":"aborted","errorCode":null,"errorMessage":"Aborted","messagePattern":"Aborted","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/objbench.go","lineNumber":164,"sourceCode":"\t}\n\tak, sk, token := ctx.String(\"access-key\"), ctx.String(\"secret-key\"), ctx.String(\"session-token\")\n\tif ak == \"\" {\n\t\tak = os.Getenv(\"ACCESS_KEY\")\n\t}\n\tif sk == \"\" {\n\t\tsk = os.Getenv(\"SECRET_KEY\")\n\t}\n\tif token == \"\" {\n\t\ttoken = os.Getenv(\"SESSION_TOKEN\")\n\t}\n\tendpoint := ctx.Args().First()\n\tstorageType := strings.ToLower(ctx.String(\"storage\"))\n\tif storageType == \"file\" {\n\t\tif strings.Contains(endpoint, \"://\") {\n\t\t\twarn(\"The bucket \\\"%s\\\" doesn't look like a file path.\", endpoint)\n\t\t\twarn(\"Did you forget to specify the `--storage <type>`?\")\n\t\t\tif !userConfirmed() {\n\t\t\t\treturn errors.New(\"Aborted\")\n\t\t\t}\n\t\t}\n\t\tvar err error\n\t\tif endpoint, err = filepath.Abs(endpoint); err != nil {\n\t\t\tlogger.Fatalf(\"invalid path %q: %s\", endpoint, err)\n\t\t}\n\t}\n\tvar blobOrigin object.ObjectStorage\n\tvar err error\n\tshards := ctx.Int(\"shards\")\n\tif shards > 1 {\n\t\tblobOrigin, err = object.NewSharded(storageType, endpoint, ak, sk, token, shards)\n\t} else {\n\t\tblobOrigin, err = object.CreateStorage(storageType, endpoint, ak, sk, token)\n\t}\n\tif err != nil {\n\t\tlogger.Fatalf(\"create storage failed: %v\", err)\n\t}","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/cmd/objbench.go#L146-L182","documentation":"Returned by `juicefs objbench` when, after warning that the endpoint looks like a file path without an explicit --storage type, the user declines the confirmation prompt. It signals an intentional abort of benchmark setup, not an underlying failure.","triggerScenarios":"Thrown at cmd/objbench.go:164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Specify the correct --storage <type> for the endpoint","Re-run and answer the confirmation prompt affirmatively if the endpoint is correct"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c9a67b23e8e08ec23ec331aa6f1675e2319e921c","analyzedAt":"2026-09-06T17:55:48.476Z","contentChangedAt":"2026-09-06T17:55:48.476Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}