-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: integration: add v2v3 emulation #9634
Conversation
Currently tests are broken due to v2v3 emulation doesn't work properly for |
Are member API supposed to be supported by v2v3 emulation? Or it just supports basic KV operations...? |
@yudai the kv operations are the most tested; it still doesn't cover all membership operations. I left stubs for membership calls (see v2v3/cluster.go) with the intent that it would make v3 calls, convert to v2 structures, then let v2http handle the http response. |
@heyitsanthony thanks for the pointer. I found that the methods of the
|
Another potential issue I found is that stms used in store.go can be broken.
If I understand correctly, in this code (from store.go), |
I don't think adding error returns will break much. A lot of those old interfaces should be internal. Worst case, there can be some adapter to get the old behavior back.
For every key the txn is writing, the applier calls
The TTL's are a stub too. A correct/efficient implementation needs some thought. |
@heyitsanthony Thank you for the reference. I overlooked that readset and now I understand the behavior. It's taking time more than I expected when I started this work. I'll make tests pass one by one anyway. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
from #9626.
Run existing integration tests for v2 api (
TestV2
) on v2v3 emulation to improve the compatibility between them.