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

[AC-13] Confluence 7.1 with Java 11 Compatibility #13

Closed
clouless opened this issue Nov 15, 2019 · 3 comments
Closed

[AC-13] Confluence 7.1 with Java 11 Compatibility #13

clouless opened this issue Nov 15, 2019 · 3 comments
Labels
Milestone

Comments

@clouless
Copy link
Member

@clouless clouless commented Nov 15, 2019

Story

Make the App Java 11 compatible in Confluence 7.1

Acceptance Criteria

  • works in Linux Installer variant with Java 11
@clouless clouless added the story label Nov 15, 2019
@clouless clouless added this to the 3.2.0 milestone Nov 15, 2019
@clouless clouless changed the title [AC-13] Confluence 7.1 with Java 11 Compatibility ( [AC-13] Confluence 7.1 with Java 11 Compatibility Nov 15, 2019
@clouless

This comment has been minimized.

Copy link
Member Author

@clouless clouless commented Nov 15, 2019

Internal Issues

  • [ACB-INT-86] Confluence 7.1 Release Compatibility
  • [ACB-INT-85] Java 11 Compatibility
@clouless

This comment has been minimized.

Copy link
Member Author

@clouless clouless commented Nov 15, 2019

Test Results

Terminal ONE

docker run -i -t -p 8090:8090 ubuntu:18.04 bash
# inside docker
apt-get update && apt-get -y install curl vim wget

cd /opt
wget https://URLTOFILE/atlassian-confluence-7.1.0-x64.bin
chmod +x atlassian-confluence-7.1.0-x64.bin
./atlassian-confluence-7.1.0-x64.bin
# run wizard with defaults + use postgreSQL DB

Terminal TWO

docker run --rm \
           -e 'POSTGRES_PASSWORD=root' \
           -e 'POSTGRES_USER=root' \
           -p 5432:5432 \
           -d postgres:9.6

SQL Tool

CREATE DATABASE confluence WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
CREATE USER confluence WITH ENCRYPTED PASSWORD 'confluence';
GRANT ALL PRIVILEGES ON DATABASE confluence TO confluence;

Shutdown and install Java 11

/opt/atlassian/confluence/bin/shutdown.sh

cd /opt/
wget "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.5%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.5_10.tar.gz"
tar xvf OpenJDK11U-jdk_x64_linux_hotspot_11.0.5_10.tar.gz
mv /opt/atlassian/confluence/jre /opt/atlassian/confluence/jre-OLD
mv /opt/jdk-11.0.5+10 /opt/atlassian/confluence/jre

vim /opt/atlassian/confluence/bin/setenv.sh
#------
# replace JVM stuff as described in https://confluence.atlassian.com/doc/preparing-for-confluence-7-1-976775892.html
## REMOVE
# CATALINA_OPTS="-Djava.locale.providers=JRE,SPI,CLDR ${CATALINA_OPTS}"
# CATALINA_OPTS="-XX:-PrintGCDetails -XX:+PrintGCDateStamps -XX:-PrintTenuringDistribution ${CATALINA_OPTS}"
# CATALINA_OPTS="-Xlog:gc+age=debug:file=$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log::filecount=5,filesize=2M ${CATALINA_OPTS}"
# CATALINA_OPTS="-Xloggc:$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M ${CATALINA_OPTS}"
## ADD
CATALINA_OPTS="-Xlog:gc+age=debug:file=$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log::filecount=5,filesize=2M ${CATALINA_OPTS}"
CATALINA_OPTS="-Djava.locale.providers=JRE,SPI,CLDR ${CATALINA_OPTS}"
#------

/opt/atlassian/confluence/bin/startup.sh

Now java 11 is used:

image

  • REST api testsuite BDD success
  • REST api testsuite TDD success
  • End-to-End testsuite success
@clouless

This comment has been minimized.

Copy link
Member Author

@clouless clouless commented Nov 16, 2019

Released to Marketplace in v3.2.0 on 2019-11-16

@clouless clouless closed this Nov 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.