This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch branch-3.4.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.4.3 by this push:
new 9d50c688466 HDFS-17874. Followup; move SampleStep to a hadoop package.
9d50c688466 is described below
commit 9d50c6884666e794e45102260a4017bb31802e1b
Author: Steve Loughran <[email protected]>
AuthorDate: Wed Feb 11 18:03:21 2026 +0000
HDFS-17874. Followup; move SampleStep to a hadoop package.
This is needed to keep cyclonedx happy.
Closes #8242
Signed-off-by: Chris Nauroth <[email protected]>
Reviewed-by: Cheng Pan <[email protected]>
---
.../apache/hadoop/hdfs/server/diskbalancer/planner/TestNodePlan.java | 4 ++--
.../src/test/java/{sample => org/apache/hadoop/test}/SampleStep.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/diskbalancer/planner/TestNodePlan.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/diskbalancer/planner/TestNodePlan.java
index 383c98fbc58..6b92211a9b1 100644
---
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/diskbalancer/planner/TestNodePlan.java
+++
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/diskbalancer/planner/TestNodePlan.java
@@ -19,11 +19,11 @@
import java.io.IOException;
import org.junit.Test;
-import sample.SampleStep;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.hadoop.hdfs.server.diskbalancer.datamodel.DiskBalancerVolume;
import org.apache.hadoop.test.LambdaTestUtils;
+import org.apache.hadoop.test.SampleStep;
import static org.assertj.core.api.Assertions.assertThat;
@@ -88,7 +88,7 @@ public void testNodePlanWithNestedDisallowedStep() throws
Exception {
private void assertNodePlanInvalid(final NodePlan nodePlan) throws Exception
{
LambdaTestUtils.intercept(
IOException.class,
- "Invalid @class value in NodePlan JSON: sample.SampleStep",
+ "Invalid @class value in NodePlan JSON",
() -> NodePlan.parseJson(nodePlan.toJson()));
}
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/sample/SampleStep.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/SampleStep.java
similarity index 98%
rename from hadoop-hdfs-project/hadoop-hdfs/src/test/java/sample/SampleStep.java
rename to
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/SampleStep.java
index 4240c5b08b6..77c9e4527f8 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/sample/SampleStep.java
+++
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/SampleStep.java
@@ -14,7 +14,7 @@
* License for the specific language governing permissions and limitations
under
* the License.
*/
-package sample;
+package org.apache.hadoop.test;
import org.apache.hadoop.hdfs.server.diskbalancer.datamodel.DiskBalancerVolume;
import org.apache.hadoop.hdfs.server.diskbalancer.planner.Step;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]