deprecate disk tokens, instead rely on deadlines and active monitoring (#18947)

disk tokens usage is not necessary anymore with the implementation
of deadlines for storage calls and active monitoring of the drive
for I/O timeouts.

Functionality kicking off a bad drive is still supported, it's just that 
we do not have to serialize I/O in the manner tokens would do.
This commit is contained in:
Harshavardhana
2024-02-02 10:10:54 -08:00
committed by GitHub
parent ce0cb913bc
commit 99fde2ba85
2 changed files with 13 additions and 162 deletions

View File

@@ -73,7 +73,7 @@ func LookupConfig(kvs config.KVS) (cfg *Config, err error) {
}
dur, _ := time.ParseDuration(d)
if dur < time.Second {
cfg.MaxTimeout = time.Minute * 2
cfg.MaxTimeout = 30 * time.Second
} else {
cfg.MaxTimeout = getMaxTimeout(dur)
}
@@ -89,7 +89,7 @@ func getMaxTimeout(t time.Duration) time.Duration {
}
dur, _ := time.ParseDuration(d)
if dur < time.Second {
return time.Minute * 2
return 30 * time.Second
}
return dur
}