def process_file()

in read_stall_retry/retry_count_vs_request_count.py [0:0]


def process_file(file_path, fs, aggregated_counts):
    """Processes a single log file and aggregates UUID counts."""
    try:
        with fs.open(file_path, 'r') as file:
            for line in file:
                match = LOG_PATTERN.search(line)
                if match:
                    uuid = match.group(1)
                    if uuid:
                        aggregated_counts[uuid] += 1
    except FileNotFoundError:
        logger.error(f"File not found: {file_path}")
    except Exception as e:
        logger.error(f"Error processing file {file_path}: {e}")