apache / apache/rocketmq-client-cpp

[C extension]some c interface enhancement and bugfix during user using python sdk

未關閉
#397 0 則留言 0 個 reaction 已指派 0 人 已被 @humkum 認領 在 GitHub 檢視
主要語言
C++
星號
393
分支
167
PR 合併指標
30 天內沒有已合併 PR

描述

**BUG REPORT**

1. Please describe the issue you observed:
When we extend the Python sdk with the c interface of the c++ sdk, we find the following question:

- [x] **task 1** [#398] When we open message trace,client log shows follow error:
`(error):processSendResponse error remark:topic[rmq_sys_TRACE_DATA_DefaultRegion] not exist, apply first please!
See http://rocketmq.apache.org/docs/faq/ for further details., error code:17[processSendResponse:552]`
- [x] **task 2** [#400] Setting the log path does not take effect,set log path interface not implemented
```
int SetProducerLogPath(CProducer* producer, const char* logPath) {
if (producer == NULL) {
return NULL_POINTER;
}
return OK;
}
```
- [x] **task 3** [#402] The json format of ConsumeRunningInfo is different from the format required by the broker side, resulting in an error in the display of subscription group details
![image](https://user-images.githubusercontent.com/50660789/152760153-b9547990-aa2f-4c42-8e4a-037be67ba78c.png)

- [ ] **task 4** The obtained local IP in clientID is 127.0.1.1
![image](https://user-images.githubusercontent.com/50660789/152761993-4f6f587f-6488-4e5e-8f4c-8c9a53f2a829.png)

- [x] **task 5** [#404] By using Python sdk,the language displayed by the console was still "CPP",should add c interface to change language type.
![image](https://user-images.githubusercontent.com/50660789/152762422-f4f40060-ed5f-4fac-866f-55dfd258cfdc.png)

- [ ] **task 6** The configuration of the single log size and the maximum number of saved logs does not take effect.

2. Please tell us about your environment:

- What is your OS?

- What is your client version?

- What is your RocketMQ version?

3. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

**FEATURE REQUEST**

1. Please describe the feature you are requesting.

2. Provide any additional detail on your proposed use case for this feature.

2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

4. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

- [sub-task1-issue-number](example_sub_issue1_link_here): sub-task1 description here,
- [sub-task2-issue-number](example_sub_issue2_link_here): sub-task2 description here,
- ...

貢獻指南

開啟貢獻指南

研究方向

檢查剩餘尚未勾選的任務:clientID 中使用的本機 IP,以及單筆日誌大小和保留日誌數量的設定。先從 clientID 和日誌設定周圍的 C 介面開始,接著比較已完成的子任務 issue(#398、#400、#402 和 #404)以及連結的 pull request #399。當兩個剩餘行為都能透過 Python SDK 正常運作,並由專案現有的檢查涵蓋時,才算完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp, python
領域
api, distributed-systems
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
20/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。