{"record":{"id":"cc2ffc4e77a7d7c2","repo":"juicedata/juicefs","slug":"dumpmeta-error-v","errorCode":null,"errorMessage":"DumpMeta error: %v","messagePattern":"DumpMeta error: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/meta/sql.go","lineNumber":4924,"sourceCode":"\t\tm.aclCache.Put(a.Id, a.toRule())\n\t\tbar.Increment()\n\t\treturn nil\n\t}); err != nil {\n\t\treturn err\n\t}\n\n\tm.snap = snap\n\treturn nil\n}\n\nfunc (m *dbMeta) DumpMeta(w io.Writer, root Ino, threads int, keepSecret, fast, skipTrash bool) (err error) {\n\tdefer func() {\n\t\tif p := recover(); p != nil {\n\t\t\tdebug.PrintStack()\n\t\t\tif e, ok := p.(error); ok {\n\t\t\t\terr = e\n\t\t\t} else {\n\t\t\t\terr = fmt.Errorf(\"DumpMeta error: %v\", p)\n\t\t\t}\n\t\t}\n\t}()\n\n\tprogress := utils.NewProgress(false)\n\tdefer progress.Done()\n\tvar tree, trash *DumpedEntry\n\troot = m.checkRoot(root)\n\treturn m.roTxn(Background(), func(s *xorm.Session) error {\n\t\tvar lastChangelog int64\n\t\tif m.getFormat().ChangeLog {\n\t\t\tvar maxLog changeLog\n\t\t\tif ok, _ := s.Desc(\"id\").Limit(1).Get(&maxLog); ok {\n\t\t\t\tlastChangelog = maxLog.Id\n\t\t\t}\n\t\t}\n\t\tif root == RootInode && fast {\n\t\t\tdefer func() { m.snap = nil }()","sourceCodeStart":4906,"sourceCodeEnd":4942,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/pkg/meta/sql.go#L4906-L4942","documentation":"Set by dbMeta.DumpMeta's deferred recover when the dump panics and the recovered value is not an error. It converts an unexpected crash during metadata export into a returned error, preserving the stack in the log.","triggerScenarios":"Thrown at pkg/meta/sql.go:4924 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the logged stack trace for the panic origin","Report recurring dump panics to JuiceFS maintainers with the stack"],"exampleFix":null,"handlingStrategy":"try-catch","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"}