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

Implement semaphore synchronization to prevent concurrent modificatio…issue#4094 #4301

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 24, 2024

  1. Implement semaphore synchronization to prevent concurrent modificatio…

    …ns of InstanceStatus
    
    Implement semaphore synchronization to prevent concurrent modifications of InstanceStatus
    
    - Added a Semaphore to control concurrent access to InstanceStatus modifications.
    - Modified EurekaClientConfigurationRefresher to acquire the semaphore before performing deregister and register operations.
    - Modified DiscoveryClientConfiguration to acquire the semaphore before performing refreshInstanceInfo operations.
    - Ensured the semaphore is released in a finally block to handle exceptions properly.
    
    This change addresses the issue of concurrent modifications of InstanceStatus, ensuring that only one thread can modify the status at a time.
    bazzop authored Aug 24, 2024
    Configuration menu
    Copy the full SHA
    b7d39e6 View commit details
    Browse the repository at this point in the history