You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "hanicz (via GitHub)" <gi...@apache.org> on 2026/02/25 07:59:46 UTC
[PR] KNOX-3253: Add advisory lock to the postgres table creation to avoid … [knox]
hanicz opened a new pull request, #1157:
URL: https://github.com/apache/knox/pull/1157
…catalog race condition when multiple Knox instance start up simultaneously
[KNOX-3253](https://issues.apache.org/jira/browse/KNOX-3253) - Improve Postgres DB table creation with locks
## What changes were proposed in this pull request?
- Adds advisory lock to the postgres table creation to avoid catalog race condition when multiple Knox instance start up simultaneously
## How was this patch tested?
Manually tested with a local setup. I had postgres running in docker desktop and a local Knox instance. I created an advisory lock and created the table manually. Knox process was waiting on the lock. After unlocking it Knox proceeded with the knox_token_metadata table creation. Verified token creation on UI and DB as well.
```
<property>
<name>gateway.service.tokenstate.impl</name>
<value>org.apache.knox.gateway.services.token.impl.JDBCTokenStateService</value>
</property>
<property>
<name>gateway.database.type</name>
<value>postgresql</value>
</property>
<property>
<name>gateway.database.port</name>
<value>5432</value>
</property>
<property>
<name>gateway.database.host</name>
<value>localhost</value>
</property>
<property>
<name>gateway.database.name</name>
<value>mydb</value>
</property>
```
## Integration Tests
N/A
## UI changes
N/A
--
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: dev-unsubscribe@knox.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KNOX-3253: Add advisory lock to the postgres table creation to avoid … [knox]
Posted by "smolnar82 (via GitHub)" <gi...@apache.org>.
smolnar82 merged PR #1157:
URL: https://github.com/apache/knox/pull/1157
--
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: dev-unsubscribe@knox.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KNOX-3253: Add advisory lock to the postgres table creation to avoid … [knox]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #1157:
URL: https://github.com/apache/knox/pull/1157#issuecomment-3957577714
## Test Results
7 tests 7 ✅ 1s ⏱️
1 suites 0 💤
1 files 0 ❌
Results for commit 9f6bd0c7.
[test-results]:data:application/gzip;base64,H4sIAKCwnmkC/1WMyw6DIBQFf8Ww7oJXvaE/0+AFElKVhsfK9N+LVi3uzsxJZiHOjzaRR8duHUnF5xNMiTr7MO9Yj7xecOxnKohX8fLvKugpnPbjRdgYQ9xNLPPRW2eb+/G/tnET27htYZgmnysQ5frBUAQhnTJacFACpDUMQfUDl4JRuHPUSD5fVBSA+/sAAAA=
--
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: dev-unsubscribe@knox.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org