Skip to content

Fix "File name too long" problem - #602

Open
neoremind wants to merge 1 commit into
mikemccand:mainfrom
neoremind:truncate_file_name
Open

Fix "File name too long" problem#602
neoremind wants to merge 1 commit into
mikemccand:mainfrom
neoremind:truncate_file_name

Conversation

@neoremind

Copy link
Copy Markdown
Contributor

Follow-up to #576.

The filename-too-long problem not only exists on MacOS, but also exists on Linux. When indexing with facet, the index folder name as well as the jfr filename exceeds the limit. Error message:

[0.411s][error][jfr,startup] Could not start recording, not able to write to file /local/home/xuzh/workspace/logs/baseline_vs_patch/2026.07.23.14.16.52/bench-index-baseline_vs_patch-wikimediumall.fork_lucene.candidate.facets.taxonomy:Date.taxonomy:Month.taxonomy:DayOfYear.sortedset:Date.sortedset:Month.sortedset:DayOfYear.taxonomy:RandomLabel.sortedset:RandomLabel.Lucene90.Lucene104.dvfields.nd33.3326M.jfr. /local/home/zhangxuv/workspace/logs/baseline_vs_patch/2026.07.23.14.16.52/bench-index-baseline_vs_patch-wikimediumall.fork_lucene.candidate.facets.taxonomy:Date.taxonomy:Month.taxonomy:DayOfYear.sortedset:Date.sortedset:Month.sortedset:DayOfYear.taxonomy:RandomLabel.sortedset:RandomLabel.Lucene90.Lucene104.dvfields.nd33.3326M.jfr: File name too long
Error occurred during initialization of VM
Failure when starting JFR on_create_vm_3

Validate on linux and mac:

~ touch "$(python3 -c "print('a' * 255)")"
~ touch "$(python3 -c "print('a' * 256)")"
touch: cannot touch ‘aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa’: File name too long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant