Skip to content

Commit

Permalink
Recovery: Fix typo in suspicious replica recoverer that leads to a cr…
Browse files Browse the repository at this point in the history
…ash #6634
  • Loading branch information
ChristophAmes authored and bari12 committed Apr 5, 2024
1 parent 6d725a0 commit 828f0e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,14 @@ def run_once(heartbeat_handler: Any, younger_than: int, nattempts: int, vos: Opt
for reason in suspicious_reason:
if "auditor" in reason["reason"].lower():
from_auditor = True
files_to_be_declared_bad_nattempts_1.append(recoverable_replicas[vo][rse_key][replica_key])
files_to_be_declared_bad_nattempts_1.append(replicas_nattempts_1[vo][rse_key][replica_key])
break

# Bad
if not from_auditor:
if (file_name.startswith("log.")) or (file_name.startswith("user")):
# Don't keep log files or user files
files_to_be_declared_bad_nattempts_1.append(recoverable_replicas[vo][rse_key][replica_key])
files_to_be_declared_bad_nattempts_1.append(replicas_nattempts_1[vo][rse_key][replica_key])
action = ""
else:
# Deal with replicas based on their metadata.
Expand Down

0 comments on commit 828f0e7

Please sign in to comment.