You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Anubhav Jindal (Jira)" <ji...@apache.org> on 2026/07/22 21:17:00 UTC

[jira] [Created] (IMPALA-15204) Upgrade Impala operator Kopf dependency for Python 3.14 compatibility

Anubhav Jindal created IMPALA-15204:
---------------------------------------

             Summary: Upgrade Impala operator Kopf dependency for Python 3.14 compatibility
                 Key: IMPALA-15204
                 URL: https://issues.apache.org/jira/browse/IMPALA-15204
             Project: IMPALA
          Issue Type: Bug
            Reporter: Anubhav Jindal
            Assignee: Anubhav Jindal


*Description* 
{{IMPALA-14981}} moved the operator image to {{{}python:3.14.6-slim{}}}, but the operator can fail at runtime with: {{TypeError: 'NoneType' object does not support the context manager protocol}} during reconcile/logging paths.

Root cause is a compatibility issue between older {{kopf}} ({{{}1.37.2{}}}) and Python {{3.13+}} logging behavior.
In older Kopf, a handler lock optimization can leave {{{}lock=None{}}}, while newer Python logging expects a context-manager lock in handler paths.

*Proposed fix:*
 * Keep Python at {{3.14.6-slim}}
 * Upgrade operator dependency from {{kopf==1.37.2}} to a Python-3.14-compatible version ({{{}kopf==1.44.6{}}})
 * Keep {{kubernetes==30.1.0}} unchanged unless compatibility issues are found

*Testing:*
 * Build operator image with Python {{3.14.6-slim}} + upgraded Kopf
 * Deploy on local k3d test cluster
 * Reconcile {{ImpalaCluster}} and verify operator reaches {{Ready}}
 * Verify no {{{}TypeError{}}}/{{{}NoneType{}}} logging crash in operator logs
 * Run existing operator/unit checks ({{{}test_main.py{}}}) and lint/critique checks

*Impact:*
 * Restores runtime stability for operator on latest Python base image
 * Avoids reverting to older Python image while keeping dependency stack compatible



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org