Skip to content

Changed auto generated index name#503

Open
shubhamsrkdev wants to merge 6 commits intomikemccand:mainfrom
shubhamsrkdev:changeIndexFileName
Open

Changed auto generated index name#503
shubhamsrkdev wants to merge 6 commits intomikemccand:mainfrom
shubhamsrkdev:changeIndexFileName

Conversation

@shubhamsrkdev
Copy link
Contributor

@shubhamsrkdev shubhamsrkdev commented Jan 6, 2026

The auto generated index name though informative is very long leading to errors like:

Could not start recording, not able to write to file /local/home/username/lucenebenchy/logs/baseline_vs_patch/2026.01.06.11.14.39/bench-index-baseline_vs_patch-wikimediumall.lucene_candidate.c
andidate.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/username/lucenebenchy/logs/baseline_vs_patch/2026.01.06.11.14.39/bench-index-baseline_vs_patch-wikimediumall.lucene_candidate.candidate.facets.taxonomy:Date.taxonomy:Month.taxonomy:DayOfYear.sortedset:Date.sortedset:Month.sorted
set:DayOfYear.taxonomy:RandomLabel.sortedset:RandomLabel.Lucene90.Lucene104.dvfields.nd33.3326M.jfr: File name too long 
Error occurred during initialization of VM

This PR reduces the file name size and also added a metadata file to verify if the index is not reduced.

Fixes #198

Copy link
Owner

@mikemccand mikemccand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for tackling this! It is super annoying when it strikes!

As a short-term workaround, you can tell your local Competition (or Index instance maybe) which index name you want to use, overriding this overly-verbose default.

@shubhamsrkdev shubhamsrkdev marked this pull request as ready for review January 7, 2026 14:31
@shubhamsrkdev shubhamsrkdev changed the title Changed auto generated file name Changed auto generated index name Jan 7, 2026
@mikemccand
Copy link
Owner

Looks like you need a make tidy maybe? Or possibly make ruff-fix?

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution!

@github-actions github-actions bot added the Stale label Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make auto generated index name shorter

2 participants