This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch rc/1.3.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rc/1.3.3 by this push:
new 641e1c8bfca [to rc/1.3.3] Make the JDK version check in
remove-datanode.bat consistent with other .bat files #13447
641e1c8bfca is described below
commit 641e1c8bfca06f353fd62932fdf80489823d2f26
Author: Li Yu Heng <[email protected]>
AuthorDate: Mon Sep 9 11:57:10 2024 +0800
[to rc/1.3.3] Make the JDK version check in remove-datanode.bat consistent
with other .bat files #13447
---
.../datanode/src/assembly/resources/sbin/remove-datanode.bat | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git
a/iotdb-core/datanode/src/assembly/resources/sbin/remove-datanode.bat
b/iotdb-core/datanode/src/assembly/resources/sbin/remove-datanode.bat
index f9dc167b956..883e93f82d2 100644
--- a/iotdb-core/datanode/src/assembly/resources/sbin/remove-datanode.bat
+++ b/iotdb-core/datanode/src/assembly/resources/sbin/remove-datanode.bat
@@ -51,11 +51,13 @@ for /f tokens^=2-5^ delims^=.-_+^" %%j in ('java
-fullversion 2^>^&1') do (
set JAVA_VERSION=%MAJOR_VERSION%
-IF NOT %JAVA_VERSION% == 8 (
- IF NOT %JAVA_VERSION% == 11 (
- echo IoTDB only supports jdk8 or jdk11, please check your java
version.
- goto finally
- )
+IF "%JAVA_VERSION%" == "6" (
+ echo IoTDB only supports jdk >= 8, please check your java version.
+ goto finally
+)
+IF "%JAVA_VERSION%" == "7" (
+ echo IoTDB only supports jdk >= 8, please check your java version.
+ goto finally
)
if "%OS%" == "Windows_NT" setlocal