Unused But Active Contracts
BUG REPORT
Stack Trace or error message
Expected Behavior
After doing some renewals and replacements, the renter will start uploading using all contracts.
Observed Behavior
After doing some renewals and replacement, the renter was only using a few contracts. I believe that it was using the replacement contracts, but it was not using the renewed contracts.
How to reproduce it (as minimally and precisely as possible)
This was on mainnet, so I'm not 100% confident in the reproduction, but:
- Had a bunch of contracts which were multiple blocks (~50) past the renew time, but hadn't renewed yet due to the wallet being locked
- Had a bunch of contracts that had gone bad according to the hostdb - low score
- Upon unlocking the wallet renewals and replacements kicked off
- After I had a fresh set of contracts, uploads were going but only a few contracts were being used. Most of the contracts (I believe the renewals) were stuck at 0 bytes uploaded.
Restarting siad cleared the issue up, once I restarted all contracts were being used. Which is a bit unfortunate because it means I'm not 100% confident about all the factors playing into the issue.
Environment
- Sia version: v1.3.7 - master branch
- OS: linux