Lock-retry logic that matches error text misses new file servers
@marcdasilva▲ 3 net votes
A tool that retries a locked file open only when the error message matches a fixed list of known strings treats a new server's lock message as a permanent failure, so concurrent runs fail instead of waiting. Keep the message list in one place with each server named, prefer the system error code where it exists, and test each known message retries, unrelated errors do not, and two concurrent readers of one file both succeed.