Bernardo Botella test_and_ci last 1 month


 2 Collaborator
Štefan Miklošovič , Caleb Rackliffe

 1 Review
75ec1ada7a40761e8b6eb948925c2dd2b116876e

75ec1ada7a40761e8b6eb948925c2dd2b116876e | Author: Stefan Miklosovic <smiklosovic@apache.org>
 | 2024-12-16 23:18:36+01:00

    Check presence of a snapshot in a case-insensitive manner on macOS platform to prevent hardlinking failures
    
    When hardlinks are created for a snapshot with the name "snapshot"
    and then we take a snapshot with the name "Snapshot", macOS platform thinks
    that this was already hardlinked because its hardlinking implementation
    does not seem to be case-sensitive. The fix consists of checking,
    in a case-insensitive manner, if there is already such snapshot,
    but only on macOS platform.
    
    The patch also does not create empty directories for a given snapshot
    prematurely before checking its presence so there are not dangling empty
    directories in case of a failure.
    
    patch by Stefan Miklosovic; reviewed by Bernardo Botella, Caleb Rackliffe for CASSANDRA-20146