Skip to content

KafkaAdmin raises UnsupportedVersion for client-side errors #1627

Closed
@jeffwidman

Description

@jeffwidman

UnsupportedVersionError is intended to indicate a server-side error:

class UnsupportedVersionError(BrokerResponseError):
errno = 35
message = 'UNSUPPORTED_VERSION'
description = 'The version of API is not supported.'

But the new KafkaAdmin class is raising it client-side, without triggering it from the broker... for example:

I understand that semantically this seems like the appropriate error to raise. However, this is confusing when debugging... for a real-life example, see Parsely/pykafka#697. So I strongly feel that we should keep the server-side errors separate from client-side errors, even if all the client is doing is proactively protecting against hitting a situation where the broker would return this error.

I'm not sure of the right exception to raise, probably we should create a new one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions