Surkov Aleksandr created IGNITE-12742:
-----------------------------------------

             Summary: Thick client: client hangs when trying to connect to port 
10800
                 Key: IGNITE-12742
                 URL: https://issues.apache.org/jira/browse/IGNITE-12742
             Project: Ignite
          Issue Type: Bug
            Reporter: Surkov Aleksandr


If connect by thick client to port 10800(port of thin client) then program can 
be hanging.

It would be great to receive message about protocol non-compliance.
{code:java}
public class HangingThickClient extends GridCommonAbstractTest {
    private static final String CLIENT = "client";

    @Override protected IgniteConfiguration getConfiguration(String 
igniteInstanceName) throws Exception {
        final IgniteConfiguration configuration = new IgniteConfiguration()
            .setIgniteInstanceName(igniteInstanceName);


        if (igniteInstanceName.startsWith(CLIENT)) {
            configuration
                .setClientMode(true);
        }

        final Set<String> addresses = igniteInstanceName.startsWith(CLIENT) ? 
Collections.singleton("127.0.0.1:10800") :
                        Collections.singleton("127.0.0.1:47500..47509");

        configuration.setDiscoverySpi(
            new TcpDiscoverySpi()
                .setIpFinder(
                    new TcpDiscoveryVmIpFinder(true)
                        .setAddresses(addresses)
                )
            );

        return configuration;
    }

    @Test
    public void hangingThickClientTest() throws Exception {
        Ignite server = startGrid();
        Ignite client = Ignition.start(getConfiguration(CLIENT));

    }
}{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to