gavinchou opened a new pull request, #71376:
URL: https://github.com/apache/doris/pull/71376
### What problem does this PR solve?
Cherry-pick #70210 to `branch-4.2`.
Close all seven per-operation BDB JE group administrators in `finally`
blocks so SSL-backed administrators release their certificate-monitor
executors. Preserve existing return values and exception handling, including
nested conflict-node removal. `branch-4.2` already uses JE
`18.3.18-doris-SNAPSHOT`, which provides `close()`.
The Java implementation, 18 test cases and PKCS#8 certificate fixture are
unchanged from the original PR. The only conflict is in `.gitleaks.toml`:
retain the existing 4.2 configuration and add the exact-path private-key
allowlist needed by the fixture, without importing unrelated master entries.
### Release note
Release BDB JE group administrators after frontend metadata and HA
operations, preventing certificate-monitor thread retention when using
an SSL-backed administrator.
### Check List (For Author)
- Test:
- [x] `git diff --check`.
- [x] Both changed Java files pass Checkstyle 9.3 using plugin 3.1.2 and
unchanged `branch-4.2` rules (isolated POM; no application compilation).
- [x] Both Java files and the new fixture are byte identical to #70210.
- [x] OpenSSL confirms the original key, PKCS#8 key and client certificate
have identical public keys.
- [ ] Rerun unit tests and build validation for this backport in CI.
- Behavior changed: Yes, release administrator-owned resources after use.
- Does this need documentation: No.
--
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]