Repository navigation
Fixes 27091: Close SAML validation resources - #34082
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
✅ SSO Login Nightly — PASSED View workflow run · Commit
Totals: 40 passed · 0 failed · 0 flaky · 0 skipped · duration 4m 17s |
✅ Playwright Results — workflow succeededValidated commit ✅ 4618 passed · ❌ 0 failed · 🟡 2 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 48m 40s ⏱️ Max setup 4m 26s · max shard execution 19m 7s · max shard-job elapsed before upload 22m 48s · reporting 17s 🌐 219.69 requests/attempt · 2.21 app boots/UI scenario · 40.02% common-shard skew Optimization targets still in progress:
🟡 2 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…er-samlvalidator-and-indexresource-unclosed-streams-and-connections
Code Review ✅ Approved🟡 Medium risk · SAML validation now closes keystore and IdP response resources and connections. Closes SAML validation resource leaks by ensuring the JKS keystore stream, IdP response stream, and HTTP connection are properly released across all response and exception paths. Regression tests verify each resource is cleaned up correctly. OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #27091
This PR closes resources owned by the SAML configuration and validation paths:
HttpURLConnectionin afinallyblock on every response and exception path.The
IndexResourceleak described in the issue was already resolved by #27269, so this PR intentionally does not modify it.Type of change:
High-level design:
N/A — small resource-management bug fix.
Tests:
Use cases covered
Unit tests
SamlSettingsHolderTest.javaSamlValidatorTest.javaBackend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
mvn -pl openmetadata-service spotless:check.mvn -nsu -pl openmetadata-service -DskipTests=false -Dtest=SamlValidatorTest,SamlSettingsHolderTest test.UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>.Fixes #<issue-number>above.