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