refactor: Migrate cloudflare_kv from adapter::kv to Access instead#6340
refactor: Migrate cloudflare_kv from adapter::kv to Access instead#6340Xuanwo merged 16 commits intoapache:mainfrom
Conversation
|
The free Cloudflare account seems to trigger timeouts easily, which causes test failures. |
|
Should key-value stores support create_dir? Many tests assume create_dir is available by default, which leads to test failures. |
|
Cloudflare’s kv rest api has strict limitations, and it’s very easy to hit timeouts, which often causes test failures. |
d8c0417 to
7d526df
Compare
|
Due to the limitations of the free Cloudflare account, it is not possible to run all behavior tests successfully. However, I have verified that all tests pass locally. |
| Some(limit) => { | ||
| // The list limit of cloudflare_kv is limited to 10..1000. | ||
| if !(10..=1000).contains(&limit) { | ||
| 1000 |
There was a problem hiding this comment.
The reason for forcibly setting the limit to 1000 here is that a list query with limit=1 will be triggered, but Cloudflare KV requires the limit to be within 10 to 1000. Therefore, I changed it to Cloudflare's default value of 1000.
Reference:
opendal/core/src/layers/complete.rs
Line 129 in 1e3b7f5
Or have any other suggestions?
Xuanwo
left a comment
There was a problem hiding this comment.
Thank you for working on this!
|
Hi, do you have interest to take a look over this error? |
|
Don't know much about this D language, I'll try to see if Ai can fix it. |

Which issue does this PR close?
Part #5739
Rationale for this change
Part #5739
What changes are included in this PR?
Migrate cloudflare_kv from adapter::kv to Access instead
Are there any user-facing changes?