Skip to content

Import gssapi lazily for GSSAPI - #38

Closed
dogukancagatay wants to merge 1 commit into
aiven-2.3.1from
dogukancagatay/lazy-import-gssapi
Closed

dogukancagatay wants to merge 1 commit into
aiven-2.3.1from
dogukancagatay/lazy-import-gssapi

Conversation

@dogukancagatay

@dogukancagatay dogukancagatay commented Oct 22, 2026 •

Copy link
Copy Markdown

Importing kafka loaded the gssapi library whenever it was installed,
even in processes that never use Kerberos. That costs about 5 MiB of
memory per process.

Load gssapi only when a GSSAPI mechanism is created. A missing library
still fails at that point with the same error.

Related upstream change: dpkp#3171

Importing kafka loaded the gssapi library whenever it was installed,
even in processes that never use Kerberos. That costs about 5 MiB of
memory per process.

Load gssapi only when a GSSAPI mechanism is created. A missing library
still fails at that point with the same error.
@dogukancagatay
dogukancagatay marked this pull request as ready for review October 22, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant