FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Property MaxAccessWaitOrRetryTime

    MaxAccessWaitOrRetryTime

    Gets or sets the maximum time that repository operations will wait for successful I/O access to the repository before throwing a TimeoutException. Must be between 1 second and 1 minute. Default is 8 seconds.

    Declaration
    public TimeSpan MaxAccessWaitOrRetryTime { get; set; }
    Property Value
    Type Description
    TimeSpan
    Remarks

    An operation waits when it finds the repository inaccessible, for example after a health check has found that its volume stopped answering (see HealthCheckInterval): it retries initializing the repository once a second until it succeeds or this time is up.

    A commit or a rollback of a transaction needs access for each of its files, and its files share this wait instead of having one each (disposing a transaction rolls nothing back and does not wait for access). Only time spent getting access counts (waiting for it, and the attempts to reach a volume that does not answer), not the time the files take to commit, so a large commit on slow but healthy storage is never cut short, and an outage is ridden out wherever in the commit it happens, as long as the commit's waits for its outages together stay within this time. Once the time is used up, each further file is attempted once without waiting and, if the repository is still inaccessible, fails with the same TimeoutException, which the commit or rollback reports through TransactionCompletionFailed like any file it could not complete, leaving the file for the cleaner (a deletion that a committed delete journal records is committed, so the commit does not report it). So on a volume that has stopped answering, a commit of any number of files returns after waiting this long once. On a version 1 repository, staging a staged transaction, which writes a marker for each file it deletes, shares one wait among its files in the same way.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    The value is less than 1 second or greater than 1 minute.

    © Singulink. All rights reserved.