ArafatKhan2198 opened a new pull request, #6742: URL: https://github.com/apache/ozone/pull/6742
## What changes were proposed in this pull request? ### Description: This pull request proposes changes to handle the scenario where a duplicate pipeline ID is detected in Apache Ozone's Recon component. The modifications ensure that when a pipeline with a duplicate ID is encountered, the system logs a warning and skips the addition, instead of throwing an exception. ### Proposed Changes: 1. Modified the `addPipeline` method in the `ReconPipelineManager` class to check if the pipeline already exists before attempting to add it. 2. If a duplicate pipeline ID is detected, the system logs a warning and skips the addition. 3. Implemented a test case to verify that no exception is thrown when attempting to add a duplicate pipeline. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-10880 ## How was this patch tested? A new test case was added to `TestReconPipelineManager` to verify that no exception is thrown when a duplicate pipeline is added. The test case involves: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
