You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "andywebb1975 (via GitHub)" <gi...@apache.org> on 2023/03/30 07:22:34 UTC

[GitHub] [solr] andywebb1975 commented on pull request #1502: SOLR-16721 Java version detection fails when `_JAVA_OPTIONS` is set

andywebb1975 commented on PR #1502:
URL: https://github.com/apache/solr/pull/1502#issuecomment-1489819681

   Removing the `head -1` means multiple lines will pass through - so if `java -version` changed to something along these lines we'd get a multi-line value back:
   
   ```
   openjdk version "1.8.0_362"
   OpenJDK Runtime Environment (build 1.8.0_362-b09)
   OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)
   SomeOS version "1.42.5"
   ```
   
   Keeping the `head -1` (after the `grep`) would protect against this - so I think that's worth putting back in.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org