HoustonPutman commented on code in PR #79:
URL: https://github.com/apache/solr-site/pull/79#discussion_r1001956334


##########
content/solr/solr_news/2022-10-21-java17-jit-bug.md:
##########
@@ -0,0 +1,26 @@
+Title: Java 17 bug affecting Solr
+category: solr/news
+save_as:
+
+Several users running Solr in production on OpenJDK 17 have experienced JVM 
crashes due to a known bug in the JDK. Read more about the bug in 
[SOLR-16463](https://issues.apache.org/jira/browse/SOLR-16463).
+
+Known mitigations are to either downgrade to JDK 11 or to start Solr with a 
Java startup flag that avoids the failure condition. Here is how to manually 
apply the flag:
+
+Edit your `solr.in.sh` or `solr.in.cmd` file to set the `SOLR_OPTS` 
environment variable as follows:
+
+*Linux:* 
+```bash
+SOLR_OPTS=-XX:CompileCommand=exclude,com.github.benmanes.caffeine.cache.BoundedLocalCache::put
+```
+
+*Windows:*
+```bash
+SET 
SOLR_OPTS=-XX:CompileCommand=exclude,com.github.benmanes.caffeine.cache.BoundedLocalCache::put
+```
+
+Alternatively, you can inject the same flag with the `-a` argument, e.g:
+```bash
+bin/solr -a 
"-XX:CompileCommand=exclude,com.github.benmanes.caffeine.cache.BoundedLocalCache::put"
+```
+
+If you run Solr 9 with the official Docker image, we have already pushed an 
updated Docker image to Docker Hub that will inject the flag for you. Simple 
pull the image again to get it.

Review Comment:
   ```suggestion
   If you run Solr 9 with the official Docker image, we have already pushed an 
updated Docker image to Docker Hub that will inject the flag for you.
   Just pull the image again to get it.
   The Docker image uses the `-a` flag to set this flag when running Solr, so 
if you are using the `-a` option you will need to provide the JVM flag 
mentioned above in addition to the other flags you are setting.
   
   ```



##########
content/solr/solr_news/2022-10-21-solr-8-docker-jre-change.md:
##########
@@ -0,0 +1,9 @@
+Title: Solr 8 on Docker changes to Eclipse Temurin JDK
+category: solr/news
+save_as:
+
+The official docker image for Solr 8.11 has been running on [Oracle OpenJDK 11 
JRE](https://hub.docker.com/_/openjdk). However, due to Oracle's new release 
policies, they now no longer provide support for JDK11. Since Solr 8.11 is 
still being supported by the Apache Solr project, we needed to switch to 
another OpenJDK vendor with JDK11 support. We chose [Eclipse 
Temurin](https://hub.docker.com/_/eclipse-temurin) from the Adoptium project. 
This is the same vendor as we use for our Solr 9 image, and their [JDK11 
support lasts until October 2024](https://adoptium.net/support/). 
+
+Users should be aware that on your next `docker pull solr:8.11.2` you will be 
upgraded. For most users there will be no issues, as it is mainly a new 
distribution of the same upstream Java version. However, if you use our image 
as base image and rely on specific tools to be present, you may need to adapt. 
While `openjdk:11-jre` uses `Debian GNU/Linux 11 (bullseye)`, the 
`eclipse-temurin:11-jre` image uses `Ubuntu 22.04.1 LTS (Jammy Jellyfish)`.

Review Comment:
   Yeah this change is needed.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to