apache / apache/pulsar-client-python

exceptions must derive from BaseException

未关闭
#132 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
75
派生
53
PR 合并指标
30 天内没有已合并 PR

描述

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

3.1.0

### Minimal reproduce step

def callback(self,res):
self.logger.info(f"Message published,data={res}")
producer = self.client.create_producer(topic, compression_type=pulsar.CompressionType.LZ4 )
producer.send_async(send_message, self.callback(one_data))

### What did you expect to see?

mmm

### What did you see instead?

mmmm

### Anything else?

_No response_

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

贡献指南

打开贡献指南

调研方向

未指定源文件或测试。首先使用 3.1.0 客户端运行最小 Python 示例,并检查 send_async 如何接收 callback;将产生的异常与 issue 标题进行比较。当已复现所报告的异常行为、确定其起源的客户端路径,并且针对修正后的行为存在覆盖时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api, distributed-systems
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。