Skip to content

[P2] Handle incomplete UTF-8 at byte-truncated pod log boundaries #17

Open

Description

@brendandburns

Upstream: kubernetes-client#2756
Priority: P2 (log retrieval correctness)

The upstream report on client 36.0.3 describes UnicodeDecodeError when read_namespaced_pod_log() preloads a response and limit_bytes cuts a multibyte UTF-8 character. The original report points to an older response-decoding path, so first reproduce on the current client and identify the current decoder.

Define and document an appropriate policy for incomplete trailing characters in pod logs. Avoid globally ignoring arbitrary invalid data or changing unrelated structured-response decoding.

Acceptance criteria:

  • Test a byte limit splitting a multibyte character and a complete UTF-8 response.
  • Preserve streaming/raw-byte access and unrelated API response behavior.
  • If the current client is already unaffected, record reproducible evidence instead of introducing a speculative fix.

Activity

  1. added
    bug
    on Nov 17, 2026
  2. linked a pull request that will close this issueHandle incomplete UTF-8 at pod log byte limits #33on Nov 19, 2026
  3. brendandburns commented on Nov 19, 2026

    @brendandburns
    OwnerAuthor

    Clarification to the original assignment: this task's designated agent/base branch is agent/p2-issue-17. Raise/target the PR against that branch, not master; the existing draft PR has been retargeted accordingly. Keep the requested commit order: first a test-only commit demonstrating the issue, then a separate fix commit only if reproduced. If it does not reproduce, leave the evidence/test commit and explain why no fix is appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions