Repository navigation
[CXP-1251] - Promote v0.2.6-test to main - #86
Conversation
…B response limit (#81) * Paginate group and workspace member grants to stay under Lambda payload limit Databricks returns every group member in a single Get group response and has no member pagination. Grants() emitted one grant per member in one response, so a group with ~11k+ members (e.g. an all-users account group) exceeded the 6MB Lambda response limit and failed with HTTP 413 on every retry. Page members locally (GrantsPageSize = 2000, ~1.1MB per page) using the page token as a member offset, and emit role rule-set grants on the first page only. Databricks returns members in a different order on every call, so they are sorted before slicing so pages line up across re-fetches in separate Lambda invocations. Apply the same paging to workspace assignment grants. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Page member grants by last emitted key instead of offset An offset page token into a list that is re-fetched for every page drifts when members are added or removed between page invocations: a removal skips the first member of the next page (C1 reads that grant as revoked) and an addition grants one member twice. Store the key of the last emitted item (member Ref for groups, principal ID for workspaces) and start the next page after it, so membership churn no longer shifts page boundaries. Add churn tests for both paths, a workspace multi-page test, and mark the test-only shuffle as not security sensitive for gosec. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Superseded — see the current review report for commit
|
Connector PR Review: [CXP-1251] - Promote v0.2.6-test to mainBlocking Issues: 0 | Suggestions: 0 | Threads Resolved: 0 Review SummaryThis PR brings the #81 change into I checked these specifically:
How the repo-local criteria applied:
There's no coverage gap. Security IssuesNone found. Correctness IssuesNone found. SuggestionsNone. Reviewed commit: |
There was a problem hiding this comment.
No blocking issues found — see the full review report
Promotes the
v0.2.6-testrelease, which passed validation, tomain.This branch points at the tag's commit (
6384cfa1), so the PR head is exactly what was validated. The release holds only #81.staginghas later changes (#70 Unity Catalog metastore sync, #56 incremental sync) that weren't part of this release and aren't included.Replaces #85, which promoted the same change by cherry-picking it.
Change (from #81)
Group and workspace member grants are now paged locally, 2000 per page, using a key cursor. This keeps a single
Grantsresponse under the 6MB Lambda payload limit; large groups previously failed with HTTP 413 insync-grants-for-resource.🤖 Generated with Claude Code