[tahoe-lafs-trac-stream] [tahoe-lafs] #1816: add a lease renewal method that only renews some shares in a shareset, to be used by repair/rebalancing
tahoe-lafs
trac at tahoe-lafs.org
Fri Sep 28 01:55:35 UTC 2012
#1816: add a lease renewal method that only renews some shares in a shareset, to
be used by repair/rebalancing
-------------------------+-------------------------------------------------
Reporter: | Owner:
davidsarah | Status: new
Type: defect | Milestone: undecided
Priority: normal | Version: 1.9.2
Component: code- | Keywords: forward-compatibility rebalancing
storage | repair RIStorageServer
Resolution: |
Launchpad Bug: |
-------------------------+-------------------------------------------------
Comment (by davidsarah):
Straw-man signature:
{{{
def add_or_renew_leases(storage_index=StorageIndex,
sharenums=SetOf(int, maxLength=MAX_BUCKETS),
requested_duration_seconds=int)
"""
Renew leases on the specified shares, or add them where there is no
existing
lease, requesting the given lease duration in seconds. Raise
IndexError (and
do not renew any leases) if any of the specified shares are not held
by this
server.
Returns the lease duration accepted by the server, in seconds, which
may be
smaller than the requested duration. (This value does not take into
account
that existing leases on one of more of the specified shares, added by
this or
other accounts, may have a longer duration.)
Server expiration policy might result in shares being deleted before
the
accepted lease duration returned by this method, but this should not
normally
happen without intervention to change the configured policy (for this
account
or globally), or to explicitly delete shares.
"""
return int
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1816#comment:2>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list