-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SOLR-17379: Fix date parsing in Java 23, remove Lucene TestSecurityManager #3154
SOLR-17379: Fix date parsing in Java 23, remove Lucene TestSecurityManager #3154
Conversation
…nager Co-authored-by: Chris Hostetter <hossman@apache.org>
This fails every time on Crave, because a grade test runner is returning an exit code of "1". This doesn't replicate for me, but it is suspicious given that |
Nvm, replicated it locally. |
Aha! Tracked it down to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Bit confused why BasicAuthIntegrationTest ever passed, but I'm sure you fix did it!
ByteArrayOutputStream baos = new ByteArrayOutputStream(); | ||
PrintStream stdoutSim = new PrintStream(baos, true, StandardCharsets.UTF_8.name()); | ||
StatusTool tool = new StatusTool(stdoutSim); | ||
try { | ||
System.setProperty("basicauth", "harry:HarryIsUberCool"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any chance that this pattern shows up anywhere else and or is suggested in docs? Magic system variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea, clearly it didn't work haha.
|
||
assertParsedDate( | ||
inputString, | ||
Date.from(Instant.ofEpochMilli(expectTs)), | ||
"parse-date-patterns-default-config"); | ||
|
||
// A bug in Java 9 (not in 8) causes this to fail! (not fixed yet?!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice clean up
It worked because it just logged an error, it didn't fail the test. Pretty weird, but oh well. |
https://issues.apache.org/jira/browse/SOLR-17379