Skip to content

Refactor: Replace silent capability stubs with explicit NotImplementedError failures - #788

Open
magqqgq wants to merge 1 commit into
robinhood:masterfrom
magqqgq:magqqgq-patch-1
Open

Refactor: Replace silent capability stubs with explicit NotImplementedError failures#788
magqqgq wants to merge 1 commit into
robinhood:masterfrom
magqqgq:magqqgq-patch-1

Conversation

@magqqgq

@magqqgq magqqgq commented Aug 16, 2026

Copy link
Copy Markdown

Why
The Confluent Kafka transport driver previously contained placeholder stubs for topic creation and partition lookup capabilities that failed silently or lacked explicit interface enforcement.

How
Replaced unreachable or silent topic/partition capability stubs with explicit NotImplementedError failures across the consumer and producer components.

Security/Robustness changes
Improves API contract clarity by raising explicit errors when unsupported transport operations are invoked.

Testing
Verified that the modified Python file compiles cleanly using py_compile.

…dError failures

Why
The Confluent Kafka transport driver previously contained placeholder stubs for topic creation and partition lookup capabilities that failed silently or lacked explicit interface enforcement.

How
Replaced unreachable or silent topic/partition capability stubs with explicit NotImplementedError failures across the consumer and producer components.  

Security/Robustness changes
Improves API contract clarity by raising explicit errors when unsupported transport operations are invoked.

Testing
Verified that the modified Python file compiles cleanly using py_compile.
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