diff --git a/ci/jenkins/Nightly.groovy b/ci/jenkins/Nightly.groovy index e6ba99b7e2..ac00a057e5 100644 --- a/ci/jenkins/Nightly.groovy +++ b/ci/jenkins/Nightly.groovy @@ -8,7 +8,7 @@ String cron_string = BRANCH_NAME == "master" ? "50 1 * * * " : "" // Make timeout 4 hours so that we can run two nightly during the ci int total_timeout_minutes = 7 * 60 def imageTag='' -def chart_version='3.2.13' +def chart_version='4.0.6' pipeline { triggers { cron """${cron_timezone} diff --git a/ci/jenkins/PR.groovy b/ci/jenkins/PR.groovy index 1da256c008..89d99bdcb3 100644 --- a/ci/jenkins/PR.groovy +++ b/ci/jenkins/PR.groovy @@ -4,7 +4,7 @@ int total_timeout_minutes = 60 * 5 int e2e_timeout_seconds = 70 * 60 def imageTag='' int case_timeout_seconds = 10 * 60 -def chart_version='3.2.13' +def chart_version='4.0.6' pipeline { options { timestamps() diff --git a/tests/python_client/testcases/test_index.py b/tests/python_client/testcases/test_index.py index eff1628acd..5545a8a42d 100644 --- a/tests/python_client/testcases/test_index.py +++ b/tests/python_client/testcases/test_index.py @@ -490,6 +490,7 @@ class TestNewIndexBase(TestcaseBase): assert len(collection_w.indexes) == 1 @pytest.mark.tags(CaseLabel.L1) + @pytest.mark.xfail(reason="Each RPC is limited to 64 MB") def test_annoy_index(self): # The strange thing is that the indexnode crash is only reproduced when nb is 50000 and dim is 512 nb = 50000 diff --git a/tests/python_client/testcases/test_insert.py b/tests/python_client/testcases/test_insert.py index 4182dee322..e7b6d16a83 100644 --- a/tests/python_client/testcases/test_insert.py +++ b/tests/python_client/testcases/test_insert.py @@ -813,6 +813,20 @@ class TestInsertOperation(TestcaseBase): primary_field=ct.default_int64_field_name) assert self.collection_wrap.num_entities == nb + @pytest.mark.tags(CaseLabel.L2) + def test_insert_equal_to_resource_limit(self): + """ + target: test insert data equal to RPC limitation 64MB (67108864) + method: calculated critical value and insert equivalent data + expected: raise exception + """ + nb = 127583 + collection_name = cf.gen_unique_str(prefix) + collection_w = self.init_collection_wrap(name=collection_name) + data = cf.gen_default_dataframe_data(nb) + collection_w.insert(data=data) + assert collection_w.num_entities == nb + class TestInsertAsync(TestcaseBase): """ @@ -1042,6 +1056,21 @@ class TestInsertInvalid(TestcaseBase): error = {ct.err_code: 1, ct.err_msg: "Data type is not support."} mutation_res, _ = collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error) + @pytest.mark.tags(CaseLabel.L1) + def test_insert_over_resource_limit(self): + """ + target: test insert over RPC limitation 64MB (67108864) + method: insert excessive data + expected: raise exception + """ + nb = 150000 + collection_name = cf.gen_unique_str(prefix) + collection_w = self.init_collection_wrap(name=collection_name) + data = cf.gen_default_dataframe_data(nb) + error = {ct.err_code: 1, ct.err_msg: "<_MultiThreadedRendezvous of RPC that terminated with:" + "status = StatusCode.RESOURCE_EXHAUSTED"} + collection_w.insert(data=data, check_task=CheckTasks.err_res, check_items=error) + class TestInsertInvalidBinary(TestcaseBase): """