-
Notifications
You must be signed in to change notification settings - Fork 38.8k
rpc: Make unloadwallet wait for complete wallet unload #14941
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
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Concept ACK - I think this can be useful outside of the tests, as well.
Strictly spoken this is a feature, not a bugfix, though if it's optional and improves testing I think a point can be made to backport it anyhow. |
|
Code change looks ok, but this shouldn't be an option. Making If you think there is reason to support Also, if you want to keep the |
efaa691 to
36d41ff
Compare
|
Changed to synchronous unload. Locally added some sleeps to see if there were any connection timeout, but didn't manage to cause one.
no it doesn't, it waits until the weak pointer is expired. |
36d41ff to
c85d15d
Compare
c85d15d to
ffa8799
Compare
ffa8799 to
353659d
Compare
fec3c58 to
981138c
Compare
ryanofsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems like it should work, but multiwallet test is failing. There's some problem with combine_logs on travis, but locally I see:
AssertionError: [node 0] Expected message "BerkeleyBatch: Can't open database w8_copy \(duplicates fileid \w+ from w8\)" does not partially match stderr:
"bitcoind: wallet/wallet.cpp:95: void ReleaseWallet(CWallet*): Assertion `g_unloading_wallet_set.erase(wallet) == 1' failed."
|
@ryanofsky looks like you started reviewing before my latest push? |
981138c to
c8d60d1
Compare
promag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self review, 2 comments must be fixed.
a453db6 to
7aed2bb
Compare
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
Summary: This adds the `unloadwallet` RPC, release notes, and tests for it. Partial backport of Core PR13111 bitcoin/bitcoin@6608c36 bitcoin/bitcoin@9f9b50d bitcoin/bitcoin@4940a20 bitcoin/bitcoin@ccbf7ae bitcoin/bitcoin@0b82bac (only the additional test added to `wallet_multiwallet.py` is taken from here). Depends on D4252 Note to reviewers: This RPC has a bug discussed here bitcoin/bitcoin#14941 Test Plan: make check test_runner.py Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4253
…unload 645e905 doc: Add release notes for unloadwallet change to synchronous call (João Barbosa) c37851d rpc: Make unloadwallet wait for complete wallet unload (João Barbosa) Pull request description: Currently the `unloadwallet` RPC is asynchronous, it only signals the intent to unload the wallet and then returns the response to the client. The actual unload can happen later and the client has no way to be notified of that. This PR makes the `unloadwallet` RPC synchronous, meaning that it blocks until the wallet is fully unloaded. Replaces bitcoin#14919, fixes bitcoin#14917. Tree-SHA512: ad88b980e2f3652809a58f904afbfe020299f3aa6a517f495ba943b8d54d4520f6e70074d6749be8f5967065c0f476e0faedcde64c8b4899e5f99c70f0fd6534
Currently the
unloadwalletRPC is asynchronous, it only signals the intent to unload the wallet and then returns the response to the client. The actual unload can happen later and the client has no way to be notified of that.This PR makes the
unloadwalletRPC synchronous, meaning that it blocks until the wallet is fully unloaded.Replaces #14919, fixes #14917.