You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Gayan Gunarathne <ga...@wso2.com> on 2015/12/01 06:38:57 UTC

DataBridge continuously print info message in Integration test

I am getting this DataBridge admin connected message continuously during
the integration test. Seems thrift data publisher continuously trying to
connect to the server.Any thoughts why is that printing continuously?

2015-12-01 10:45:45 INFO
 {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
[2015-12-01 10:45:45,920]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  admin connected
2015-12-01 10:45:45 INFO
 {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
[2015-12-01 10:45:45,920]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  admin connected
2015-12-01 10:45:45 INFO
 {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
[2015-12-01 10:45:45,921]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  admin connected
2015-12-01 10:45:45 INFO
 {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
[2015-12-01 10:45:45,921]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  admin connected
2015-12-01 10:45:45 INFO
 {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
[2015-12-01 10:45:45,922]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  admin connected


Thanks,
Gayan

-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>

Re: DataBridge continuously print info message in Integration test

Posted by Gayan Gunarathne <ga...@wso2.com>.
Great.Thanks Akila

On Tue, Dec 1, 2015 at 6:57 PM, Akila Ravihansa Perera <ra...@wso2.com>
wrote:

> Hi Gayan,
> This is because setEnabled method of ThriftStatisticsPublisher calls
> init() method which causes receiverGroups array list to accumulate cep/das
> nodes. It will try to create connections for each entry added. Ultimately
> this could result in a connection flood. I've fixed this in [1].
>
> [1]
> https://github.com/apache/stratos/commit/74ec78006f56adb80ca0141f67940205e8dd85f1
>
> Thanks.
>
> On Tue, Dec 1, 2015 at 11:08 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
>
>> I am getting this DataBridge admin connected message continuously during
>> the integration test. Seems thrift data publisher continuously trying to
>> connect to the server.Any thoughts why is that printing continuously?
>>
>> 2015-12-01 10:45:45 INFO
>>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
>> [2015-12-01 10:45:45,920]  INFO
>> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
>> 2015-12-01 10:45:45 INFO
>>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
>> [2015-12-01 10:45:45,920]  INFO
>> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
>> 2015-12-01 10:45:45 INFO
>>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
>> [2015-12-01 10:45:45,921]  INFO
>> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
>> 2015-12-01 10:45:45 INFO
>>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
>> [2015-12-01 10:45:45,921]  INFO
>> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
>> 2015-12-01 10:45:45 INFO
>>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
>> [2015-12-01 10:45:45,922]  INFO
>> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
>>
>>
>> Thanks,
>> Gayan
>>
>> --
>>
>> Gayan Gunarathne
>> Technical Lead, WSO2 Inc. (http://wso2.com)
>> Committer & PMC Member, Apache Stratos
>> email : gayang@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>
>>
>>
>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>

Re: DataBridge continuously print info message in Integration test

Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Hi Gayan,
This is because setEnabled method of ThriftStatisticsPublisher calls init()
method which causes receiverGroups array list to accumulate cep/das nodes.
It will try to create connections for each entry added. Ultimately this
could result in a connection flood. I've fixed this in [1].

[1]
https://github.com/apache/stratos/commit/74ec78006f56adb80ca0141f67940205e8dd85f1

Thanks.

On Tue, Dec 1, 2015 at 11:08 AM, Gayan Gunarathne <ga...@wso2.com> wrote:

> I am getting this DataBridge admin connected message continuously during
> the integration test. Seems thrift data publisher continuously trying to
> connect to the server.Any thoughts why is that printing continuously?
>
> 2015-12-01 10:45:45 INFO
>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
> [2015-12-01 10:45:45,920]  INFO
> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
> 2015-12-01 10:45:45 INFO
>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
> [2015-12-01 10:45:45,920]  INFO
> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
> 2015-12-01 10:45:45 INFO
>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
> [2015-12-01 10:45:45,921]  INFO
> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
> 2015-12-01 10:45:45 INFO
>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
> [2015-12-01 10:45:45,921]  INFO
> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
> 2015-12-01 10:45:45 INFO
>  {org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader}:70 -
> [2015-12-01 10:45:45,922]  INFO
> {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
>
>
> Thanks,
> Gayan
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gayang@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com