[ 
https://issues.apache.org/jira/browse/IGNITE-11649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814504#comment-16814504
 ] 

Alexey Kukushkin commented on IGNITE-11649:
-------------------------------------------

I reviewed the approved the changes without any comments.

> Java thin client: ReliableChannel is not so reliable
> ----------------------------------------------------
>
>                 Key: IGNITE-11649
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11649
>             Project: Ignite
>          Issue Type: Bug
>          Components: thin client
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>             Fix For: 2.8
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When only one server address is used ReliableChannel don't recover after 
> failure.
> Reproducer:
> {code:java}
> public void testSingleNodeFailover() throws Exception {
>     try (LocalIgniteCluster cluster = LocalIgniteCluster.start(1);
>          IgniteClient client = Ignition.startClient(new ClientConfiguration()
>              .setAddresses(cluster.clientAddresses().iterator().next()))
>     ) {
>         ObjectName mbeanName = 
> U.makeMBeanName(Ignition.allGrids().get(0).name(), "Clients", 
> "ClientListenerProcessor");
>         ClientProcessorMXBean mxBean = 
> MBeanServerInvocationHandler.newProxyInstance(
>             ManagementFactory.getPlatformMBeanServer(), mbeanName, 
> ClientProcessorMXBean.class,true);
>         ClientCache<Integer, Integer> cache = client.createCache("cache");
>         // Before fail.
>         cache.put(0, 0);
>         // Fail.
>         mxBean.dropAllConnections();
>         try {
>             cache.put(0, 0);
>         }
>         catch (Exception expected) {
>             // No-op.
>         }
>         // Recover after fail.
>         cache.put(0, 0);
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to