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 摘要。