Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2539] Shim: Add deadlock tracking feature #814

Closed
wants to merge 1 commit into from

Commits on Apr 5, 2024

  1. [YUNIKORN-2539] Shim: Add deadlock tracking feature

    Replaces sync.{RW}Mutex with internal locking.{RW}Mutex implementations.
    The new implementation wraps the go-deadlock library with logic to
    conditionally enable deadlock detection based on the presence of
    environment variables:
    
    To enable the feature:
    
    - DEADLOCK_DETECTION_ENABLED=true
    
    To customize the timeout before potential deadlocks are logged (default
    is 60 seconds):
    
    - DEADLOCK_TIMEOUT_SECONDS=60
    
    See https://github.com/sasha-s/go-deadlock for more details.
    craigcondit committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    27a8002 View commit details
    Browse the repository at this point in the history