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

Update postgres connections to use tcpKeepAlive and socketTimeout #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rwarren
Copy link

@rwarren rwarren commented Jul 20, 2022

This fixes potential stuck threads in "some situations", as documented
by Atlassian here:

https://confluence.atlassian.com/jirakb/connection-problems-to-postgresql-result-in-stuck-threads-in-jira-1047534091.html


Doing this required two things:

  1. Updating the postgres jar file (latest is currently 42.4.0)
  2. Adding the indicated <connection-properties> when using postgres

This works well in my testing... with the only thing being that I'm not yet sure why the container still has the old 42.2.25 jar in it:

$ docker exec -it jira bash
bash-5.1$ find / -name "postgres*jar" 2>/dev/null
/opt/jira/lib/postgresql-42.4.0.jar
/opt/jira/lib/postgresql-42.2.25.jar
bash-5.1$

@rwarren
Copy link
Author

rwarren commented Jul 20, 2022

I should also add that newer versions of Jira (I first saw it in 8.22.6 but maybe slightly sooner?) now highlight that this change should be done with a post-boot welcome page. This PR fixes the problem and prevents this message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant