Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BWC test to reveal #12895 #12912

Closed
wants to merge 3 commits into from
Closed

Add BWC test to reveal #12895 #12912

wants to merge 3 commits into from

Conversation

gf2121
Copy link
Contributor

@gf2121 gf2121 commented Dec 11, 2023

This patch get a 40000-terms subset (~200KB) of wikibigall terms dict, which can reproduce #12895. I have verified #12900 can fix the expection.

@gf2121 gf2121 closed this Dec 11, 2023
Copy link
Contributor

@uschindler uschindler left a comment

Choose a reason for hiding this comment

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

We couldthink of recreating older backwards indexes, too (at least for 9.x series).


// Gives you time to copy the index out!: (there is also
// a test option to not remove temp dir...):
Thread.sleep(100000);
Copy link
Contributor

Choose a reason for hiding this comment

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

this must go away, please add nocommit.

Copy link
Member

Choose a reason for hiding this comment

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

I thought -Ptests.bwcdir= made this sleep hack unnecessary? Seems like we shouldn't have any of these data generative tests using Thread.sleep.

Copy link
Contributor Author

@gf2121 gf2121 Dec 11, 2023

Choose a reason for hiding this comment

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

Thanks for review @uschindler @benwtrent !

I closed this since I saw @mikemccand did similar things and his dictionary is much smaller than mine :)

this must go away, please add nocommit.

I'm very new to this part. I copied this pattern from another existing test . I can open another PR to clean this up if we are sure it makes no sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

wwwwuuuuuuaaaaaaah. This must go away.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I raised #12914

@mikemccand
Copy link
Member

Oh thanks for working on this @gf2121 -- sorry that we both did it at the same time!

@mikemccand
Copy link
Member

... but at least it lead to discovering a horrifying Thread.sleep in our test code!

Can we ban Thread.sleep throughout our code? Or are there actually useful places for it... I do like sleeping myself.

@uschindler
Copy link
Contributor

Solr used that, as solr is no longer part of our tree we could add sleep to fobiddenaps (maybe globally for both tests and main code). Maybe Lucene does not sleep in tests, so it could be an easy PR. Let's investigate. 🫣

@mikemccand
Copy link
Member

Solr used that, as solr is no longer part of our tree we could add sleep to fobiddenaps (maybe globally for both tests and main code). Maybe Lucene does not sleep in tests, so it could be an easy PR. Let's investigate. 🫣

Awesome, I opened #12946 for this.

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.

4 participants