Hi Vasanth, Do you know whether this is a product bug, or an issue in the test case level?
On Mon, Oct 1, 2018 at 6:20 PM Vasanthan Sivalingam <[email protected]> wrote: > Hi All, > > Thanks for the information. Now the communication between Active and > passive nodes are successfully made. > Currently i am facing failures while trying to run mvn clean install in > tests-kubernetes-integration module in product-sp repo. > Below are the errors which are produced with different ha-patterns, > > ha-pattern > > PassiveNodeIT.testHaInit:146 expected > [{"testCase":"com.sp.test.TwoNodeH","eventCount":20}] but found > [{"testCase":"com.sp.test.TwoNodeH","eventCount":15}] > > ha-pattern-3 > > StateSyncIT.testHaInit:107 expected > [{"value":150.0,"message":"message","method":"POST","headers":"cclassName:com.sp.test.StateSync"}] > but found [{"message":"No events found for the index: 4"}] > > ha-pattern-4 > > StateSyncAfterGracePeriodIT.testHaInit:91 expected > [{"value":150.0,"message":"message","method":"POST","headers":"cclassName:com.sp.test.StateSync"}] > but found [{"message":"No events found for the index: 3"}] > > As per the discussion with the SP folks, i have raised an issue[1] > regarding on these failures. > > [1] https://github.com/wso2/product-sp/issues/836 > > > > Thanks, > Vasanth > > On Tue, Sep 25, 2018 at 12:02 PM Nisala Nanayakkara <[email protected]> > wrote: > >> 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/ >> > > > -- > Vasanthan Sivalingam > Software Engineer | WSO2 > > E-mail : [email protected] > Phone : 0776592558 > Web : http://wso2.com > > -- *Kasun Gajasinghe* | Technical Lead | WSO2 Inc. (w) +94 11 214 5345 | (e) kasung AT spamfree wso2.com GET INTEGRATION AGILE Integration Agility for Digitally Driven Business
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
