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

OpenJDK - Fix inconsistencies #143

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible-scylla-node/tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@

- name: Install Java
apt:
name: openjdk-8-jre-headless
name: openjdk-11-jre-headless
state: present
force_apt_get: yes

- name: Correct java version selected
alternatives:
name: java
path: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
path: /usr/lib/jvm/java-11-openjdk-amd64/bin/java

- name: "Going to install {{ scylla_version }}"
set_fact:
Expand Down
17 changes: 16 additions & 1 deletion ansible-scylla-node/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,24 @@
host: "{{ scylla_api_address }}"
timeout: 300

- name: Determine if Scylla release is prone to CASSANDRA-17581
shell:
cmd: nodetool status
register: nodetool
ignore_errors: True

- name: Configure JAVA_TOOL_OPTIONS in /etc/environment
lineinfile:
path: /etc/environment
regexp: '^JAVA_TOOL_OPTIONS='
line: 'JAVA_TOOL_OPTIONS="-Dcom.sun.jndi.rmiURLParsing=legacy"'
state: present
when:
- '"URISyntaxException" in nodetool.stderr'

- name: wait for the cluster to become healthy
shell: |
nodetool status|grep -E '^UN|^UJ|^DN'|wc -l
nodetool -Dcom.sun.jndi.rmiURLParsing=legacy status|grep -E '^UN|^UJ|^DN'|wc -l
register: node_count
until: node_count.stdout|int == ansible_play_batch|length
retries: 300
Expand Down