apache / apache/pulsar-client-cpp
[Improve] Show Invalid Token Error Message
- 主要語言
- C++
- 星號
- 71
- 分支
- 90
- 平均合併
- 2 小時 33 分鐘
- 30 天內合併 PR
- 3
描述
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing similar.
### Version
2.9.3.11+
### Minimal reproduce step
pass an invalid token and try to create a producer
### What did you expect to see?
User error messages that specify the input token is invalid.
Error Checking/Getting Partition Metadata while creating producer on {topicName} -- InvalidToken
### What did you see instead?
Error Checking/Getting Partition Metadata while creating producer on {topicName} -- ConnectError
### Anything else?
Similar stack-overflow questions:
https://stackoverflow.com/questions/62227305/apache-pulsar-error-checking-getting-partition-metadata-while-subscribing
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
貢獻指南
研究方向
在建立 producer 時傳入無效 token 以重現此問題,然後追蹤 C++ client 中的分割區中繼資料錯誤路徑。當回報的錯誤識別為 InvalidToken 而非 ConnectError,並與預期訊息一致時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- cpp
- 領域
- api
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100