Skip to content
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

ci: add selfhost muliti-machine integration test #3283

Merged
merged 137 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
eef4e4a
Create selfhost_intergration.yml
lqy222 May 10, 2023
883c2ec
Update selfhost_intergration.yml
lqy222 May 10, 2023
c436f6b
Update selfhost_intergration.yml
lqy222 May 10, 2023
689293a
add selfhost integration
May 10, 2023
964f394
add selfhost integration
May 10, 2023
1055c89
Update selfhost_intergration.yml
lqy222 May 10, 2023
ea30fbc
Update selfhost_intergration.yml
lqy222 May 10, 2023
79c1beb
Update selfhost_intergration.yml
lqy222 May 10, 2023
2b57f5f
Update selfhost_intergration.yml
lqy222 May 10, 2023
2b104e8
Update selfhost_intergration.yml
lqy222 May 10, 2023
3bbf61f
Update selfhost_intergration.yml
lqy222 May 10, 2023
02771a6
Update selfhost_intergration.yml
lqy222 May 10, 2023
80bf8ca
Update selfhost_intergration.yml
lqy222 May 10, 2023
2c40a0a
nodify format_config
May 10, 2023
a40e402
Update selfhost_intergration.yml
lqy222 May 10, 2023
9bc0154
Update selfhost_intergration.yml
lqy222 May 10, 2023
84721cd
[]
May 10, 2023
277f8ae
Merge branch 'test_related' of github.com:lqy222/OpenMLDB into test_r…
May 10, 2023
b14604d
[]
May 10, 2023
6851ab8
Update selfhost_intergration.yml
lqy222 May 10, 2023
1f64e83
[]
May 10, 2023
6e78fcd
Merge branch 'test_related' of github.com:lqy222/OpenMLDB into test_r…
May 10, 2023
2fd4788
Update selfhost_intergration.yml
lqy222 May 10, 2023
b099c2f
[]
May 10, 2023
296ea24
Merge branch 'test_related' of github.com:lqy222/OpenMLDB into test_r…
May 10, 2023
541438e
[]
May 11, 2023
c8826a8
Update selfhost_intergration.yml
lqy222 May 11, 2023
2c8b037
Update selfhost_intergration.yml
lqy222 May 11, 2023
91b3a62
Update selfhost_intergration.yml
lqy222 May 11, 2023
9ebbfce
[]
May 11, 2023
b863940
Update selfhost_intergration.yml
lqy222 May 11, 2023
c09344a
[]
May 11, 2023
aa6b894
[]
May 11, 2023
702e580
Merge branch '4paradigm:main' into test_related
lqy222 May 11, 2023
db93dc5
Update selfhost_intergration.yml
lqy222 May 10, 2023
58b336c
[]
May 11, 2023
4befcc9
Update selfhost_intergration.yml
lqy222 May 11, 2023
4e2885d
Update selfhost_intergration.yml
lqy222 May 11, 2023
fd81f83
Update selfhost_intergration.yml
lqy222 May 11, 2023
bee4749
[]
May 11, 2023
0d26401
Update selfhost_intergration.yml
lqy222 May 11, 2023
3054f17
[]
May 11, 2023
90c4756
[]
May 11, 2023
8950751
Revert the function to get yarn log (#3272)
tobegit3hub May 10, 2023
607532b
Support symbolic import for s3 data source (#3261)
tobegit3hub May 10, 2023
8a4b4e8
feat: integration tests for openmldb exporter (#3253)
aceforeverd May 10, 2023
144972a
feat: online to offline sync tool (#3256)
vagetablechicken May 11, 2023
2eb005a
Merge branch 'test_related' of github.com:lqy222/OpenMLDB into test_r…
May 11, 2023
5b3c463
Merge branch '4paradigm:main' into test_related
lqy222 May 11, 2023
544f18d
Update integration-test-src.yml
lqy222 May 11, 2023
4f949ae
[]
May 19, 2023
a55aba3
Merge branch 'test_related' of github.com:lqy222/OpenMLDB into test_r…
May 19, 2023
67ed83f
Update selfhost_intergration.yml
lqy222 May 19, 2023
20da053
[]
May 19, 2023
997cd77
Merge branch 'test_related' of github.com:lqy222/OpenMLDB into test_r…
May 19, 2023
5b768c6
[]
May 19, 2023
d28508a
create index add sleep time
May 20, 2023
5658c93
Merge branch '4paradigm:main' into test_related
lqy222 May 20, 2023
19a140c
[]
May 20, 2023
32691c4
[]
May 20, 2023
0357605
Update selfhost_intergration.yml
lqy222 May 29, 2023
d9204c2
Update selfhost_intergration.yml
lqy222 May 29, 2023
b12224c
Update selfhost_intergration.yml
lqy222 May 29, 2023
96da721
Update selfhost_intergration.yml
lqy222 May 29, 2023
9a72303
Update selfhost_intergration.yml
lqy222 May 29, 2023
5b482bb
Update selfhost_intergration.yml
lqy222 May 29, 2023
8a5a46c
Update selfhost_intergration.yml
lqy222 May 29, 2023
1541087
Update selfhost_intergration.yml
lqy222 May 29, 2023
fc06d94
Update selfhost_intergration.yml
lqy222 May 29, 2023
864f736
Update selfhost_intergration.yml
lqy222 May 29, 2023
8d01a4f
[]
May 29, 2023
a2caf9b
Update selfhost_intergration.yml
lqy222 May 29, 2023
bb6c304
[]
May 29, 2023
1052be8
Update selfhost_intergration.yml
lqy222 May 29, 2023
69327e9
Update selfhost_intergration.yml
lqy222 May 29, 2023
4218eef
Update selfhost_intergration.yml
lqy222 May 29, 2023
5419e36
Update selfhost_intergration.yml
lqy222 May 29, 2023
531c5c8
Update selfhost_intergration.yml
lqy222 May 29, 2023
83eb1ee
Update selfhost_intergration.yml
lqy222 May 29, 2023
15d0de0
[]
May 29, 2023
4c96587
[]
May 29, 2023
7ed573b
Update selfhost_intergration.yml
lqy222 May 29, 2023
2af4889
[]
May 31, 2023
a6648f6
Merge branch '4paradigm:main' into test_related
lqy222 Jun 8, 2023
a993366
Update selfhost_intergration.yml
lqy222 Jun 8, 2023
13ec1eb
Update selfhost_intergration.yml
lqy222 Jun 8, 2023
f949f14
Update selfhost_intergration.yml
lqy222 Jun 8, 2023
00243bf
[]
Jun 8, 2023
e053562
[]
Jun 9, 2023
a7b2087
[]
Jun 9, 2023
42dea30
[]
Jun 9, 2023
37e2f0e
[]
Jun 9, 2023
55d8484
Merge branch '4paradigm:main' into test_related
lqy222 Jun 15, 2023
31dabeb
[]
Jun 15, 2023
e296b46
Merge branch 'test_related' of https://github.com/lqy222/OpenMLDB int…
Jun 15, 2023
40a3d7d
[]
Jun 20, 2023
a3248fb
[]
Jun 20, 2023
70b5b46
[]
Jun 21, 2023
54e4e63
[]
Jun 21, 2023
8f683d3
Create manual.yml
lqy222 Jun 25, 2023
d23e283
Update manual.yml
lqy222 Jun 25, 2023
210e986
Update manual.yml
lqy222 Jun 25, 2023
199e50d
Update manual.yml
lqy222 Jun 25, 2023
f636563
Update manual.yml
lqy222 Jun 25, 2023
9e151a5
Update manual.yml
lqy222 Jun 25, 2023
af9ae9e
Update manual.yml
lqy222 Jun 25, 2023
f585008
Update selfhost_intergration.yml
lqy222 Jun 25, 2023
b9ed637
Update selfhost_intergration.yml
lqy222 Jun 25, 2023
e5bc681
Update selfhost_intergration.yml
lqy222 Jun 25, 2023
131c455
Merge branch '4paradigm:main' into test_related
lqy222 Jun 28, 2023
90442b0
Merge branch '4paradigm:main' into test_related
lqy222 Jun 28, 2023
d31e3a3
Merge branch '4paradigm:main' into test_related
lqy222 Jul 18, 2023
1ad1379
Merge branch '4paradigm:main' into test_related
lqy222 Jul 20, 2023
b584a0b
Update openmldb-tool.yml
lqy222 Jul 20, 2023
dc23463
Update openmldb-tool.yml
lqy222 Jul 20, 2023
1bdb91b
Update openmldb-tool.yml
lqy222 Jul 21, 2023
cb5d8c8
[]
Jul 27, 2023
2847492
Merge branch 'test_related' of https://github.com/lqy222/OpenMLDB int…
Jul 27, 2023
3db0492
Update selfhost_intergration.yml
lqy222 Jul 27, 2023
d03f91f
[]
Aug 3, 2023
ac36693
Merge branch 'test_related' of https://github.com/lqy222/OpenMLDB int…
Aug 3, 2023
708a8bb
[]
Aug 3, 2023
421790b
Update selfhost_intergration.yml
lqy222 Aug 4, 2023
aca5c0d
Merge branch '4paradigm:main' into test_related
lqy222 Aug 4, 2023
6c9fad8
Update integration-test-src.yml
lqy222 Aug 4, 2023
7db7fd7
[]
Aug 4, 2023
a2175e2
[]
Aug 4, 2023
542d563
[]
Aug 4, 2023
25234e4
[]
Aug 4, 2023
c46b156
[]
Aug 4, 2023
448c891
[]
Aug 4, 2023
d117a28
Update selfhost_intergration.yml
lqy222 Aug 4, 2023
98161ea
Update selfhost_intergration.yml
lqy222 Aug 4, 2023
22b3415
[]
Aug 4, 2023
06e19cb
[]
Aug 11, 2023
3c9aa5a
format shell
Aug 11, 2023
434e941
format shell
Aug 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
396 changes: 396 additions & 0 deletions .github/workflows/selfhost_intergration.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cases/integration_test/ddl/test_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ cases:
-
id: 22
desc: test-case
mode: standalone-unsupport
mode: standalone-unsupport,disk-unsupport
inputs:
-
columns : ["c1 string","c2 smallint","c3 int","c4 bigint","c5 float","c6 double","c7 timestamp","c8 date","c9 bool"]
Expand Down Expand Up @@ -397,7 +397,7 @@ cases:
-
id: 24
desc: 没有partitionnum和replicanum,指定distribution
mode: standalone-unsupport
mode: standalone-unsupport,disk-unsupport
inputs:
- name: t3
sql: |
Expand Down
45 changes: 39 additions & 6 deletions cases/integration_test/expression/test_condition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,12 @@ cases:
sql: |
select col1,ifnull(col2,"abc") as e1 from {0};
expect:
success: false
columns: ["col1 int", "e1 string"]
order: col1
rows:
- [1, '0']
- [2, 'abc']
- [3, '1']
- id: 10
desc: IFNULL-表达式
sqlDialect: ["HybridSQL"]
Expand Down Expand Up @@ -285,7 +290,12 @@ cases:
sql: |
select col1,ifnull(col2 /0 ,100) as e3 from {0};
expect:
success: false
columns: ["col1 int", "e3 double"]
order: col1
rows:
- [1, 100]
- [2, 100]
- [3, 100]
- id: 11-2
mode: cli-unsupport
desc: NVL is synonyms to ifnull
Expand Down Expand Up @@ -317,7 +327,12 @@ cases:
sql: |
select col1,nvl(col2 /0 ,100) as e3 from {0};
expect:
success: false
columns: ["col1 int", "e3 double"]
order: col1
rows:
- [1, 100]
- [2, 100]
- [3, 100]
- id: 12
desc: IFNULL-兼容类型
sqlDialect: ["HybridSQL"]
Expand All @@ -331,7 +346,13 @@ cases:
sql: |
select col1,ifnull(col2,100) as e1 from {0};
expect:
success: false
columns: ["col1 int", "e1 bigint"]
order: col1
rows:
- [1, 0]
- [2, 100]
- [3, 1]

- id: 13
desc: IFNULL-浮点型
sqlDialect: ["HybridSQL"]
Expand All @@ -345,7 +366,13 @@ cases:
sql: |
select col1,ifnull(col2,1.1) as e2 from {0};
expect:
success: false
columns: ["col1 int", "e2 double"]
order: col1
rows:
- [1, 0]
- [2, 1.1]
- [3, 1]


- id: NVL2-1
desc: NVL2
Expand Down Expand Up @@ -378,7 +405,13 @@ cases:
sql: |
select col1,nvl2(col2, "abc", col1 + 1) as e1 from {0};
expect:
success: false
columns: ["col1 int", "e1 string"]
order: col1
rows:
- [1, 'abc']
- [2, '3']
- [3, 'abc']


- id: NVL2-3
desc: NVL2, sub expression
Expand Down
2 changes: 1 addition & 1 deletion cases/integration_test/expression/test_like.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ cases:
columns : ["id bigint","c1 string","c7 timestamp"]
indexs: ["index1:id:c7"]
rows:
- [1,'\\\%a_b',1590738990000]
- [1,'\\%a_b',1590738990000]
- [2,'\\\aabb',1590738991000]
- [3,"_a%_b",1590738992000]
- [4,"ba_c",1590738993000]
Expand Down
2 changes: 2 additions & 0 deletions cases/integration_test/long_window/test_long_window.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ cases:
id: 10
version: 0.6.1
desc: delete pk
mode: cluster-unsupport
longWindow: w1:2s
inputs:
-
Expand Down Expand Up @@ -359,6 +360,7 @@ cases:
id: 11
version: 0.6.1
desc: delete 组合索引
mode: cluster-unsupport
longWindow: w1:2s
inputs:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<openmldb.batch.version>0.7.0</openmldb.batch.version>
<openmldb.native.version>0.7.0-allinone</openmldb.native.version>
<openmldb.batch.version>0.7.0-SNAPSHOT</openmldb.batch.version>
<openmldb.native.version>0.7.0-SNAPSHOT</openmldb.native.version>
<spark.version>2.2.0</spark.version>
<suiteXmlFile>test_suite/test_tmp.xml</suiteXmlFile>
<aspectj.version>1.8.9</aspectj.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public class OpenMLDBConfig {
}

public static boolean isCluster() {
return OpenMLDBGlobalVar.env.equals("cluster");

return OpenMLDBGlobalVar.env.equals("cluster")||OpenMLDBGlobalVar.env.equals("deploy");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void beforeTest(@Optional("qa") String env,@Optional("main") String versi
openMLDBDeploy.setCluster(false);
OpenMLDBGlobalVar.mainInfo = openMLDBDeploy.deployCluster(2, 3);
}else if(env.equalsIgnoreCase("deploy")){
OpenMLDBGlobalVar.mainInfo = YamlUtil.getObject("out/openmldb_info.yaml",OpenMLDBInfo.class);
OpenMLDBGlobalVar.mainInfo = YamlUtil.getObject(Tool.openMLDBDir().getAbsolutePath()+"/out/openmldb_info.yaml",OpenMLDBInfo.class);
} else if(env.equalsIgnoreCase("yarn")) {
OpenMLDBDeploy openMLDBDeploy = new OpenMLDBDeploy(version);
openMLDBDeploy.setOpenMLDBPath(openMLDBPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class TestExternalFunction extends OpenMLDBTest {

@Story("ExternalFunction")
@Test(enabled = true)
@Test(enabled = false)
public void testFunctionMethods() {
Statement statement = executor.getStatement();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>

<openmldb.jdbc.version>0.6.4</openmldb.jdbc.version>
<openmldb.jdbc.version>0.7.0-SNAPSHOT</openmldb.jdbc.version>
<openmldb.navtive.version>0.7.0-SNAPSHOT</openmldb.navtive.version>
</properties>

Expand Down
126 changes: 126 additions & 0 deletions test/steps/format_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
#! /usr/bin/env bash

#set DeployDir
rootPath="$1"
jobName="$2"
portFrom="$3"
portTo="$4"
Type="$5"
Dependency="$6"
version=$(grep 'OPENMLDB_VERSION' "$rootPath"/conf/openmldb-env.sh | awk -F= '{print $2}')
curTime=$(date "+%m%d%H%M")
dirName="${jobName}-${version}-${curTime}"

#set Deploy Host and Ports
Hosts=(node-3 node-4 node-1)

AvaNode1Ports=$(ssh "${Hosts[0]}" "comm -23 <(seq $portFrom $portTo | sort) <(sudo ss -Htan | awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 8")

Check warning on line 17 in test/steps/format_config.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] reported by reviewdog 🐶 Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029) Raw Output: ./test/steps/format_config.sh:17:51:info:Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029)
AvaNode2Ports=$(ssh "${Hosts[1]}" "comm -23 <(seq $portFrom $portTo | sort) <(sudo ss -Htan | awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 2")

Check warning on line 18 in test/steps/format_config.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] reported by reviewdog 🐶 Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029) Raw Output: ./test/steps/format_config.sh:18:51:info:Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029)
AvaNode3Ports=$(ssh "${Hosts[2]}" "comm -23 <(seq $portFrom $portTo | sort) <(sudo ss -Htan | awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 1")

Check warning on line 19 in test/steps/format_config.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] reported by reviewdog 🐶 Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029) Raw Output: ./test/steps/format_config.sh:19:51:info:Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029)


taskmanagerHost=$(hostname | awk -F"." '{print $1}' )

taskmanagerPort=$(ssh "${taskmanagerHost}" "comm -23 <(seq $portFrom $portTo | sort) <(sudo ss -Htan | awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 1")

Check warning on line 24 in test/steps/format_config.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] reported by reviewdog 🐶 Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029) Raw Output: ./test/steps/format_config.sh:24:60:info:Note that, unescaped, this expands on the client side. [SC2029](https://github.com/koalaman/shellcheck/wiki/SC2029)


tablet1Port=$(echo "$AvaNode1Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $1}')
tablet2Port=$(echo "$AvaNode2Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $1}')
tablet3Port=$(echo "$AvaNode3Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $1}')
ns1Port=$(echo "$AvaNode1Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $2}')
ns2Port=$(echo "$AvaNode2Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $2}')
apiserverPort=$(echo "$AvaNode1Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $4}')
#taskmanagerPort=$(echo $AvaNode1Ports | awk '{print $5}')
zookeeperPort1=$(echo "$AvaNode1Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $6}')
zookeeperPort2=$(echo "$AvaNode1Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $7}')
zookeeperPort3=$(echo "$AvaNode1Ports" | awk 'BEGIN{ RS="";FS="\n"}{print $8}')

# write addr to hosts
cat >"$rootPath"/conf/hosts<<EOF
[tablet]
${Hosts[0]}:$tablet1Port /tmp/$dirName/tablet
${Hosts[1]}:$tablet2Port /tmp/$dirName/tablet
${Hosts[2]}:$tablet3Port /tmp/$dirName/tablet
[nameserver]
${Hosts[0]}:$ns1Port /tmp/$dirName/ns
${Hosts[1]}:$ns2Port /tmp/$dirName/ns
[apiserver]
${Hosts[0]}:$apiserverPort /tmp/$dirName/apiserver
[taskmanager]
${taskmanagerHost}:$taskmanagerPort /tmp/$dirName/taskmanager
[zookeeper]
${Hosts[0]}:$zookeeperPort1:$zookeeperPort2:$zookeeperPort3 /tmp/$dirName/zk
EOF

#write openmldb.env.sh
cat >"$rootPath"/conf/openmldb-env.sh<<EOF
export OPENMLDB_VERSION=$version
export OPENMLDB_MODE=\${OPENMLDB_MODE:=cluster}
export OPENMLDB_USE_EXISTING_ZK_CLUSTER=false
export OPENMLDB_ZK_HOME=
export OPENMLDB_ZK_CLUSTER=
export OPENMLDB_ZK_ROOT_PATH=/openmldb-$dirName
export OPENMLDB_HOME=
export SPARK_HOME=/tmp/spark/spark-$dirName
export CLEAR_OPENMLDB_INSTALL_DIR=true
EOF

if [ "$Type" = "java" ]; then
mkdir -p out
touch out/openmldb_info.yaml
cat >out/openmldb_info.yaml<<EOF
deployType: CLUSTER
zk_cluster: "${Hosts[0]}:$zookeeperPort1"
zk_root_path: "/openmldb-$dirName"
basePath: "$rootPath/tmp"
openMLDBPath: "/tmp/$dirName/tablet/bin/openmldb"
apiServerEndpoints:
- "${Hosts[0]}:$apiserverPort"
tabletEndpoints:
- "${Hosts[0]}:$tablet1Port"
- "${Hosts[1]}:$tablet2Port"
- "${Hosts[2]}:$tablet3Port"
EOF
fi


if [ "$Dependency" = "ssd" ]; then
mkdir -p /mnt/nvmessd/qytest/"$dirName"
cat >>"$rootPath"/conf/tablet.flags.template<<EOF
--ssd_root_path=/mnt/nvmessd/selfintegration/$dirName/db
--recycle_bin_ssd_root_path=/mnt/nvmessd/selfintegration/$dirName/recycle_ssd
EOF
# comment node-1 tablet , no ssd existed in node-1
sed -i "s/.*node-1.*/#&/g" out/openmldb_info.yaml
sed -i "s/.*node-1.*/#&/g" "$rootPath"/conf/hosts
fi

if [ "$Dependency" = "hadoop" ]; then
cat >"$rootPath"/conf/taskmanager.properties<<EOF
server.host=${Hosts[0]}
zookeeper.cluster=${Hosts[0]}:$zookeeperPort1
zookeeper.root_path=/openmldb-$dirName
server.port=$taskmanagerPort
job.log.path=./logs/
spark.home=/tmp/spark/spark-$dirName
spark.master=yarn-client
offline.data.prefix=hdfs://node-1/openmldb_integration_test/
spark.default.conf=spark.hadoop.yarn.timeline-service.enabled=false
hadoop.conf.dir=/mnt/hdd0/denglong/openmldb_runner_worker/hadoop
hadoop.user.name=root
external.function.dir=/tmp/
EOF
fi



# if [ "$Dependency" = "kafka" ]; then
# install kafak& deploy connector with kafka address and openmldb address
# cat >$rootPath/test/integration-test/openmldb-test-java/openmldb-ecosystem/src/test/resources/kafka_test_cases.ymls<<EOF
# // "bootstrap.servers": node-4:49092,
# // "connect.listeners": http://:8083,
# // apiserver.address: ${Hosts[0]}:$apiserverPort
# // "connection.url": "jdbc:openmldb:///kafka_test?zk=127.0.0.1:2181&zkPath=/openmldb"
# // zk_root_path: "/openmldb-$dirName"
# EOF
# fi
4 changes: 2 additions & 2 deletions test/test-tool/openmldb-deploy/cases/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ def test_upgrade(self, replica_num, partition_num):
key_num = 50000
for i in range(key_num):
key = "key" + str(i)
self.cursor.execute(f"insert into {table_name} values (\'{key}\', \'col2\')");
self.cursor.execute(f"insert into {table_name} values (\'{key}\', \'col2\');")
result = self.cursor.execute(f"select * from {table_name}")
data = result.fetchall()
assert len(data) == key_num

status, cnt = self.get_leader_cnt("test", table_name, case_conf.conf["components"]["tablet"][0])
assert status.OK() and cnt > 0
dl239 marked this conversation as resolved.
Show resolved Hide resolved
assert status.OK()
status, unalive_cnt = self.get_unalive_cnt("test", table_name)
assert status.OK() and unalive_cnt == 0

Expand Down
Loading