You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "jaideeppyne (via GitHub)" <gi...@apache.org> on 2026/09/16 09:08:35 UTC
[PR] fix(rest): keep table tokens off the catalog session [iceberg-python]
jaideeppyne opened a new pull request, #3976:
URL: https://github.com/apache/iceberg-python/pull/3976
# Rationale for this change
`RestCatalog.commit_table` assigned into `self._session.headers`, which is the session's own mapping. A table-scoped token then stuck on the catalog session for later requests.
Session.auth would also overwrite a per-request `Authorization` header with the catalog token, so the table token is applied through a request-local auth callable and the session headers are left unchanged.
A second, related leak: fsspec caches `S3FileSystem` instances by constructor kwargs. Custom S3 signers are registered after construction under a fixed event id, so a second catalog with the same client kwargs replaced the first catalog's signer. `skip_instance_cache` is set when a signer is in use.
Closes #3970
## Are these changes tested?
Unit tests in `tests/catalog/test_rest.py` and `tests/io/test_fsspec.py`.
## Are there any user-facing changes?
Bug fix. Catalog sessions no longer retain a table-scoped token after `commit_table`. FileIO instances with custom S3 signers are no longer shared across catalogs via fsspec's instance cache.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] fix(rest): keep table tokens off the catalog session [iceberg-python]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3976:
URL: https://github.com/apache/iceberg-python/pull/3976#issuecomment-6227329844
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] fix(rest): keep table tokens off the catalog session [iceberg-python]
Posted by "jaideeppyne (via GitHub)" <gi...@apache.org>.
jaideeppyne commented on PR #3976:
URL: https://github.com/apache/iceberg-python/pull/3976#issuecomment-6229848603
This is still relevant and up to date with main. I'd appreciate a review whenever someone has time, thanks!
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org