Opened at 2012-12-11T18:45:05Z
Last modified at 2019-08-15T12:16:34Z
#1893 new enhancement
don't do lease-renewal automatically — at Version 1
Reported by: | zooko | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | undecided |
Component: | code-storage | Version: | 1.9.2 |
Keywords: | leases garbage-collection accounting | Cc: | warner |
Launchpad Bug: |
Description (last modified by daira)
Currently lease-renewal happens when you explicitly tell your client to create a file or to renew leases, and also on some other occasions. I think that the "other occasions" are only when you update a mutable file, but I'm not sure. I don't think this is appropriate because in the future you might want to update a file without thereby agreeing to pay for the file's preservation.
To close this ticket:
- Read the source code and write down on this ticket all the ways that leases can get added or renewed.
- Write a patch that removes the lease renewal from all cases except for when the client is either creating a file or sending an "Add or Renew Lease" request.
- Of course, unit tests of step 2 are required!
Brian: please let us know your opinion of this.
Note: See
TracTickets for help on using
tickets.
Isn't the fact that you're modifying a file a pretty strong heuristic indication that you want to keep it?