GridGain Community Edition

Expand all | Collapse all

Client Connector Configuration ignored

  • 1.  Client Connector Configuration ignored

    Posted 11-20-2019 02:16 PM
    Using the GridGain 8.7.7 and Java configuration, I set
    ClientConnectorConfiguration clientConfig = cfg.getClientConnectorConfiguration();
    clientConfig.setHandshakeTimeout(ClientConnectorConfiguration.DFLT_HANDSHAKE_TIMEOUT * 6); // 1min (from 10sec)
    This is ignored when actually creating the service in ClientListenerProcessor.prepareConfiguration(..)
    - even though a cliConnCfg exists, a new one is created, ignoring all settings in ClientConnectorConfiguration
    a fix would be replacing line 394
    cliConnCfg = new ClientConnectorConfiguration();
    with
    cliConnCfg = cliConnCfg == null ? new ClientConnectorConfiguration() : cliConnCfg;


    ------------------------------
    Jorg Janke
    CTO Accorto, Inc.
    ------------------------------


  • 2.  RE: Client Connector Configuration ignored

    Posted 11-21-2019 04:06 AM
    The issue is that you've modified property in default ClientConnectorConfiguration implementation which is ClientConnectorConfigurationEx and GridGain ignores changes in it.
    In order to fix it you should create new instance of ClientConnectorConfiguration, set up properties there and replace default ClientConnectorConfiguration by newly created, as described here:
    https://www.gridgain.com/docs/latest/developers-guide/SQL/ODBC/odbc-driver#cluster-configuration

    Example:
    ClientConnectorConfiguration clientConfig = new ClientConnectorConfiguration();
    clientConfig.setHandshakeTimeout(ClientConnectorConfiguration.DFLT_HANDSHAKE_TIMEOUT * 6); // 1min (from 10sec)
    cfg.setClientConnectorConfiguration(clientConfig);


    ------------------------------
    Igor Belyakov
    Software Engineer
    GridGain
    ------------------------------



  • 3.  RE: Client Connector Configuration ignored

    Posted 11-21-2019 07:09 AM
    Hello!

    Thank you for tipping us on this limitation! I have filed a ticket in our internal tracker to fix it in future releases.

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------



  • 4.  RE: Client Connector Configuration ignored

    Posted 11-21-2019 09:31 AM
    Thanks - works when creating a new instance - although should also work either way (by the principle of least surprise).

    ------------------------------
    Jorg Janke
    CTO Accorto, Inc.
    ------------------------------