Commit bac8c2b
ascend-robot
Fix the bug related to the compatibility with openyuanrong_datasystem interface.
Co-authored-by: liwenlin<liwenlin8@huawei.com>
Co-authored-by: liwenlin<liwenlin8@huawei.com>
# message auto-generated for no-merge-commit merge:
!18 merge fix_ds_zcopy into main
[Fix] Fix the bug related to the compatibility with openyuanrong_datasystem interface.
Created-by: Lexie-7
Commit-by: liwenlin
Merged-by: ascend-robot
Description: # Fixing details
- Modified the interface parameters of `mcreate` and `get_buffers` in the `YuanrongStorageClient` connection.
The return value of the interface corresponding to the openyuanrong_datasystem does not need to include the `status`. Therefore, when calling the corresponding function in TransferQueue, the return value also needs to be adjusted.
- The waiting time for the `get_buffers` operation has been modified.If the data does not exist, do not wait. If the data exists, then proceed with the normal retrieval.
The meaning of the `timeout_ms` parameter in `get_buffers` is the waiting time for subscription, that is, how long to wait if the data **does not exist**. If the data already exists, it will be retrieved normally and is not affected by this parameter.
However, in TransferQueue, the data retrieved by `get_buffers` should definitely exist, it has nothing to do with the `timeout_ms` parameter. Even if the data is not immediately retrieved, as long as it is known to exist, it will definitely be retrieved no matter how long it takes.
See merge request: Ascend/TransferQueue!181 parent c2e514a commit bac8c2b
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments