diff --git a/0001-Fix-faulty-loop-condition-in-TestDFSStripedOutputStr.patch b/0001-Fix-faulty-loop-condition-in-TestDFSStripedOutputStr.patch new file mode 100644 index 0000000000000000000000000000000000000000..464e21464383fd6292dc1f05a36713ef0c2176c7 --- /dev/null +++ b/0001-Fix-faulty-loop-condition-in-TestDFSStripedOutputStr.patch @@ -0,0 +1,26 @@ +From b2fe0fa8e2d303129914645950f72bbf951c977b Mon Sep 17 00:00:00 2001 +From: Ayush Saxena +Date: Thu, 21 Mar 2024 14:12:21 +0800 +Subject: [PATCH] HDFS-17000. Fix faulty loop condition in TestDFSStripedOutputStreamUp... + ...datePipeline (#5699). Contributed by Marcono1234. + +--- + .../hadoop/hdfs/TestDFSStripedOutputStreamUpdatePipeline.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedOutputStreamUpdatePipeline.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedOutputStreamUpdatePipeline.java +index ae29da08..41a1dcab 100644 +--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedOutputStreamUpdatePipeline.java ++++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedOutputStreamUpdatePipeline.java +@@ -45,7 +45,7 @@ public class TestDFSStripedOutputStreamUpdatePipeline { + Path filePath = new Path("/test/file"); + FSDataOutputStream out = dfs.create(filePath); + try { +- for (int i = 0; i < Long.MAX_VALUE; i++) { ++ for (int i = 0; i < Integer.MAX_VALUE; i++) { + out.write(i); + if (i == 1024 * 1024 * 5) { + cluster.stopDataNode(0); +-- +2.33.0 + diff --git a/hadoop.spec b/hadoop.spec index 72a0ac67c971f888a4c5a8611d99a204b728e411..7dfbb3f1a18242a357f9e7bf9c896853a5e1f85b 100644 --- a/hadoop.spec +++ b/hadoop.spec @@ -11,7 +11,7 @@ %define _binaries_in_noarch_packages_terminate_build 0 Name: hadoop Version: 3.3.6 -Release: 2 +Release: 3 Summary: A software platform for processing vast amounts of data # The BSD license file is missing # https://issues.apache.org/jira/browse/HADOOP-9849 @@ -37,6 +37,7 @@ Source16: node-v12.22.1-linux-arm64.tar.gz Source17: settings.xml Patch0: 01-lock-triple-beam-version-to-1.3.0.patch +Patch1: 0001-Fix-faulty-loop-condition-in-TestDFSStripedOutputStr.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: java-1.8.0-openjdk-devel maven hostname maven-local tomcat cmake snappy openssl-devel @@ -1145,6 +1146,9 @@ fi %config(noreplace) %{_sysconfdir}/%{name}/container-executor.cfg %changelog +* Thu Mar 21 2024 yinyongkang - 3.3.6-3 +- Fix faulty loop condition in TestDFSStripedOutputStreamUpdatePipeline + * Fri Dec 15 2023 xiexing - 3.3.6-2 - add conflicts to hadoop spec