-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-11120. Rich rebalancing status info #6911
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5bf295e
Init commit
juncevich 9dafda8
HDDS-11120. Fix compilation
juncevich 8d78b36
HDDS-11120. Fix checkstyle errors
juncevich 04fb871
HDDS-11120. Fix findbugs errors
juncevich b25c6c0
HDDS-11120. Fix findbugs errors
juncevich 648dfde
HDDS-11120. Fix rat check
juncevich 7b3eb0c
HDDS-11120. Try to fix robot balancer test
juncevich a0e92f1
HDDS-11120. Try to fix robot balancer test
juncevich 2f0b05e
HDDS-11120. Try to fix robot balancer test
juncevich a9b9864
HDDS-11120. Try to fix robot balancer test
juncevich 1dda8b3
HDDS-11120. Try to fix robot balancer test
juncevich 0bbe031
HDDS-11120. Fix checkstyle
juncevich 20cf496
HDDS-11120. Try to fix robot balancer test
juncevich 947ae3b
HDDS-11120. Try to fix robot balancer test
juncevich e7cd45b
HDDS-11120. TFix test + refactoring + modify balancer robot test
juncevich 7c035be
HDDS-11120. Fix formatting.
juncevich b6ea9a5
HDDS-11120. Fix balancing test.
juncevich 68b12b1
HDDS-11120. Fix review notices.
juncevich 1538ee9
HDDS-11120. Fix review notices.
juncevich 04bb57e
HDDS-11120. Fix testBalancer.
juncevich 4a39571
HDDS-11120. Change -h command description.
juncevich 2207557
HDDS-11120. Fix review notices.
juncevich daa7da4
HDDS-11120. Change test name.
juncevich 9b51a85
HDDS-11120. Remove testBalancerStatus test.
juncevich ffafee0
HDDS-11120. Fix testBalancer test.
juncevich fe663c1
Empty commit message for restart pr checker
juncevich b59431b
HDDS-11120. Fix review notices.
juncevich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
.../main/java/org/apache/hadoop/hdds/scm/container/balancer/ContainerBalancerStatusInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * <p> | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * <p> | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.hadoop.hdds.scm.container.balancer; | ||
|
|
||
| import org.apache.hadoop.hdds.protocol.proto.HddsProtos; | ||
|
|
||
| import java.time.OffsetDateTime; | ||
| import java.util.List; | ||
|
|
||
| /** | ||
| * Info about balancer status. | ||
| */ | ||
| public class ContainerBalancerStatusInfo { | ||
| private final OffsetDateTime startedAt; | ||
| private final HddsProtos.ContainerBalancerConfigurationProto configuration; | ||
| private final List<ContainerBalancerTaskIterationStatusInfo> iterationsStatusInfo; | ||
|
|
||
| public ContainerBalancerStatusInfo( | ||
| OffsetDateTime startedAt, | ||
| HddsProtos.ContainerBalancerConfigurationProto configuration, | ||
| List<ContainerBalancerTaskIterationStatusInfo> iterationsStatusInfo) { | ||
| this.startedAt = startedAt; | ||
| this.configuration = configuration; | ||
| this.iterationsStatusInfo = iterationsStatusInfo; | ||
| } | ||
|
|
||
| public OffsetDateTime getStartedAt() { | ||
| return startedAt; | ||
| } | ||
|
|
||
| public HddsProtos.ContainerBalancerConfigurationProto getConfiguration() { | ||
| return configuration; | ||
| } | ||
|
|
||
| public List<ContainerBalancerTaskIterationStatusInfo> getIterationsStatusInfo() { | ||
| return iterationsStatusInfo; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.