Hi Mohan,

As discussed offline, I will do the improvement to print the error trace
here.

Thanks,
Nisala

On Mon, Sep 24, 2018 at 8:59 PM Mohanadarshan Vivekanandalingam <
[email protected]> wrote:

> Hi Damith/Nisala,
>
> I think, we could improve the error handling bit more. Seems like we are
> not printing the error trace here. Shall we improve that?
>
> Thanks,
> Mohan
>
> On Fri, Sep 21, 2018 at 7:38 PM, Damith Wickramasinghe <[email protected]>
> wrote:
>
>> Hi vasanthan,
>>
>> It seems active node cannot create a tcp connection to passive node.
>> Please make sure above advertisedHost value should be the host of own node.
>> Not the host of other node.  If they are correct then try to telnet to
>> passive node {passive node host} 9893 from active node.  I think you may
>> need a host mapping too.
>>
>> Adding thilina since he did a same setup with new HA.
>>
>>
>> Regards,
>> Damith.
>>
>> On Fri, Sep 21, 2018 at 1:35 PM Vasanthan Sivalingam <[email protected]>
>> wrote:
>>
>>>
>>> Hi Sp team,
>>>
>>> With the latest 4.3.0 release an HA deployment was done with kubernetes.
>>> the deployment configurations has been done as [1] and [2]. It was noticed
>>> that the active node is not communicating with the passive node with the
>>> following logs.
>>>
>>> ...............................
>>> [2018-09-21 11:54:32,435]  INFO
>>> {org.wso2.carbon.stream.processor.core.internal.StreamProcessorService} -
>>> Setting SinksHandlers of TestSiddhiApp to Active
>>> [2018-09-21 11:54:32,436]  INFO
>>> {org.wso2.carbon.stream.processor.core.internal.StreamProcessorService} -
>>> Setting RecordTableHandlers of TestSiddhiApp to Active
>>> [2018-09-21 11:54:32,436]  INFO
>>> {org.wso2.carbon.stream.processor.core.internal.StreamProcessorService} -
>>> Siddhi App TestSiddhiApp deployed successfully
>>> [2018-09-21 11:54:32,446]  INFO
>>> {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Stream
>>> Processor started in 6.922 sec
>>> [*2018-09-21 11:54:33,377] ERROR
>>> {org.wso2.carbon.stream.processor.core.persistence.PersistenceManager} -
>>> Error in getting a connection to the Passive node. null*
>>> [2018-09-21 11:54:33,379] DEBUG
>>> {org.wso2.carbon.stream.processor.core.ha.HACoordinationSourceHandler} -
>>> Active Node: Saving state of Source Handler with Id TestSiddhiApp-1 with
>>> timestamp 0
>>> [2018-09-21 11:54:33,395] ERROR
>>> {org.wso2.carbon.stream.processor.core.persistence.PersistenceManager} -
>>> Error in getting the TCP connection to the passive node. Hence not sending
>>> the control message to the passive node
>>> [2018-09-21 11:55:31,531]  INFO
>>> {org.wso2.carbon.stream.processor.core.persistence.PersistenceManager} -
>>> siddhi Apps are persisted successfully.
>>> ...................................
>>>
>>> The deployment config was done as below,
>>>
>>> deployment.config:
>>>   type: ha
>>>   eventSyncServer:
>>>     host: localhost
>>>     port: 9893
>>>     advertisedHost: sp-ha-node-1
>>>     advertisedPort: 9893
>>>     bossThreads: 10
>>>     workerThreads: 10
>>>   eventSyncClientPool:
>>>     maxActive: 10
>>>     maxTotal: 10
>>>     maxIdle: 10
>>>     maxWait: 60000
>>>     minEvictableIdleTimeMillis: 120000
>>>
>>> Attached the log file.
>>> Can you please suggest a method to make this communication work between
>>> active node and the passive node.
>>>
>>> [1]
>>> https://github.com/sameerawickramasekara/product-sp/blob/master/modules/integration/tests-kubernetes-integration/src/test/resources/artifacts/docker-files/deployment-ha-node-1.yaml
>>> [2]
>>> https://github.com/sameerawickramasekara/product-sp/blob/master/modules/integration/tests-kubernetes-integration/src/test/resources/artifacts/docker-files/deployment-ha-node-2.yaml
>>>
>>> Thanks,
>>> Vasanth
>>>
>>
>>
>> --
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315*
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Technical Lead,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: [email protected]
> phone:(+94) 771117673
>


-- 
*Nisala Niroshana Nanayakkara,*
Senior Software Engineer
Mobile | +94 717600022
WSO2 Inc | http://wso2.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to