HDDS-15440. Combine pipelineMap and pipeline2container to a single map in PipelineStateMap#10454
HDDS-15440. Combine pipelineMap and pipeline2container to a single map in PipelineStateMap#10454omkenge wants to merge 25 commits into
Conversation
…p in PipelineStateMap.
HDDS-15440. Combine pipelineMap and pipeline2container to a single ma…
|
Cc @adoroszlai |
|
Thanks @omkenge for the patch. Please enable the build-branch workflow in your fork. |
|
@adoroszlai Done |
|
CC @szetszwo |
szetszwo
left a comment
There was a problem hiding this comment.
+1 the change looks good.
|
CC @sumitagrawl |
|
@omkenge Please check the failing tests. |
|
@omkenge The test failures do not seem transient (https://github.com/omkenge/ozone/actions/runs/27664987145). PTAL. |
|
The failures are not transient. Please fix them instead of simply retriggering CI. To find the problem, you can download test logs from https://github.com/omkenge/ozone/actions/runs/27664987145 (see There is at least one big problem that fails all tests that write any data: |
szetszwo
left a comment
There was a problem hiding this comment.
@omkenge , thanks for the update!
- Please see the comment inlined.
- There are still some test failures in https://github.com/omkenge/ozone/actions/runs/27710532153 . Please take a look.
|
CC @ivandika3 @szetszwo |
|
Cc @sumitagrawl |
|
@omkenge , Now we are copying in all cases. Could you take a look at this #10454 (comment) ? |
|
cc @szetszwo |
|
@szetszwo It would be great if you can guide me on failing CI |
What changes were proposed in this pull request?
HDDS-15440. Combine pipeline metadata and container mappings into a single map
This patch refactors
PipelineStateMapby combining the existingpipelineMapandpipeline2containerdata structures into a single map that stores both thePipelineobject and its associated container information.Previously,
PipelineStateMapmaintained two separate maps keyed byPipelineID:Maintaining related information in separate maps increased code complexity and introduced the possibility of the two maps becoming inconsistent. This patch introduces a unified data structure that encapsulates both the pipeline metadata and its container set, ensuring that all pipeline-related state is managed together.
The change simplifies state management, improves maintainability, and reduces the risk of synchronization issues between multiple maps while preserving the existing behavior of
PipelineStateMap.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15440
How was this patch tested?
The patch was tested by:
PipelineStateMapunit tests.No functional behavior changes were introduced; the patch is a refactoring focused on improving the internal implementation of
PipelineStateMap.