map7000 commented on a change in pull request #9274:
URL: https://github.com/apache/ignite/pull/9274#discussion_r735466139



##########
File path: modules/ducktests/tests/ignitetest/tests/thin_client_test.py
##########
@@ -60,3 +69,63 @@ def test_thin_client_compatibility(self, server_version, 
thin_client_version):
         ignite.start()
         thin_clients.run()
         ignite.stop()
+
+    @cluster(num_nodes=4)
+    @ignite_versions(str(DEV_BRANCH))
+    @matrix(test_params=[{"connectClients": 150, "putClients": 0, 
"putAllClients": 0, "runTime": 60, "freeze": True},
+                         {"connectClients": 150, "putClients": 0, 
"putAllClients": 0, "runTime": 60, "freeze": False},
+                         {"connectClients": 150, "putClients": 2, 
"putAllClients": 0, "runTime": 60, "freeze": False},
+                         {"connectClients": 150, "putClients": 0, 
"putAllClients": 2, "runTime": 60, "freeze": False}])
+    def test_thin_client_connect_time(self, ignite_version, test_params):
+        """
+        Thin client connect time test.
+        Determine how thin client connection time depend on cluster load
+        Demonstrate 4 situations:
+        - Cluster have too much clients
+        - Cluster have many put's
+        - Cluster have some putAll jobs
+        - One node hung for some time
+        """
+
+        server_config = \
+            IgniteConfiguration(version=IgniteVersion(ignite_version),
+                                
data_storage=DataStorageConfiguration(default=DataRegionConfiguration(persistent=True)),
+                                
client_connector_configuration=ClientConnectorConfiguration())
+
+        ignite = IgniteService(self.test_context, server_config, 2)
+
+        addresses = ignite.nodes[0].account.hostname + ":" + 
str(server_config.client_connector_configuration.port)
+
+        thin_clients = IgniteApplicationService(self.test_context,
+                                                
IgniteThinClientConfiguration(addresses=addresses,
+                                                                              
version=IgniteVersion(
+                                                                               
   ignite_version)),
+                                                
java_class_name=self.JAVA_CLIENT_CLASS_NAME_CON,
+                                                params={"connectClients": 
test_params["connectClients"],
+                                                        "putClients": 
test_params["putClients"],
+                                                        "putAllClients": 
test_params["putAllClients"],
+                                                        "runTime": 
test_params["runTime"]},
+                                                num_nodes=2,
+                                                startup_timeout_sec=60)
+
+        ignite.start()
+        ControlUtility(cluster=ignite).activate()
+
+        thin_clients.start_async()
+
+        if test_params["freeze"]:
+            thin_clients.await_event("START WAITING", 120, True)
+            for _ in range(4):
+                ignite.freeze_node(ignite.nodes[0])
+                time.sleep(3)
+                ignite.unfreeze_node(ignite.nodes[0])
+                time.sleep(7)
+
+        thin_clients.await_event("IGNITE_APPLICATION_FINISHED", 120)
+        thin_clients.stop(force_stop=True)
+
+        ControlUtility(cluster=ignite).baseline()

Review comment:
       fix




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to