Re: [Dev] How to do secondary indexing with bam-data-publisher for Stratos-Logging

2012-07-04 Thread Srinath Perera
Hi All,

Sorry for late reply

As I see it, secondary indexes are not a part of the agent API, which is
about collecting the data.

Secondary index is about analyzing / presenting the data. So if user
need secondary indexes, they will have to go to Cassandra directly, and
define them. I think we can do the same in logging impl.

--Srinath

On Fri, Jun 22, 2012 at 12:34 AM, Suhothayan Sriskandarajah
wrote:

>
>
> On Fri, Jun 22, 2012 at 2:36 PM, Amani Soysa  wrote:
>
>>
>>
>> On Fri, Jun 22, 2012 at 2:29 PM, Tharindu Mathew wrote:
>>
>>> This can be a useful feature for realtime requirements. But we need to
>>> follow some proper convention as this changes the event stream definition
>>> This is then an extensive change, and we are close to feature freezing.
>>>
>>> On Fri, Jun 22, 2012 at 2:15 PM, Amani Soysa  wrote:
>>>


 On Fri, Jun 22, 2012 at 2:02 PM, Deependra Ariyadewa wrote:

>
>
> On Fri, Jun 22, 2012 at 1:45 PM, Amani Soysa  wrote:
>
>>
>>
>> On Fri, Jun 22, 2012 at 1:24 PM, Tharindu Mathew 
>> wrote:
>>
>>> This will be useful for folks who want real time data access, but
>>> BAM is not designed to be real time. I don't want the Agent API to be
>>> specific to Cassandra, either.
>>>
>>> There should be a clean way to do this. How did you decide to do it
>>> this way? Was there a discussion?
>>>
>> Yes there was a discussion on this some time back on Architecture
>> -"RFC: Architecture for Stratos Log Processing"  where we decided to push
>> logs to bam event receiver through the publisher and view logs using 
>> hector
>> api.
>>
>
> Initially we tried to use flume as the Stratos log collector/manager
> but we stop flume evaluation because BAM's capability to cover the same 
> use
> case.
>
>  There are several workarounds like create relevant keyspaces in the
> tenant creation or create extended event receiver only for logging.
>
 If we do it in the tenant creation time their will be around 10
 keyspaces per each tenant (given that for each server, we create a keyspace
 as I explained earlier) So even a user doesn't use a particular server
 their will be a keyspace for it. So if there are 1000 tenants there will be
 10 000 keyspace (even if some keyspaces are not used at all) So I think its
 better to create keyspaces when ever logs are publishing to that particular
 keyspace.

>>> 10 keryspaces per tenant?? Are you sure that's right...
>>>
>> Yes for each sever (maybe more than 10 :) )
>> ie - data services,appserver,esb,mb,cep,bps,brs etc all the products we
>> offer for stratos deployment , because we store logs for each server in
>> different keyspace(if not we have to keep everything in a single keyspace
>> per tenant and it will be an expensive search when we filter the logs from
>> the server level because we give users server specific logs)
>> In our earlier syslog implementation we divided logs per each server for
>> fast result (as logs generates). Thats why its very important to not to
>> create keyspaces if users are not using a particular product.
>>
>
> I also agree with tharindu, that we should not make stream definition
> Cassandra specific, since this can also be used for JDBC data-store or
> InMemory data-store for CEP.
>
> Since this is an Cassandra specific issue and since we know the stream
> definition in advance, I believe its appropriate to have a Cassandra data
> store configuration which maps the stream definition to the appropriate
> Cassandra create key store query. Through this when the client request sent
> for defineEventStream the Cassandra data-store can first checks if it match
> one of the entry in the configuration, if so it runs the create key store
> query given in the configuration to create the key store with indexes, else
> it will create the key store in the normal way.
> Through this we can also restrict the number of unnecessary key store
> creation.
>
> Regards
> Suho
>
>>
> Thanks,
>
> Deependra.
>
>>
>>> On Fri, Jun 22, 2012 at 8:45 AM, Amani Soysa  wrote:
>>>
 Hi,

 Currently we are sending LogEvent data through bam data publisher
 to bam event receiver using a custom log4j appender. And we retrieve 
 logs
 using the hector API for the carbon log viewer. However, we need to 
 have
 secondary indexes for several columns so that we can filter log 
 information
 for a given column ( such as date, applicationName, priority,logger 
 etc)
 when creating the data publisher (keyspace). From the current Bam Data
 publisher implementation we cannot do secondary indexing all we can do 
 is
 define the column name and the data type of that column, and reciver
 creates the keyspaces for given columns with their data types.

>>

Re: [Dev] How to do secondary indexing with bam-data-publisher for Stratos-Logging

2012-07-04 Thread Amani Soysa
On Wed, Jul 4, 2012 at 12:30 PM, Srinath Perera  wrote:

> Hi All,
>
> Sorry for late reply
>
> As I see it, secondary indexes are not a part of the agent API, which is
> about collecting the data.
>
> Secondary index is about analyzing / presenting the data. So if user
> need secondary indexes, they will have to go to Cassandra directly, and
> define them. I think we can do the same in logging impl.
>
> Yes, after last friday  stratos-logging review, we decided to have real
time logs from the memory and to view older logs using bam analytics.
So we don't have this requirement anymore, We are writing a separate log
tool kit for BAM so that users can download long running logs separately.



> --Srinath
>
>
> On Fri, Jun 22, 2012 at 12:34 AM, Suhothayan Sriskandarajah  > wrote:
>
>>
>>
>> On Fri, Jun 22, 2012 at 2:36 PM, Amani Soysa  wrote:
>>
>>>
>>>
>>> On Fri, Jun 22, 2012 at 2:29 PM, Tharindu Mathew wrote:
>>>
 This can be a useful feature for realtime requirements. But we need to
 follow some proper convention as this changes the event stream definition
 This is then an extensive change, and we are close to feature freezing.

 On Fri, Jun 22, 2012 at 2:15 PM, Amani Soysa  wrote:

>
>
> On Fri, Jun 22, 2012 at 2:02 PM, Deependra Ariyadewa wrote:
>
>>
>>
>> On Fri, Jun 22, 2012 at 1:45 PM, Amani Soysa  wrote:
>>
>>>
>>>
>>> On Fri, Jun 22, 2012 at 1:24 PM, Tharindu Mathew 
>>> wrote:
>>>
 This will be useful for folks who want real time data access, but
 BAM is not designed to be real time. I don't want the Agent API to be
 specific to Cassandra, either.

 There should be a clean way to do this. How did you decide to do it
 this way? Was there a discussion?

>>> Yes there was a discussion on this some time back on Architecture
>>> -"RFC: Architecture for Stratos Log Processing"  where we decided to 
>>> push
>>> logs to bam event receiver through the publisher and view logs using 
>>> hector
>>> api.
>>>
>>
>> Initially we tried to use flume as the Stratos log collector/manager
>> but we stop flume evaluation because BAM's capability to cover the same 
>> use
>> case.
>>
>>  There are several workarounds like create relevant keyspaces in the
>> tenant creation or create extended event receiver only for logging.
>>
> If we do it in the tenant creation time their will be around 10
> keyspaces per each tenant (given that for each server, we create a 
> keyspace
> as I explained earlier) So even a user doesn't use a particular server
> their will be a keyspace for it. So if there are 1000 tenants there will 
> be
> 10 000 keyspace (even if some keyspaces are not used at all) So I think 
> its
> better to create keyspaces when ever logs are publishing to that 
> particular
> keyspace.
>
 10 keryspaces per tenant?? Are you sure that's right...

>>> Yes for each sever (maybe more than 10 :) )
>>> ie - data services,appserver,esb,mb,cep,bps,brs etc all the products we
>>> offer for stratos deployment , because we store logs for each server in
>>> different keyspace(if not we have to keep everything in a single keyspace
>>> per tenant and it will be an expensive search when we filter the logs from
>>> the server level because we give users server specific logs)
>>> In our earlier syslog implementation we divided logs per each server for
>>> fast result (as logs generates). Thats why its very important to not to
>>> create keyspaces if users are not using a particular product.
>>>
>>
>> I also agree with tharindu, that we should not make stream definition
>> Cassandra specific, since this can also be used for JDBC data-store or
>> InMemory data-store for CEP.
>>
>> Since this is an Cassandra specific issue and since we know the stream
>> definition in advance, I believe its appropriate to have a Cassandra data
>> store configuration which maps the stream definition to the appropriate
>> Cassandra create key store query. Through this when the client request sent
>> for defineEventStream the Cassandra data-store can first checks if it match
>> one of the entry in the configuration, if so it runs the create key store
>> query given in the configuration to create the key store with indexes, else
>> it will create the key store in the normal way.
>> Through this we can also restrict the number of unnecessary key store
>> creation.
>>
>> Regards
>> Suho
>>
>>>
>> Thanks,
>>
>> Deependra.
>>
>>>
 On Fri, Jun 22, 2012 at 8:45 AM, Amani Soysa wrote:

> Hi,
>
> Currently we are sending LogEvent data through bam data publisher
> to bam event receiver using a custom log4j appender. And we retrieve 
> logs
> using the hector API for the carbon log viewer. However, we need to 
> have
>>

[Dev] Error when trying to view system log for a tenant

2012-07-04 Thread Kishanthan Thangarajah
I'm seeing $subject for a tenant in AS. Is this a known issue? The error
says I have to configure syslog. What are the changes i need to make in
syslog configuration?
[image: Inline image 1]
Thanks,
Kishanthan.
-- 
*Kishanthan Thangarajah*
Software Engineer,
Development Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
<>___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 UI ToolKit Code Reivew

2012-07-04 Thread Jasintha Dasanayaka
This is a list of all comments for WSDS001-2.

Review Summary: No summary



---

ID: WSDS001-2 http://wso2.org/crucible/cru/WSDS001-2

Title: Fixing TOOLS-980
Statement of Objectives:


State: Approval

Author: Jasintha Dasanayaka
Moderator: Maheshika Goonetilleke
Reviewers: (0 active, 0 completed*)


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when trying to view system log for a tenant

2012-07-04 Thread Amani Soysa
Yes this is a known issue. Right now we cant view tenant specific logs
without configuring syslog. However, I am writing a carbonMemory appender
to view tenant aware log events from the memory. So that users can view
most latest logs from the memory. However if you want to view  older logs
you need to configure logging either syslog, or BAM logging event receiver.

[1] - https://wso2.org/jira/browse/CARBON-13574
[2] - https://wso2.org/jira/browse/CARBON-13571




On Wed, Jul 4, 2012 at 1:12 PM, Kishanthan Thangarajah
wrote:

> I'm seeing $subject for a tenant in AS. Is this a known issue? The error
> says I have to configure syslog. What are the changes i need to make in
> syslog configuration?
> [image: Inline image 1]
> Thanks,
> Kishanthan.
> --
> *Kishanthan Thangarajah*
> Software Engineer,
> Development Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com*
> Twitter - *http://twitter.com/kishanthan*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
<>___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: [Code Review] Dev Studio UI ToolKit Code Review @ Thu Jul 5 2pm - 3pm (dev@wso2.org)

2012-07-04 Thread Harshana Martin
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20120705T083000Z
DTEND:20120705T093000Z
DTSTAMP:20120704T075851Z
ORGANIZER;CN=Harshana Martin:mailto:harsh...@wso2.com
UID:cvk6s5ol2bugbtfbpoh6tt0...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sagara Gunathunga;X-NUM-GUESTS=0:mailto:sag...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Harshana Martin;X-NUM-GUESTS=0:mailto:harsh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Afkham Azeez;X-NUM-GUESTS=0:mailto:az...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Viraj Rajaguru;X-NUM-GUESTS=0:mailto:vi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Yumani Ranaweera;X-NUM-GUESTS=0:mailto:yum...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Bandara;X-NUM-GUESTS=0:mailto:nu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Isuru Suriarachchi;X-NUM-GUESTS=0:mailto:is...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jasintha Dasanayake;X-NUM-GUESTS=0:mailto:jasin...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;C
 N=LK #59 2nd Floor Room;X-NUM-GUESTS=0:mailto:wso2.com_38323432343934383931
 3...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Kalpa Senanayake;X-NUM-GUESTS=0:mailto:ka...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ruchira Wageesha;X-NUM-GUESTS=0:mailto:ruch...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Samisa Abeysinghe;X-NUM-GUESTS=0:mailto:sam...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Melan Jayasingha;X-NUM-GUESTS=0:mailto:me...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20120704T075757Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEW&eid=Y3ZrNnM1b2wyYnVnYnRmYnBvaDZ0dDAzaDQgZGV2QHdzbzIub3Jn&tok=MTcjaGFyc
 2hhbmFAd3NvMi5jb21iMmVjZWExZDIzZmM0NmI0ZmZmZmJkYzE5NTVlYmVlZTcyNDhhZWUw&ctz
 =Asia/Colombo&hl=en.
LAST-MODIFIED:20120704T075851Z
LOCATION:LK #59 2nd Floor Room
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:[Code Review] Dev Studio UI ToolKit Code Review
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Storing duplicate data in AM DB and governance registry

2012-07-04 Thread Hiranya Jayathilaka
At one point Sumedha suggested that we should use a single API_ID
everywhere in AM DB. That's how the AM_API table came into existence.

Thanks,
Hiranya

On Tue, Jul 3, 2012 at 11:52 PM, Denis Weerasiri  wrote:

> Hi Hiranya,
> Some of the meta data related to API is store in both AM DB (AM_API table)
> and governance registry
> at org.wso2.carbon.apimgt.impl.APIProviderImpl#addAPI.
> Is there a reason to persist those data in AM DB rather just manage them
> only inside the registry?
>
>
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java
>
> --
> Thanks,
> Denis
> --
> *Denis Weerasiri*
> Senior Software Engineer
> Integration Technologies Team, WSO2 Inc.; http://wso2.com,
> *email: denis ** [AT] wso2.com *
> *phone: +94117639629
> *
> *site: 
> **https://sites.google.com/site/ddweerasiri/*
> *blog: **http://ddweerasiri.blogspot.com*
> *
> twitter: **http://twitter.com/ddweerasiri*
> *
> linked-in: 
> **http://lk.linkedin.com/in/ddweerasiri*
>
>


-- 
Hiranya Jayathilaka
Senior Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Storing duplicate data in AM DB and governance registry

2012-07-04 Thread Hiranya Jayathilaka
If you go thru the DB schema you will notice how the API_ID is bring
referenced by other tables.

Thanks,
Hiranya

On Wed, Jul 4, 2012 at 2:13 PM, Hiranya Jayathilaka wrote:

> At one point Sumedha suggested that we should use a single API_ID
> everywhere in AM DB. That's how the AM_API table came into existence.
>
> Thanks,
> Hiranya
>
>
> On Tue, Jul 3, 2012 at 11:52 PM, Denis Weerasiri  wrote:
>
>> Hi Hiranya,
>> Some of the meta data related to API is store in both AM DB (AM_API
>> table) and governance registry
>> at org.wso2.carbon.apimgt.impl.APIProviderImpl#addAPI.
>> Is there a reason to persist those data in AM DB rather just manage them
>> only inside the registry?
>>
>>
>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java
>>
>> --
>> Thanks,
>> Denis
>> --
>> *Denis Weerasiri*
>> Senior Software Engineer
>> Integration Technologies Team, WSO2 Inc.; http://wso2.com,
>> *email: denis ** [AT] wso2.com 
>> *
>> *phone: +94117639629
>> *
>> *site: 
>> **https://sites.google.com/site/ddweerasiri/*
>> *blog: **http://ddweerasiri.blogspot.com*
>> *
>> twitter: **http://twitter.com/ddweerasiri*
>> *
>> linked-in: 
>> **http://lk.linkedin.com/in/ddweerasiri*
>>
>>
>
>
> --
> Hiranya Jayathilaka
> Senior Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>



-- 
Hiranya Jayathilaka
Senior Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure at dependencies/jaggery

2012-07-04 Thread Kishanthan Thangarajah
This is with clean repo.

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 4.459s
[INFO] Finished at: Wed Jul 04 15:16:18 IST 2012
[INFO] Final Memory: 37M/618M
[INFO]

[ERROR] Failed to execute goal on project org.jaggeryjs.hostobjects.ws:
Could not resolve dependencies for project
org.jaggeryjs:org.jaggeryjs.hostobjects.ws:bundle:0.9.0-SNAPSHOT: Failure
to find
org.wso2.carbon:org.wso2.carbon.mashup.javascript-stub-generator:jar:4.0.0-SNAPSHOT
in http://dist.wso2.org/maven2/ was cached in the local repository,
resolution will not be reattempted until the update interval of
wso2-maven2-repository has elapsed or updates are forced -> [Help 1]



-- 
*Kishanthan Thangarajah*
Software Engineer,
Development Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Dimuthu Leelarathne
Hi all,

This seems to be a blocker for us. Looks like a caching issue at mysql
and/or pooling layer.  I tried without the following indexing and still get
the same results. I don't think it is a mysql layer because the same SQL is
running on mysql_workbench.

CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
ON UM_TENANT (UM_DOMAIN_NAME);

thanks,
dimuthu

On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne wrote:

> Hi all,
>
> AppFactory setup done last hour shows the same error again.
>
> thanks,
> dimuthu
>
>
> On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne wrote:
>
>> Hi all,
>>
>> I believe what is happening is AppFactory is trying to read the
>> uncommitted data from the db. The attached screenshot explains the scenario
>> nicely. I kept adding test1,test2,test3  test8 and out of these only
>> even numbers are actually added - odd ones are failing.
>>
>> But after that I stopped the server did a "select *" before doing the
>> "select UM_ID from where *"  in user.core. Then replaced the jar and
>> restarted the server. As you can see test9, test10, test11 and test12 are
>> added without any issue at all. Meaning doing a "select *" somehow forced
>> "select UM_ID from where *" to work correctly. Looks like we are doing some
>> dirty reads.
>>
>> thanks,
>> dimuthu
>>
>>
>> On Thu, Jun 28, 2012 at 5:37 PM, Dimuthu Leelarathne 
>> wrote:
>>
>>> Hi all,
>>>
>>> This is fun. I am wondering whether I should a screen recording of this
>>> event.
>>>
>>> thanks,
>>> dimuthu
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Freezing Orbit Bundles

2012-07-04 Thread Nuwan Bandara
Folks, whats the status of this ? Are we set to release orbit ? when are we
going to branch.

Regards,
/Nuwan

On Mon, Jul 2, 2012 at 5:36 AM, Samisa Abeysinghe  wrote:

>
>
> On Sun, Jul 1, 2012 at 10:15 PM, Pradeep Fernando wrote:
>
>> Hi All,
>>
>> we have decided to release orbit (top level orbit project) + kernel
>> dependencies before end of this week.
>> This includes Axis2 dependency and its orbit bundle.
>>
>
> +1
>
> In case we find bugs later, we can do a patch releases of those affected.
>
> I hope this is the first step in releasing the platform, and developers
> need to update their build habits accordingly - meaning, no need to build
> the whole thing any more.
>
>
>>
>> wdyt ?
>>
>> --Pradeep
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>


-- 
*Thanks & Regards,

Nuwan Bandara
Associate Technical Lead & Member, MC, Development Technologies
WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629
*

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Sumedha Rubasinghe
Dimuthu,
I was under the impression this was solved. Thought Anjana had a look @ it.
This cannot be a caching issue @ the database level. Then it should impact
everywhere. I still feel this is an application level concurrency issue.

Let me discuss with Anjana & get back to you. Sorry for allowing you to
live with this for long.

On Wed, Jul 4, 2012 at 3:56 PM, Dimuthu Leelarathne wrote:

> Hi all,
>
> This seems to be a blocker for us. Looks like a caching issue at mysql
> and/or pooling layer.  I tried without the following indexing and still get
> the same results. I don't think it is a mysql layer because the same SQL is
> running on mysql_workbench.
>
> CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
> ON UM_TENANT (UM_DOMAIN_NAME);
>
> thanks,
> dimuthu
>
>
> On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne wrote:
>
>> Hi all,
>>
>> AppFactory setup done last hour shows the same error again.
>>
>> thanks,
>> dimuthu
>>
>>
>> On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne 
>> wrote:
>>
>>> Hi all,
>>>
>>> I believe what is happening is AppFactory is trying to read the
>>> uncommitted data from the db. The attached screenshot explains the scenario
>>> nicely. I kept adding test1,test2,test3  test8 and out of these only
>>> even numbers are actually added - odd ones are failing.
>>>
>>> But after that I stopped the server did a "select *" before doing the
>>> "select UM_ID from where *"  in user.core. Then replaced the jar and
>>> restarted the server. As you can see test9, test10, test11 and test12 are
>>> added without any issue at all. Meaning doing a "select *" somehow forced
>>> "select UM_ID from where *" to work correctly. Looks like we are doing some
>>> dirty reads.
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Thu, Jun 28, 2012 at 5:37 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 Hi all,

 This is fun. I am wondering whether I should a screen recording of this
 event.

 thanks,
 dimuthu

>>>
>>>
>>
>


-- 
/sumedha
+94 773017743
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Freezing Orbit Bundles

2012-07-04 Thread Pradeep Fernando
will start branching on Thursday, plan is to finish it by monday.

--Pradeep
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Freezing Orbit Bundles

2012-07-04 Thread Nuwan Bandara
Any plans for dependencies ?

On Wed, Jul 4, 2012 at 4:22 PM, Pradeep Fernando  wrote:

> will start branching on Thursday, plan is to finish it by monday.
>
> --Pradeep
>



-- 
*Thanks & Regards,

Nuwan Bandara
Associate Technical Lead & Member, MC, Development Technologies
WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629
*

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Dimuthu Leelarathne
Hi Sumedha,

This is not an application level concurrency issue because how would you
explain,

1) With mysql_workbench while I have paused the program with a debug point.
2) There is concurrency associated with this scenario
3) The reverse works. When domain is given the ID is retrieved

My next steps,
1) Run using h2 server
2) Retrieve domain given the ID using same db connection

thanks,
dimuthu

On Wed, Jul 4, 2012 at 4:11 PM, Sumedha Rubasinghe  wrote:

> Dimuthu,
> I was under the impression this was solved. Thought Anjana had a look @ it.
> This cannot be a caching issue @ the database level. Then it should impact
> everywhere. I still feel this is an application level concurrency issue.
>
> Let me discuss with Anjana & get back to you. Sorry for allowing you to
> live with this for long.
>
> On Wed, Jul 4, 2012 at 3:56 PM, Dimuthu Leelarathne wrote:
>
>> Hi all,
>>
>> This seems to be a blocker for us. Looks like a caching issue at mysql
>> and/or pooling layer.  I tried without the following indexing and still get
>> the same results. I don't think it is a mysql layer because the same SQL is
>> running on mysql_workbench.
>>
>> CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
>> ON UM_TENANT (UM_DOMAIN_NAME);
>>
>> thanks,
>> dimuthu
>>
>>
>> On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne 
>> wrote:
>>
>>> Hi all,
>>>
>>> AppFactory setup done last hour shows the same error again.
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 Hi all,

 I believe what is happening is AppFactory is trying to read the
 uncommitted data from the db. The attached screenshot explains the scenario
 nicely. I kept adding test1,test2,test3  test8 and out of these only
 even numbers are actually added - odd ones are failing.

 But after that I stopped the server did a "select *" before doing the
 "select UM_ID from where *"  in user.core. Then replaced the jar and
 restarted the server. As you can see test9, test10, test11 and test12 are
 added without any issue at all. Meaning doing a "select *" somehow forced
 "select UM_ID from where *" to work correctly. Looks like we are doing some
 dirty reads.

 thanks,
 dimuthu


 On Thu, Jun 28, 2012 at 5:37 PM, Dimuthu Leelarathne >>> > wrote:

> Hi all,
>
> This is fun. I am wondering whether I should a screen recording of
> this event.
>
> thanks,
> dimuthu
>


>>>
>>
>
>
> --
> /sumedha
> +94 773017743
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updated Invitation: Url Mapper Review @ Wed Jul 4 2:30pm - 3:30pm (am...@wso2.com)

2012-07-04 Thread Amani Soysa
Hi all,

Please find the meeting notes here.

In the URL Mapper UI {Mapping lists} making the mappings as links (show the
ports as well)
Test the security sample with virtual hosts.
Test accessing VH through SSL (test with IE and see)
To synchronize the deployment between nodes inside a cluster, use cluster
message when adding virtual hosts.
Test VH hosts with webapp lazy loading/unloading
Limit virtual hosts per web application.
Fix UI issues related to URL Mapping, add user friendly messages, tool tips.
Performance test for 10 000 virtual host, test server startup time memory
usage etc.
Do not deploy virtual host at server start up only add VH at the start up
deploy VH when tenants are loaded.
Put prefix (wso2.com) and no VH per webapp/services in configuration file.
Test address endpoints using SOAP UI, remove the hack done in
CompositeValve.

Regards,
Amani


On Mon, Jul 2, 2012 at 1:34 PM, Reka Thirunavukkarasu  wrote:

> This event has been changed.
> more details 
> »
> *Changed: *Url Mapper Review
> Review the functionality of context mapping for webapps and services in AS
> with fronting LB.
> *When*
> *Changed: *Wed Jul 4 2:30pm – 3:30pm Colombo
> *Where*
> LK #59 2nd Floor Room 
> (map
> )
> *Calendar*
> am...@wso2.com
> *Who*
> •
> Reka Thirunavukkarasu - organizer
> •
> Selvaratnam Uthaiyashankar
> •
> Pradeep Fernando
> •
> Afkham Azeez
> •
> Sanjeewa Malalgoda
> •
> dev@wso2.org
> •
> Amani Soysa
> •
> Dimuthu Leelarathne
> •
> Thilina Buddhika
>
> Going?   
> ***Yes-
> Maybe-
> No
> ***more options 
> »
>
> Invitation from Google Calendar 
>
> You are receiving this email at the account am...@wso2.com because you
> are subscribed for updated invitations on calendar am...@wso2.com.
>
> To stop receiving these notifications, please log in to
> https://www.google.com/calendar/ and change your notification settings
> for this calendar.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: Code Review For CEP File Generation Plugin @ Thu Jul 5 4pm - 5pm (dev@wso2.org)

2012-07-04 Thread Isuru Ranawaka
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20120705T103000Z
DTEND:20120705T113000Z
DTSTAMP:20120704T114938Z
ORGANIZER;CN=isu...@wso2.com:mailto:isu...@wso2.com
UID:gh8s770dtuh7ejnv8eggkij...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Isuru Ranawaka;X-NUM-GUESTS=0:mailto:isu...@wso2.com
CREATED:20120704T114938Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEW&eid=Z2g4czc3MGR0dWg3ZWpudjhlZ2draWpicWcgZGV2QHdzbzIub3Jn&tok=MTUjaXN1c
 nVyQHdzbzIuY29tN2ZhZmI3ODlhYjViNTNlZjlmZDM1Yzg2OTQ5NWM0ZGI3M2ZkNjYwYg&ctz=A
 sia/Colombo&hl=en.
LAST-MODIFIED:20120704T114938Z
LOCATION:LK#50
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Code Review For CEP File Generation Plugin
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Code Review For CEP File Generation Plug-in

2012-07-04 Thread Isuru Ranawaka
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20120705T103000Z
DTEND:20120705T113000Z
DTSTAMP:20120704T114938Z
ORGANIZER;CN=isu...@wso2.com:mailto:isu...@wso2.com
UID:gh8s770dtuh7ejnv8eggkij...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Isuru Ranawaka;X-NUM-GUESTS=0:mailto:isu...@wso2.com
CREATED:20120704T114938Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEW&ueid=gh8s770dtuh7ejnv8eggkijbqg.
LAST-MODIFIED:20120704T114938Z
LOCATION:LK#50
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Code Review For CEP File Generation Plugin
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Carbon Snapshot > Orbit > #123 was SUCCESSFUL

2012-07-04 Thread Bamboo

---
Carbon Snapshot > Orbit > #123 was successful.
---
This build was manually triggered by Nuwan Bandara.

http://wso2.org/bamboo/browse/WSO2CARBON-CARBONKERNELBUILD-123/



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Dimuthu Leelarathne
Hi all,


This is a connection pooling issue. The reason for saying that is as
follows.
Here is the SQL = String sql = "SELECT UM_ID FROM UM_TENANT WHERE
UM_DOMAIN_NAME=?"

Consider the following control flow.

Control Flow
===

Connection dbConnection1 = getDBConnection();
Connection dbConnection2 = getDBConnection();
prepare and execute SQL using dbConnection2 -> result is successful
prepare and execute SQL using dbConnection1 -> result is unsuccessful
prepare and execute SQL using dbConnection2 -> result is successful
prepare and execute SQL using dbConnection1 -> result is unsuccessful

Now see we are executing the same SQL using same parameter using two db
connection. The dbConnection1 goes totally crazy for requests that hit the
above code segment - one after the other.

thanks,
dimuthu



On Wed, Jul 4, 2012 at 4:44 PM, Dimuthu Leelarathne wrote:

> Hi Sumedha,
>
> This is not an application level concurrency issue because how would you
> explain,
>
> 1) With mysql_workbench while I have paused the program with a debug
> point.
> 2) There is concurrency associated with this scenario
> 3) The reverse works. When domain is given the ID is retrieved
>
> My next steps,
> 1) Run using h2 server
> 2) Retrieve domain given the ID using same db connection
>
> thanks,
> dimuthu
>
>
> On Wed, Jul 4, 2012 at 4:11 PM, Sumedha Rubasinghe wrote:
>
>> Dimuthu,
>> I was under the impression this was solved. Thought Anjana had a look @
>> it.
>> This cannot be a caching issue @ the database level. Then it should
>> impact everywhere. I still feel this is an application level concurrency
>> issue.
>>
>> Let me discuss with Anjana & get back to you. Sorry for allowing you to
>> live with this for long.
>>
>> On Wed, Jul 4, 2012 at 3:56 PM, Dimuthu Leelarathne wrote:
>>
>>> Hi all,
>>>
>>> This seems to be a blocker for us. Looks like a caching issue at mysql
>>> and/or pooling layer.  I tried without the following indexing and still get
>>> the same results. I don't think it is a mysql layer because the same SQL is
>>> running on mysql_workbench.
>>>
>>> CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
>>> ON UM_TENANT (UM_DOMAIN_NAME);
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 Hi all,

 AppFactory setup done last hour shows the same error again.

 thanks,
 dimuthu


 On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne >>> > wrote:

> Hi all,
>
> I believe what is happening is AppFactory is trying to read the
> uncommitted data from the db. The attached screenshot explains the 
> scenario
> nicely. I kept adding test1,test2,test3  test8 and out of these only
> even numbers are actually added - odd ones are failing.
>
> But after that I stopped the server did a "select *" before doing the
> "select UM_ID from where *"  in user.core. Then replaced the jar and
> restarted the server. As you can see test9, test10, test11 and test12 are
> added without any issue at all. Meaning doing a "select *" somehow forced
> "select UM_ID from where *" to work correctly. Looks like we are doing 
> some
> dirty reads.
>
> thanks,
> dimuthu
>
>
> On Thu, Jun 28, 2012 at 5:37 PM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>> Hi all,
>>
>> This is fun. I am wondering whether I should a screen recording of
>> this event.
>>
>> thanks,
>> dimuthu
>>
>
>

>>>
>>
>>
>> --
>> /sumedha
>> +94 773017743
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Muhammed Shariq
Hi folks,

To provide some background, currently in JDBCTenantManager we have two maps
namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
fetching a tenant's id via domain name or vise-versa. Whenever we try to
obtain the id via domain for example, it first checks if that particular
domain is present in the tenantDomainIdMap, and if only if its not
available it checks the DB.

We however never clear these tow maps, so if there is a domain-id mapping
it exist as long as the server is running. Note that we have these maps per
Stratos service, meaning AS, ESB, DSS etc maintains its own map
locally. Previously this was no issue since we didn't have the facility to
delete a tenant, but when trying to create the tenant deletion patch, I
came across some issues since we never clear this map.

For example say we have a tenant foo.com with TID - 10. If this tenant logs
into AS, the locals maps will contain the mapping tenant foo.com <=> TID -
10. Next we delete the tenant from Manager and also the delete the entry in
the locals maps of Manager, but still we have no way of clearing the domain
<=> ID mapping in AS (or any other service). So if we create another tenant
foo.com with TID-12 AS will still have the old domain-id mapping, which
obviously causes issue.

So I am looking for a way to clear these two maps. One suggestion was to
delete the domain-id mapping when unloading the tenant. For this we need to
add static getter methods for the two maps, not sure if that's a good idea,
or have a scheduled thread to cleanup the map periodically, or else have an
overloaded method, getTenantId(String tenantDomain, boolean readDB) ... ?!

Please suggest what would be the best way to clean up the local domain-id
mapping ...

-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Smoke test - Kernel Beta2 Packs

2012-07-04 Thread Evanthika Amarasiri
Hi,

Reminder! We are using [1] at the moment.

[1] -
http://wso2.org/bamboo/artifact/WSO2CARBON-P2REPO/JOB1/build-143/P2-Repo/p2-repo

Regards,
Evanthika


On Fri, Jun 29, 2012 at 12:36 PM, Charitha Kankanamge wrote:

> Hi Dimuthu,
> I cannot find the P2-repo associated with these packs. Can you please
> share the URL?
>
> Thanks!
> Charitha
>
> On Mon, Jun 25, 2012 at 9:23 AM, Dimuthu Leelarathne wrote:
>
>> Hi RMs,
>>
>> Please do a smoke test on the following packs.
>>
>> http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-JOB1-255/artifact
>>
>> Smoke testing includes,
>>
>> 1) No startup errors
>> 2) All samples working
>> 3) Super tenant sign-in is working fine
>> 4) Tenant sign-in is working
>>
>> thanks,
>> dimuthu
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Afkham Azeez
Tenant deletion is a very rare usecase. So, we need not complicate things
at this moment. Please note that deleted tenant IDs should not be reused.
So, my suggestion is, don't fix this.

On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:

> Hi folks,
>
> To provide some background, currently in JDBCTenantManager we have two
> maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
> fetching a tenant's id via domain name or vise-versa. Whenever we try to
> obtain the id via domain for example, it first checks if that particular
> domain is present in the tenantDomainIdMap, and if only if its not
> available it checks the DB.
>
> We however never clear these tow maps, so if there is a domain-id mapping
> it exist as long as the server is running. Note that we have these maps per
> Stratos service, meaning AS, ESB, DSS etc maintains its own map
> locally. Previously this was no issue since we didn't have the facility to
> delete a tenant, but when trying to create the tenant deletion patch, I
> came across some issues since we never clear this map.
>
> For example say we have a tenant foo.com with TID - 10. If this tenant
> logs into AS, the locals maps will contain the mapping tenant foo.com <=>
> TID - 10. Next we delete the tenant from Manager and also the delete the
> entry in the locals maps of Manager, but still we have no way of clearing
> the domain <=> ID mapping in AS (or any other service). So if we create
> another tenant foo.com with TID-12 AS will still have the old domain-id
> mapping, which obviously causes issue.
>
> So I am looking for a way to clear these two maps. One suggestion was to
> delete the domain-id mapping when unloading the tenant. For this we need to
> add static getter methods for the two maps, not sure if that's a good idea,
> or have a scheduled thread to cleanup the map periodically, or else have an
> overloaded method, getTenantId(String tenantDomain, boolean readDB) ... ?!
>
> Please suggest what would be the best way to clean up the local domain-id
> mapping ...
>
> --
> Thanks,
> Shariq.
> Phone: +94 777 202 225
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Sanjeewa Malalgoda
Hi shariq,

On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:

> Hi folks,
>
> To provide some background, currently in JDBCTenantManager we have two
> maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
> fetching a tenant's id via domain name or vise-versa. Whenever we try to
> obtain the id via domain for example, it first checks if that particular
> domain is present in the tenantDomainIdMap, and if only if its not
> available it checks the DB.
>

BTW Why do we maintain 2 maps we can have single bidi-map. If i remember
correctly azeez fix this in some place.


> We however never clear these tow maps, so if there is a domain-id mapping
> it exist as long as the server is running. Note that we have these maps per
> Stratos service, meaning AS, ESB, DSS etc maintains its own map
> locally. Previously this was no issue since we didn't have the facility to
> delete a tenant, but when trying to create the tenant deletion patch, I
> came across some issues since we never clear this map.
>
> For example say we have a tenant foo.com with TID - 10. If this tenant
> logs into AS, the locals maps will contain the mapping tenant foo.com <=>
> TID - 10. Next we delete the tenant from Manager and also the delete the
> entry in the locals maps of Manager, but still we have no way of clearing
> the domain <=> ID mapping in AS (or any other service). So if we create
> another tenant foo.com with TID-12 AS will still have the old domain-id
> mapping, which obviously causes issue.
>
> So I am looking for a way to clear these two maps. One suggestion was to
> delete the domain-id mapping when unloading the tenant. For this we need to
> add static getter methods for the two maps, not sure if that's a good idea,
> or have a scheduled thread to cleanup the map periodically, or else have an
> overloaded method, getTenantId(String tenantDomain, boolean readDB) ... ?
>

One possible solutions is sending cluster message once you deleted the
entry. then it will update all the nodes within the cluster with
new tenant id domain map.  next we have to update other services as well.
for that we have to find a proper way(calling each and every
server and ask to update the map from db). cleaning up this map time to
time is not good idea since this map is heavily use by many components.


> Please suggest what would be the best way to clean up the local domain-id
> mapping ...
>
> --
> Thanks,
> Shariq.
> Phone: +94 777 202 225
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

Thanks.
-- 
*Sanjeewa Malalgoda*
mobile : +94 713068779
 blog
:http://sanjeewamalalgoda.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Afkham Azeez
As for the case of the map filling up, the key & value are very simple
string/int. Even millions of entries will result in very low memory
consumption. Millions of entries in this map translates to millions of
active tenants. There can be only one entry per tenant. So, once again, my
suggestion is this map cleaning up is not needed. The cost of doing this is
very high & the benefit is very very small.


On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:

> Tenant deletion is a very rare usecase. So, we need not complicate things
> at this moment. Please note that deleted tenant IDs should not be reused.
> So, my suggestion is, don't fix this.
>
>
> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:
>
>> Hi folks,
>>
>> To provide some background, currently in JDBCTenantManager we have two
>> maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
>> fetching a tenant's id via domain name or vise-versa. Whenever we try to
>> obtain the id via domain for example, it first checks if that particular
>> domain is present in the tenantDomainIdMap, and if only if its not
>> available it checks the DB.
>>
>> We however never clear these tow maps, so if there is a domain-id mapping
>> it exist as long as the server is running. Note that we have these maps per
>> Stratos service, meaning AS, ESB, DSS etc maintains its own map
>> locally. Previously this was no issue since we didn't have the facility to
>> delete a tenant, but when trying to create the tenant deletion patch, I
>> came across some issues since we never clear this map.
>>
>> For example say we have a tenant foo.com with TID - 10. If this tenant
>> logs into AS, the locals maps will contain the mapping tenant foo.com<=> TID 
>> - 10. Next we delete the tenant from Manager and also the delete
>> the entry in the locals maps of Manager, but still we have no way of
>> clearing the domain <=> ID mapping in AS (or any other service). So if we
>> create another tenant foo.com with TID-12 AS will still have the old
>> domain-id mapping, which obviously causes issue.
>>
>> So I am looking for a way to clear these two maps. One suggestion was to
>> delete the domain-id mapping when unloading the tenant. For this we need to
>> add static getter methods for the two maps, not sure if that's a good idea,
>> or have a scheduled thread to cleanup the map periodically, or else have an
>> overloaded method, getTenantId(String tenantDomain, boolean readDB) ... ?!
>>
>> Please suggest what would be the best way to clean up the local domain-id
>> mapping ...
>>
>> --
>> Thanks,
>> Shariq.
>> Phone: +94 777 202 225
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Afkham Azeez
Yes, replacing the two maps with a bidimap were fixed about 1 year back.
This improved the efficiency since tenant id-> domain & domain -> tenant id
lookups were earlier resulting in two sets of DB calls. With the bidimap,
we were able to load the info using one set of calls.

On Wed, Jul 4, 2012 at 6:44 PM, Sanjeewa Malalgoda wrote:

> Hi shariq,
>
> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:
>
>> Hi folks,
>>
>> To provide some background, currently in JDBCTenantManager we have two
>> maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
>> fetching a tenant's id via domain name or vise-versa. Whenever we try to
>> obtain the id via domain for example, it first checks if that particular
>> domain is present in the tenantDomainIdMap, and if only if its not
>> available it checks the DB.
>>
>
> BTW Why do we maintain 2 maps we can have single bidi-map. If i remember
> correctly azeez fix this in some place.
>
>
>> We however never clear these tow maps, so if there is a domain-id mapping
>> it exist as long as the server is running. Note that we have these maps per
>> Stratos service, meaning AS, ESB, DSS etc maintains its own map
>> locally. Previously this was no issue since we didn't have the facility to
>> delete a tenant, but when trying to create the tenant deletion patch, I
>> came across some issues since we never clear this map.
>>
>> For example say we have a tenant foo.com with TID - 10. If this tenant
>> logs into AS, the locals maps will contain the mapping tenant foo.com<=> TID 
>> - 10. Next we delete the tenant from Manager and also the delete
>> the entry in the locals maps of Manager, but still we have no way of
>> clearing the domain <=> ID mapping in AS (or any other service). So if we
>> create another tenant foo.com with TID-12 AS will still have the old
>> domain-id mapping, which obviously causes issue.
>>
>> So I am looking for a way to clear these two maps. One suggestion was to
>> delete the domain-id mapping when unloading the tenant. For this we need to
>> add static getter methods for the two maps, not sure if that's a good idea,
>> or have a scheduled thread to cleanup the map periodically, or else have an
>> overloaded method, getTenantId(String tenantDomain, boolean readDB) ... ?
>>
>
> One possible solutions is sending cluster message once you deleted the
> entry. then it will update all the nodes within the cluster with
> new tenant id domain map.  next we have to update other services as well.
> for that we have to find a proper way(calling each and every
> server and ask to update the map from db). cleaning up this map time to
> time is not good idea since this map is heavily use by many components.
>
>
>> Please suggest what would be the best way to clean up the local domain-id
>> mapping ...
>>
>> --
>> Thanks,
>> Shariq.
>> Phone: +94 777 202 225
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> Thanks.
> --
> *Sanjeewa Malalgoda*
> mobile : +94 713068779
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Muhammed Shariq
Hi,

On Wed, Jul 4, 2012 at 6:49 PM, Afkham Azeez  wrote:

> As for the case of the map filling up, the key & value are very simple
> string/int. Even millions of entries will result in very low memory
> consumption. Millions of entries in this map translates to millions of
> active tenants. There can be only one entry per tenant. So, once again, my
> suggestion is this map cleaning up is not needed. The cost of doing this is
> very high & the benefit is very very small.
>
>
> On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:
>
>> Tenant deletion is a very rare usecase. So, we need not complicate things
>> at this moment. Please note that deleted tenant IDs should not be reused.
>> So, my suggestion is, don't fix this.
>
>
We are not reusing the tenant id, actually if we try to create a tenant
with a deleted tenant domain then the new tenant id will be different, but
since we cannot update the individual maps in the separate services, we
still get the old tenant id for the newly created tenant. Of course, these
issue arises only if we delete a tenant and create a tenant with the same
domain, which is a rare usecase, so may be we can live with it.

Also as Sanjeewa mentioned, this map is heavily used by many components so
deleting records might cause a performance hit as well. Anyway I wanted to
bring this up before we freeze the kernel to discuss any possible solution
...

>
>>
>> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:
>>
>>> Hi folks,
>>>
>>> To provide some background, currently in JDBCTenantManager we have two
>>> maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
>>> fetching a tenant's id via domain name or vise-versa. Whenever we try to
>>> obtain the id via domain for example, it first checks if that particular
>>> domain is present in the tenantDomainIdMap, and if only if its not
>>> available it checks the DB.
>>>
>>> We however never clear these tow maps, so if there is a domain-id
>>> mapping it exist as long as the server is running. Note that we have these
>>> maps per Stratos service, meaning AS, ESB, DSS etc maintains its own map
>>> locally. Previously this was no issue since we didn't have the facility to
>>> delete a tenant, but when trying to create the tenant deletion patch, I
>>> came across some issues since we never clear this map.
>>>
>>> For example say we have a tenant foo.com with TID - 10. If this tenant
>>> logs into AS, the locals maps will contain the mapping tenant foo.com<=> 
>>> TID - 10. Next we delete the tenant from Manager and also the delete
>>> the entry in the locals maps of Manager, but still we have no way of
>>> clearing the domain <=> ID mapping in AS (or any other service). So if we
>>> create another tenant foo.com with TID-12 AS will still have the old
>>> domain-id mapping, which obviously causes issue.
>>>
>>> So I am looking for a way to clear these two maps. One suggestion was to
>>> delete the domain-id mapping when unloading the tenant. For this we need to
>>> add static getter methods for the two maps, not sure if that's a good idea,
>>> or have a scheduled thread to cleanup the map periodically, or else have an
>>> overloaded method, getTenantId(String tenantDomain, boolean readDB) ... ?!
>>>
>>> Please suggest what would be the best way to clean up the local
>>> domain-id mapping ...
>>>
>>> --
>>> Thanks,
>>> Shariq.
>>> Phone: +94 777 202 225
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Infinispan caching with sync=false

2012-07-04 Thread Prabath Siriwardena
When we set false - what parameters can we use to set
threadPoolSize -  by default threadPoolSize is one...

--
Thanks & Regards,
Prabath

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://RampartFAQ.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Carbon Snapshot > Platform > #412 has FAILED. Change made by 29 authors.

2012-07-04 Thread Bamboo

---
Carbon Snapshot > Platform > #412 failed.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONCOREKERNELBUILD-353.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-412/


--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.



--
Code Changes
--
dinusha (131693):

>Adding advanced jdbc connection pool properties provided by tomcal jdbc pool.

subash (131696):

>Fix for REGISTRY-975  association/dependencies path textbox

dimuthul (131637):

>Adding the Exceptions. 
>
>



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Cannot log into product after creating Tennants

2012-07-04 Thread Shelan Perera
Hi,

I tried to create a tenant and then few users to test a scenario using Greg
packs obtained from [1].When i try to login as Tenant admin it fails
with following exception [2].
After that carbon theme comes up not the Greg.

[1] http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-267/artifact/JOB1/GREG

[2] http://pastie.org/4199393

-- 
*Shelan Perera*

Software Engineer
**
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Home Page*  :shelan.org
*Blog* : blog.shelan.org
*Linked-i*n  :http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Anjana Fernando
Hi Dimuthu,

As we talked earlier, did you do the step of querying the same record using
the UM_ID directly, rather than the domain name, using the same connection.
Also, try the scenario with H2. I actually cannot think of a reason how the
connection pooling can have any effect on this, because they are simply
database connections they keep, and the connection pooling layer does not
do any data caching. We should carefully try all the scenarios and see,
where the problem is actually is at. We will further work together tomorrow
to track down the problem.

Cheers,
Anjana.

On Wed, Jul 4, 2012 at 6:02 PM, Dimuthu Leelarathne wrote:

> Hi all,
>
>
> This is a connection pooling issue. The reason for saying that is as
> follows.
> Here is the SQL = String sql = "SELECT UM_ID FROM UM_TENANT WHERE
> UM_DOMAIN_NAME=?"
>
> Consider the following control flow.
>
> Control Flow
> ===
>
> Connection dbConnection1 = getDBConnection();
> Connection dbConnection2 = getDBConnection();
> prepare and execute SQL using dbConnection2 -> result is successful
> prepare and execute SQL using dbConnection1 -> result is unsuccessful
> prepare and execute SQL using dbConnection2 -> result is successful
> prepare and execute SQL using dbConnection1 -> result is unsuccessful
>
> Now see we are executing the same SQL using same parameter using two db
> connection. The dbConnection1 goes totally crazy for requests that hit the
> above code segment - one after the other.
>
> thanks,
> dimuthu
>
>
>
>
> On Wed, Jul 4, 2012 at 4:44 PM, Dimuthu Leelarathne wrote:
>
>> Hi Sumedha,
>>
>> This is not an application level concurrency issue because how would you
>> explain,
>>
>> 1) With mysql_workbench while I have paused the program with a debug
>> point.
>> 2) There is concurrency associated with this scenario
>> 3) The reverse works. When domain is given the ID is retrieved
>>
>> My next steps,
>> 1) Run using h2 server
>> 2) Retrieve domain given the ID using same db connection
>>
>> thanks,
>> dimuthu
>>
>>
>> On Wed, Jul 4, 2012 at 4:11 PM, Sumedha Rubasinghe wrote:
>>
>>> Dimuthu,
>>> I was under the impression this was solved. Thought Anjana had a look @
>>> it.
>>> This cannot be a caching issue @ the database level. Then it should
>>> impact everywhere. I still feel this is an application level concurrency
>>> issue.
>>>
>>> Let me discuss with Anjana & get back to you. Sorry for allowing you to
>>> live with this for long.
>>>
>>> On Wed, Jul 4, 2012 at 3:56 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 Hi all,

 This seems to be a blocker for us. Looks like a caching issue at mysql
 and/or pooling layer.  I tried without the following indexing and still get
 the same results. I don't think it is a mysql layer because the same SQL is
 running on mysql_workbench.

 CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
 ON UM_TENANT (UM_DOMAIN_NAME);

 thanks,
 dimuthu


 On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne >>> > wrote:

> Hi all,
>
> AppFactory setup done last hour shows the same error again.
>
> thanks,
> dimuthu
>
>
> On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>> Hi all,
>>
>> I believe what is happening is AppFactory is trying to read the
>> uncommitted data from the db. The attached screenshot explains the 
>> scenario
>> nicely. I kept adding test1,test2,test3  test8 and out of these only
>> even numbers are actually added - odd ones are failing.
>>
>> But after that I stopped the server did a "select *" before doing the
>> "select UM_ID from where *"  in user.core. Then replaced the jar and
>> restarted the server. As you can see test9, test10, test11 and test12 are
>> added without any issue at all. Meaning doing a "select *" somehow forced
>> "select UM_ID from where *" to work correctly. Looks like we are doing 
>> some
>> dirty reads.
>>
>> thanks,
>> dimuthu
>>
>>
>> On Thu, Jun 28, 2012 at 5:37 PM, Dimuthu Leelarathne <
>> dimut...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> This is fun. I am wondering whether I should a screen recording of
>>> this event.
>>>
>>> thanks,
>>> dimuthu
>>>
>>
>>
>

>>>
>>>
>>> --
>>> /sumedha
>>> +94 773017743
>>>
>>
>>
>


-- 
*Anjana Fernando*
Associate Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Sumedha Rubasinghe
Dimuthu,
Can you confirm if the same method is being used in following thread
started by Shelan as well.
'[Dev] Cannot log into product after creating Tennants'.



On Wed, Jul 4, 2012 at 6:02 PM, Dimuthu Leelarathne wrote:

> Hi all,
>
>
> This is a connection pooling issue. The reason for saying that is as
> follows.
> Here is the SQL = String sql = "SELECT UM_ID FROM UM_TENANT WHERE
> UM_DOMAIN_NAME=?"
>
> Consider the following control flow.
>
> Control Flow
> ===
>
> Connection dbConnection1 = getDBConnection();
> Connection dbConnection2 = getDBConnection();
> prepare and execute SQL using dbConnection2 -> result is successful
> prepare and execute SQL using dbConnection1 -> result is unsuccessful
> prepare and execute SQL using dbConnection2 -> result is successful
> prepare and execute SQL using dbConnection1 -> result is unsuccessful
>
> Now see we are executing the same SQL using same parameter using two db
> connection. The dbConnection1 goes totally crazy for requests that hit the
> above code segment - one after the other.
>
> thanks,
> dimuthu
>
>
>
>
> On Wed, Jul 4, 2012 at 4:44 PM, Dimuthu Leelarathne wrote:
>
>> Hi Sumedha,
>>
>> This is not an application level concurrency issue because how would you
>> explain,
>>
>> 1) With mysql_workbench while I have paused the program with a debug
>> point.
>> 2) There is concurrency associated with this scenario
>> 3) The reverse works. When domain is given the ID is retrieved
>>
>> My next steps,
>> 1) Run using h2 server
>> 2) Retrieve domain given the ID using same db connection
>>
>> thanks,
>> dimuthu
>>
>>
>> On Wed, Jul 4, 2012 at 4:11 PM, Sumedha Rubasinghe wrote:
>>
>>> Dimuthu,
>>> I was under the impression this was solved. Thought Anjana had a look @
>>> it.
>>> This cannot be a caching issue @ the database level. Then it should
>>> impact everywhere. I still feel this is an application level concurrency
>>> issue.
>>>
>>> Let me discuss with Anjana & get back to you. Sorry for allowing you to
>>> live with this for long.
>>>
>>> On Wed, Jul 4, 2012 at 3:56 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 Hi all,

 This seems to be a blocker for us. Looks like a caching issue at mysql
 and/or pooling layer.  I tried without the following indexing and still get
 the same results. I don't think it is a mysql layer because the same SQL is
 running on mysql_workbench.

 CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
 ON UM_TENANT (UM_DOMAIN_NAME);

 thanks,
 dimuthu


 On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne >>> > wrote:

> Hi all,
>
> AppFactory setup done last hour shows the same error again.
>
> thanks,
> dimuthu
>
>
> On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>> Hi all,
>>
>> I believe what is happening is AppFactory is trying to read the
>> uncommitted data from the db. The attached screenshot explains the 
>> scenario
>> nicely. I kept adding test1,test2,test3  test8 and out of these only
>> even numbers are actually added - odd ones are failing.
>>
>> But after that I stopped the server did a "select *" before doing the
>> "select UM_ID from where *"  in user.core. Then replaced the jar and
>> restarted the server. As you can see test9, test10, test11 and test12 are
>> added without any issue at all. Meaning doing a "select *" somehow forced
>> "select UM_ID from where *" to work correctly. Looks like we are doing 
>> some
>> dirty reads.
>>
>> thanks,
>> dimuthu
>>
>>
>> On Thu, Jun 28, 2012 at 5:37 PM, Dimuthu Leelarathne <
>> dimut...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> This is fun. I am wondering whether I should a screen recording of
>>> this event.
>>>
>>> thanks,
>>> dimuthu
>>>
>>
>>
>

>>>
>>>
>>> --
>>> /sumedha
>>> +94 773017743
>>>
>>
>>
>


-- 
/sumedha
+94 773017743
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot log into product after creating Tennants

2012-07-04 Thread Shelan Perera
Hi,

 I tried to create a user apart from Admin (this time not in a specific
tenant org but as a normal user). But again cannot log into the system
(Access denied) using newly create user and fails with following exception.

[2012-07-04 21:42:37,401]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'test@carbon.super [-1234]' logged in at [2012-07-04 21:42:37,400+0530]
from IP address 192.168.1.2
[2012-07-04 21:42:37,402] ERROR {java.lang.Class} -  Access Denied. Failed
authorization attempt to access service 'LoggedUserInfoAdmin' operation
'getUserInfo' by 'test'
[2012-07-04 21:42:37,402] ERROR {org.apache.axis2.engine.AxisEngine} -
 Access Denied.
org.apache.axis2.AxisFault: Access Denied.
at
org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.doAuthorization(AuthorizationHandler.java:124)
 at
org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.invoke(AuthorizationHandler.java:88)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:205)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
 at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:45)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:140)
 at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:49)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
 at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1620)
 at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)


On Wed, Jul 4, 2012 at 8:59 PM, Shelan Perera  wrote:

> Hi,
>
> I tried to create a tenant and then few users to test a scenario using
> Greg packs obtained from [1].When i try to login as Tenant admin it fails
> with following exception [2].
> After that carbon theme comes up not the Greg.
>
> [1]
> http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-267/artifact/JOB1/GREG
>
> [2] http://pastie.org/4199393
>
> --
> *Shelan Perera*
>
> Software Engineer
> **
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Home Page*  :shelan.org
> *Blog* : blog.shelan.org
> *Linked-i*n  :http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>
>


-- 
*Shelan Perera*

Software Engineer
**
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Home Page*  :shelan.org
*Blog* : blog.shelan.org
*Linked-i*n  :http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter*

Re: [Dev] Infinispan caching with sync=false

2012-07-04 Thread Senaka Fernando
Hi Prabath,

The Infinispan Cache Manager that is available by default does not allow
you to configure many things. We have only made it possible to configure
the mandatory settings. Also, please note that the cache manager in Carbon
is pluggable and you also can extend/improve the existing cache manager to
support this kind of requirements.

Thanks,
Senaka.

On Wed, Jul 4, 2012 at 8:16 PM, Prabath Siriwardena wrote:

> When we set false - what parameters can we use to set
> threadPoolSize -  by default threadPoolSize is one...
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
>



-- 
*Senaka Fernando*
Member - Integration Technologies Management Committee;
Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Smoke test - Kernel Beta2 Packs

2012-07-04 Thread Senaka Fernando
Hi all,

I think that might be inconsistent. Packs from build 255 an P2 Repo from
build 143 might be incompatible isn't it?

Thanks,
Senaka.

On Wed, Jul 4, 2012 at 6:24 PM, Evanthika Amarasiri wrote:

> Hi,
>
> Reminder! We are using [1] at the moment.
>
> [1] -
> http://wso2.org/bamboo/artifact/WSO2CARBON-P2REPO/JOB1/build-143/P2-Repo/p2-repo
>
> Regards,
> Evanthika
>
>
>
> On Fri, Jun 29, 2012 at 12:36 PM, Charitha Kankanamge 
> wrote:
>
>> Hi Dimuthu,
>> I cannot find the P2-repo associated with these packs. Can you please
>> share the URL?
>>
>> Thanks!
>> Charitha
>>
>> On Mon, Jun 25, 2012 at 9:23 AM, Dimuthu Leelarathne 
>> wrote:
>>
>>> Hi RMs,
>>>
>>> Please do a smoke test on the following packs.
>>>
>>> http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-JOB1-255/artifact
>>>
>>> Smoke testing includes,
>>>
>>> 1) No startup errors
>>> 2) All samples working
>>> 3) Super tenant sign-in is working fine
>>> 4) Tenant sign-in is working
>>>
>>> thanks,
>>> dimuthu
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senaka Fernando*
Member - Integration Technologies Management Committee;
Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Smoke test - Kernel Beta2 Packs

2012-07-04 Thread Charitha Kankanamge
Yes, unfortunately build 255 does not have p2 repo. That's why we were
repeatedly requesting a compatible repository to continue testing.
At least for next beta, please make sure to host a p2 repo.

On Wednesday, July 4, 2012, Senaka Fernando wrote:

> Hi all,
>
> I think that might be inconsistent. Packs from build 255 an P2 Repo from
> build 143 might be incompatible isn't it?
>
> Thanks,
> Senaka.
>
> On Wed, Jul 4, 2012 at 6:24 PM, Evanthika Amarasiri 
> 
> > wrote:
>
>> Hi,
>>
>> Reminder! We are using [1] at the moment.
>>
>> [1] -
>> http://wso2.org/bamboo/artifact/WSO2CARBON-P2REPO/JOB1/build-143/P2-Repo/p2-repo
>>
>> Regards,
>> Evanthika
>>
>>
>>
>> On Fri, Jun 29, 2012 at 12:36 PM, Charitha Kankanamge 
>> 
>> > wrote:
>>
>>> Hi Dimuthu,
>>> I cannot find the P2-repo associated with these packs. Can you please
>>> share the URL?
>>>
>>> Thanks!
>>> Charitha
>>>
>>> On Mon, Jun 25, 2012 at 9:23 AM, Dimuthu Leelarathne 
>>> 
>>> > wrote:
>>>
 Hi RMs,

 Please do a smoke test on the following packs.

 http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-JOB1-255/artifact

 Smoke testing includes,

 1) No startup errors
 2) All samples working
 3) Super tenant sign-in is working fine
 4) Tenant sign-in is working

 thanks,
 dimuthu

 ___
 Dev mailing list
 Dev@wso2.org 
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org 
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org 
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Member - Integration Technologies Management Committee;
> Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>

-- 
Charitha Kankanamge
cell: +94 718 359 265
blog: http://charithaka.blogspot.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Trace logs not working

2012-07-04 Thread Tharindu Mathew
Hi,

Please note $subject. I updated through admin console as well as the log4j
properties and it doesn't work.

Can someone have a look?

-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +9459908
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot log into product after creating Tennants

2012-07-04 Thread Thilina Buddhika
The previous error you got with the tenant admin seems to related to the
activation handler. Please check the product name in the carbon.xml with
the entry in the cloud-desc.xml.

The next error you have seen is due to a permission issue. Please make sure
that the role the 'test' user is assigned (everyone by default) has login
permission.

Thanks,
Thilina

On Wed, Jul 4, 2012 at 9:51 PM, Shelan Perera  wrote:

> Hi,
>
>  I tried to create a user apart from Admin (this time not in a specific
> tenant org but as a normal user). But again cannot log into the system
> (Access denied) using newly create user and fails with following exception.
>
> [2012-07-04 21:42:37,401]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>  'test@carbon.super [-1234]' logged in at [2012-07-04 21:42:37,400+0530]
> from IP address 192.168.1.2
> [2012-07-04 21:42:37,402] ERROR {java.lang.Class} -  Access Denied. Failed
> authorization attempt to access service 'LoggedUserInfoAdmin' operation
> 'getUserInfo' by 'test'
> [2012-07-04 21:42:37,402] ERROR {org.apache.axis2.engine.AxisEngine} -
>  Access Denied.
> org.apache.axis2.AxisFault: Access Denied.
> at
> org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.doAuthorization(AuthorizationHandler.java:124)
>  at
> org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.invoke(AuthorizationHandler.java:88)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>  at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:205)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>  at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
>  at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>  at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:45)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>  at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:140)
>  at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>  at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:49)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
>  at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1620)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>  at java.lang.Thread.run(Thread.java:662)
>
>
> On Wed, Jul 4, 2012 at 8:59 PM, Shelan Perera  wrote:
>
>> Hi,
>>
>> I tried to create a tenant and then few users to test a scenario using
>> Greg packs obtained from [1].When i try to login as Tenant admin it fails
>> with following exception [2].
>> After that carbon theme comes up not the Greg.
>>
>> [1]
>> http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-267/artifact/JOB1/GREG
>>
>> [2] http://pastie.org/419939

Re: [Dev] Smoke test - Kernel Beta2 Packs

2012-07-04 Thread Dimuthu Leelarathne
Hi Charitha,

We will release Beta3 packs with a repo.

thanks,
dimuthu

On Wed, Jul 4, 2012 at 10:33 PM, Charitha Kankanamge wrote:

> Yes, unfortunately build 255 does not have p2 repo. That's why we were
> repeatedly requesting a compatible repository to continue testing.
> At least for next beta, please make sure to host a p2 repo.
>
>
> On Wednesday, July 4, 2012, Senaka Fernando wrote:
>
>> Hi all,
>>
>> I think that might be inconsistent. Packs from build 255 an P2 Repo from
>> build 143 might be incompatible isn't it?
>>
>> Thanks,
>> Senaka.
>>
>> On Wed, Jul 4, 2012 at 6:24 PM, Evanthika Amarasiri 
>> wrote:
>>
>>> Hi,
>>>
>>> Reminder! We are using [1] at the moment.
>>>
>>> [1] -
>>> http://wso2.org/bamboo/artifact/WSO2CARBON-P2REPO/JOB1/build-143/P2-Repo/p2-repo
>>>
>>> Regards,
>>> Evanthika
>>>
>>>
>>>
>>> On Fri, Jun 29, 2012 at 12:36 PM, Charitha Kankanamge >> > wrote:
>>>
 Hi Dimuthu,
 I cannot find the P2-repo associated with these packs. Can you please
 share the URL?

 Thanks!
 Charitha

 On Mon, Jun 25, 2012 at 9:23 AM, Dimuthu Leelarathne >>> > wrote:

> Hi RMs,
>
> Please do a smoke test on the following packs.
>
> http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-JOB1-255/artifact
>
> Smoke testing includes,
>
> 1) No startup errors
> 2) All samples working
> 3) Super tenant sign-in is working fine
> 4) Tenant sign-in is working
>
> thanks,
> dimuthu
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Member - Integration Technologies Management Committee;
>> Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>
> --
> Charitha Kankanamge
> cell: +94 718 359 265
> blog: http://charithaka.blogspot.com 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Carbon Snapshot > Platform > #413 has FAILED. Change made by 5 authors.

2012-07-04 Thread Bamboo

---
Carbon Snapshot > Platform > #413 failed.
---
Code has been updated by denis, sinthuja, kasung, suho, subash.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-413/


--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.



--
Code Changes
--
subash (131741):

>Fix for REGISTRY-975 symlink text box

kasung (131737):

>fix for WSAS-875 Cannot undo selected user groups in security scenarios of 
>services

sinthuja (131735):

>fixing error while clicking on excute script in hive ui



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Smoke test - Kernel Beta2 Packs

2012-07-04 Thread Dimuthu Leelarathne
Hi Charitha,

Triggered a build now. The p2-repo will be there by 8.00 am.

thanks,
dimuthu

On Thu, Jul 5, 2012 at 3:30 AM, Dimuthu Leelarathne wrote:

> Hi Charitha,
>
> We will release Beta3 packs with a repo.
>
> thanks,
> dimuthu
>
>
> On Wed, Jul 4, 2012 at 10:33 PM, Charitha Kankanamge wrote:
>
>> Yes, unfortunately build 255 does not have p2 repo. That's why we were
>> repeatedly requesting a compatible repository to continue testing.
>> At least for next beta, please make sure to host a p2 repo.
>>
>>
>> On Wednesday, July 4, 2012, Senaka Fernando wrote:
>>
>>> Hi all,
>>>
>>> I think that might be inconsistent. Packs from build 255 an P2 Repo from
>>> build 143 might be incompatible isn't it?
>>>
>>> Thanks,
>>> Senaka.
>>>
>>> On Wed, Jul 4, 2012 at 6:24 PM, Evanthika Amarasiri 
>>> wrote:
>>>
 Hi,

 Reminder! We are using [1] at the moment.

 [1] -
 http://wso2.org/bamboo/artifact/WSO2CARBON-P2REPO/JOB1/build-143/P2-Repo/p2-repo

 Regards,
 Evanthika



 On Fri, Jun 29, 2012 at 12:36 PM, Charitha Kankanamge <
 chari...@wso2.com> wrote:

> Hi Dimuthu,
> I cannot find the P2-repo associated with these packs. Can you please
> share the URL?
>
> Thanks!
> Charitha
>
> On Mon, Jun 25, 2012 at 9:23 AM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>> Hi RMs,
>>
>> Please do a smoke test on the following packs.
>>
>> http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-JOB1-255/artifact
>>
>> Smoke testing includes,
>>
>> 1) No startup errors
>> 2) All samples working
>> 3) Super tenant sign-in is working fine
>> 4) Tenant sign-in is working
>>
>> thanks,
>> dimuthu
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Member - Integration Technologies Management Committee;
>>> Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>
>> --
>> Charitha Kankanamge
>> cell: +94 718 359 265
>> blog: http://charithaka.blogspot.com 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Dimuthu Leelarathne
Hi Anjana,

Few minutes ago I recreated the scenario. Then I reverted um.core to use
dbcp pooling and now it works perfectly.

I know ndatasource is fantastic! But looks like there are some issues with
it.

This would be a blocker for our kernel release. Can we use a newer version
of ndatasource?

thanks,
dimuthu

On Wed, Jul 4, 2012 at 9:32 PM, Sumedha Rubasinghe  wrote:

> Dimuthu,
> Can you confirm if the same method is being used in following thread
> started by Shelan as well.
> '[Dev] Cannot log into product after creating Tennants'.
>
>
>
> On Wed, Jul 4, 2012 at 6:02 PM, Dimuthu Leelarathne wrote:
>
>> Hi all,
>>
>>
>> This is a connection pooling issue. The reason for saying that is as
>> follows.
>> Here is the SQL = String sql = "SELECT UM_ID FROM UM_TENANT WHERE
>> UM_DOMAIN_NAME=?"
>>
>> Consider the following control flow.
>>
>> Control Flow
>> ===
>>
>> Connection dbConnection1 = getDBConnection();
>> Connection dbConnection2 = getDBConnection();
>> prepare and execute SQL using dbConnection2 -> result is successful
>> prepare and execute SQL using dbConnection1 -> result is unsuccessful
>> prepare and execute SQL using dbConnection2 -> result is successful
>> prepare and execute SQL using dbConnection1 -> result is unsuccessful
>>
>> Now see we are executing the same SQL using same parameter using two db
>> connection. The dbConnection1 goes totally crazy for requests that hit the
>> above code segment - one after the other.
>>
>> thanks,
>> dimuthu
>>
>>
>>
>>
>> On Wed, Jul 4, 2012 at 4:44 PM, Dimuthu Leelarathne wrote:
>>
>>> Hi Sumedha,
>>>
>>> This is not an application level concurrency issue because how would you
>>> explain,
>>>
>>> 1) With mysql_workbench while I have paused the program with a debug
>>> point.
>>> 2) There is concurrency associated with this scenario
>>> 3) The reverse works. When domain is given the ID is retrieved
>>>
>>> My next steps,
>>> 1) Run using h2 server
>>> 2) Retrieve domain given the ID using same db connection
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Wed, Jul 4, 2012 at 4:11 PM, Sumedha Rubasinghe wrote:
>>>
 Dimuthu,
 I was under the impression this was solved. Thought Anjana had a look @
 it.
 This cannot be a caching issue @ the database level. Then it should
 impact everywhere. I still feel this is an application level concurrency
 issue.

 Let me discuss with Anjana & get back to you. Sorry for allowing you to
 live with this for long.

 On Wed, Jul 4, 2012 at 3:56 PM, Dimuthu Leelarathne 
 wrote:

> Hi all,
>
> This seems to be a blocker for us. Looks like a caching issue at mysql
> and/or pooling layer.  I tried without the following indexing and still 
> get
> the same results. I don't think it is a mysql layer because the same SQL 
> is
> running on mysql_workbench.
>
> CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
> ON UM_TENANT (UM_DOMAIN_NAME);
>
> thanks,
> dimuthu
>
>
> On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>> Hi all,
>>
>> AppFactory setup done last hour shows the same error again.
>>
>> thanks,
>> dimuthu
>>
>>
>> On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne <
>> dimut...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I believe what is happening is AppFactory is trying to read the
>>> uncommitted data from the db. The attached screenshot explains the 
>>> scenario
>>> nicely. I kept adding test1,test2,test3  test8 and out of these only
>>> even numbers are actually added - odd ones are failing.
>>>
>>> But after that I stopped the server did a "select *" before doing
>>> the "select UM_ID from where *"  in user.core. Then replaced the jar and
>>> restarted the server. As you can see test9, test10, test11 and test12 
>>> are
>>> added without any issue at all. Meaning doing a "select *" somehow 
>>> forced
>>> "select UM_ID from where *" to work correctly. Looks like we are doing 
>>> some
>>> dirty reads.
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Thu, Jun 28, 2012 at 5:37 PM, Dimuthu Leelarathne <
>>> dimut...@wso2.com> wrote:
>>>
 Hi all,

 This is fun. I am wondering whether I should a screen recording of
 this event.

 thanks,
 dimuthu

>>>
>>>
>>
>


 --
 /sumedha
 +94 773017743

>>>
>>>
>>
>
>
> --
> /sumedha
> +94 773017743
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Infinispan caching with sync=false

2012-07-04 Thread Dimuthu Leelarathne
Hi Prabath,

I see this is a problem. I will work on setting a new parameter.

https://wso2.org/jira/browse/CARBON-13584

Created an issue to keep track of this.

thanks,
dimuthu

On Wed, Jul 4, 2012 at 8:16 PM, Prabath Siriwardena wrote:

> When we set false - what parameters can we use to set
> threadPoolSize -  by default threadPoolSize is one...
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Dimuthu Leelarathne
Hi,

On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:

> Tenant deletion is a very rare usecase. So, we need not complicate things
> at this moment. Please note that deleted tenant IDs should not be reused.
> So, my suggestion is, don't fix this.
>
>
+1.

thanks,
dimuthu


>
> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:
>
>> Hi folks,
>>
>> To provide some background, currently in JDBCTenantManager we have two
>> maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
>> fetching a tenant's id via domain name or vise-versa. Whenever we try to
>> obtain the id via domain for example, it first checks if that particular
>> domain is present in the tenantDomainIdMap, and if only if its not
>> available it checks the DB.
>>
>> We however never clear these tow maps, so if there is a domain-id mapping
>> it exist as long as the server is running. Note that we have these maps per
>> Stratos service, meaning AS, ESB, DSS etc maintains its own map
>> locally. Previously this was no issue since we didn't have the facility to
>> delete a tenant, but when trying to create the tenant deletion patch, I
>> came across some issues since we never clear this map.
>>
>> For example say we have a tenant foo.com with TID - 10. If this tenant
>> logs into AS, the locals maps will contain the mapping tenant foo.com<=> TID 
>> - 10. Next we delete the tenant from Manager and also the delete
>> the entry in the locals maps of Manager, but still we have no way of
>> clearing the domain <=> ID mapping in AS (or any other service). So if we
>> create another tenant foo.com with TID-12 AS will still have the old
>> domain-id mapping, which obviously causes issue.
>>
>> So I am looking for a way to clear these two maps. One suggestion was to
>> delete the domain-id mapping when unloading the tenant. For this we need to
>> add static getter methods for the two maps, not sure if that's a good idea,
>> or have a scheduled thread to cleanup the map periodically, or else have an
>> overloaded method, getTenantId(String tenantDomain, boolean readDB) ... ?!
>>
>> Please suggest what would be the best way to clean up the local domain-id
>> mapping ...
>>
>> --
>> Thanks,
>> Shariq.
>> Phone: +94 777 202 225
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Carbon Snapshot > P2-Repo > #145 has FAILED. Change made by 66 authors.

2012-07-04 Thread Bamboo

---
Carbon Snapshot > P2-Repo > #145 failed.
---
This build was manually triggered by Dimuthu Leelarathne.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-P2REPO-145/


--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.



--
Code Changes
--
nuwan (131131):

>revert axis2 to wso2v4

chanaka (131126):

>Changing the site context from apiprovider to apipublisher

rathav (131275):

>fixing the build break



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Include API-Manager features to P2-repo

2012-07-04 Thread Evanthika Amarasiri
Hi All,

While trying to verify the *API* feature of WSO2 Governance Registry,
realized that we need API-Manager features to be installed. The only
available P2 repo was [1] but in that, the API-Manager features were not
available. I have reported a JIRA at [2] to track this. We hope that these
feature will be available in the next p2-repo since API feature testing of
G-Reg is blocked due to this .

[1] -
http://wso2.org/bamboo/artifact/WSO2CARBON-P2REPO/JOB1/build-143/P2-Repo/p2-repo
[2] - https://wso2.org/jira/browse/APISTORE-441

Regards,
*Evanthika Amarasiri*
Technical Lead - *Quality Assurance*
Member, Management Committee - *Platform Technologies*
E-mail: *evanthika AT **wso2.com*

Mobile: *+94773125935*
Linked-In: *http://lk.linkedin.com/in/evanthika*
Blog: *http://evanthika.blogspot.com/*

wso2.com *Lean Enterprise Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Afkham Azeez
One thing needs to be confirmed. In the rare case of a new tenant being
created with the ID of a deleted tenant, is there any security risk? I
mean, when we delete the old tenant, do we remove all deployment artifacts,
registry entries and so on? If not, there could be a security issue, where
the new tenant can see & download all the artifacts of the old tenant.

On Wed, Jul 4, 2012 at 7:39 PM, Muhammed Shariq  wrote:

> Hi,
>
> On Wed, Jul 4, 2012 at 6:49 PM, Afkham Azeez  wrote:
>
>> As for the case of the map filling up, the key & value are very simple
>> string/int. Even millions of entries will result in very low memory
>> consumption. Millions of entries in this map translates to millions of
>> active tenants. There can be only one entry per tenant. So, once again, my
>> suggestion is this map cleaning up is not needed. The cost of doing this is
>> very high & the benefit is very very small.
>>
>>
>> On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:
>>
>>> Tenant deletion is a very rare usecase. So, we need not complicate
>>> things at this moment. Please note that deleted tenant IDs should not be
>>> reused. So, my suggestion is, don't fix this.
>>
>>
> We are not reusing the tenant id, actually if we try to create a tenant
> with a deleted tenant domain then the new tenant id will be different, but
> since we cannot update the individual maps in the separate services, we
> still get the old tenant id for the newly created tenant. Of course, these
> issue arises only if we delete a tenant and create a tenant with the same
> domain, which is a rare usecase, so may be we can live with it.
>
> Also as Sanjeewa mentioned, this map is heavily used by many components so
> deleting records might cause a performance hit as well. Anyway I wanted to
> bring this up before we freeze the kernel to discuss any possible solution
> ...
>
>>
>>>
>>> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:
>>>
 Hi folks,

 To provide some background, currently in JDBCTenantManager we have two
 maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
 fetching a tenant's id via domain name or vise-versa. Whenever we try to
 obtain the id via domain for example, it first checks if that particular
 domain is present in the tenantDomainIdMap, and if only if its not
 available it checks the DB.

 We however never clear these tow maps, so if there is a domain-id
 mapping it exist as long as the server is running. Note that we have these
 maps per Stratos service, meaning AS, ESB, DSS etc maintains its own map
 locally. Previously this was no issue since we didn't have the facility to
 delete a tenant, but when trying to create the tenant deletion patch, I
 came across some issues since we never clear this map.

 For example say we have a tenant foo.com with TID - 10. If this tenant
 logs into AS, the locals maps will contain the mapping tenant foo.com<=> 
 TID - 10. Next we delete the tenant from Manager and also the delete
 the entry in the locals maps of Manager, but still we have no way of
 clearing the domain <=> ID mapping in AS (or any other service). So if we
 create another tenant foo.com with TID-12 AS will still have the old
 domain-id mapping, which obviously causes issue.

 So I am looking for a way to clear these two maps. One suggestion was
 to delete the domain-id mapping when unloading the tenant. For this we need
 to add static getter methods for the two maps, not sure if that's a good
 idea, or have a scheduled thread to cleanup the map periodically, or else
 have an overloaded method, getTenantId(String tenantDomain, boolean readDB)
 ... ?!

 Please suggest what would be the best way to clean up the local
 domain-id mapping ...

 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * **
>>> email: **az...@wso2.com* * cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* *
>>> twitter: **http://twitter.com/afkham_azeez*
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> Thanks,
> Shariq.
> Phone: +94 777 202 225
>
>


-- 
*Afkham Azeez*
Direc

Re: [Dev] Trace logs not working

2012-07-04 Thread Afkham Azeez
The log level for the logge, and the thresholds of the relevant appenders
need to be set to TRACE for this to work.

On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew  wrote:

> Hi,
>
> Please note $subject. I updated through admin console as well as the log4j
> properties and it doesn't work.
>
> Can someone have a look?
>
> --
> Regards,
>
> Tharindu
>
> blog: http://mackiemathew.com/
> M: +9459908
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Carbon Snapshot > Platform > #414 was SUCCESSFUL (with 2002 tests). Change made by tharindu and suho.

2012-07-04 Thread Bamboo

---
Carbon Snapshot > Platform > #414 was successful.
---
Code has been updated by tharindu, suho.
2002 tests in total.

http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-414/


--
Code Changes
--
suho (131744):

>change away from default port

suho (131743):

>fixing parent pom name

tharindu (131746):

>making trace logs debug since trace is not being fixed by Pradeep



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Queries via UM datasource fails for one after the other

2012-07-04 Thread Anjana Fernando
Hi Dimuthu,

On Thu, Jul 5, 2012 at 4:56 AM, Dimuthu Leelarathne wrote:

> Hi Anjana,
>
> Few minutes ago I recreated the scenario. Then I reverted um.core to use
> dbcp pooling and now it works perfectly.
>
> I know ndatasource is fantastic! But looks like there are some issues with
> it.
>
> This would be a blocker for our kernel release. Can we use a newer version
> of ndatasource?
>
>
I see, there may also be a difference in configuration on how DBCP and
JDBC-Pool works. For example, in the registry/um.core data source, I've
added a validationQueryTimeout so it will not execute the validation query
all the time. We will check it out today. Newer version of ndatasource
means, it's basically using Tomcat JDBC-Pool, and I was checking the
changelog in JDBC-Pool for the latest release, and it does not mention any
issues fixed related to our problem. Also, did you get a chance to check
the scenarios I mentioned in my earlier mail? .. As a side note, we may
want to upgrade Tomcat to the latest v7.0.28 which was released Jun 25'th,
which seems to have several bug fixes.

Cheers,
Anjana.


> thanks,
> dimuthu
>
>
> On Wed, Jul 4, 2012 at 9:32 PM, Sumedha Rubasinghe wrote:
>
>> Dimuthu,
>> Can you confirm if the same method is being used in following thread
>> started by Shelan as well.
>> '[Dev] Cannot log into product after creating Tennants'.
>>
>>
>>
>> On Wed, Jul 4, 2012 at 6:02 PM, Dimuthu Leelarathne wrote:
>>
>>> Hi all,
>>>
>>>
>>> This is a connection pooling issue. The reason for saying that is as
>>> follows.
>>> Here is the SQL = String sql = "SELECT UM_ID FROM UM_TENANT WHERE
>>> UM_DOMAIN_NAME=?"
>>>
>>> Consider the following control flow.
>>>
>>> Control Flow
>>> ===
>>>
>>> Connection dbConnection1 = getDBConnection();
>>> Connection dbConnection2 = getDBConnection();
>>> prepare and execute SQL using dbConnection2 -> result is successful
>>> prepare and execute SQL using dbConnection1 -> result is unsuccessful
>>> prepare and execute SQL using dbConnection2 -> result is successful
>>> prepare and execute SQL using dbConnection1 -> result is unsuccessful
>>>
>>> Now see we are executing the same SQL using same parameter using two db
>>> connection. The dbConnection1 goes totally crazy for requests that hit the
>>> above code segment - one after the other.
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>>
>>>
>>> On Wed, Jul 4, 2012 at 4:44 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 Hi Sumedha,

 This is not an application level concurrency issue because how would
 you explain,

 1) With mysql_workbench while I have paused the program with a debug
 point.
 2) There is concurrency associated with this scenario
 3) The reverse works. When domain is given the ID is retrieved

 My next steps,
 1) Run using h2 server
 2) Retrieve domain given the ID using same db connection

 thanks,
 dimuthu


 On Wed, Jul 4, 2012 at 4:11 PM, Sumedha Rubasinghe wrote:

> Dimuthu,
> I was under the impression this was solved. Thought Anjana had a look
> @ it.
> This cannot be a caching issue @ the database level. Then it should
> impact everywhere. I still feel this is an application level concurrency
> issue.
>
> Let me discuss with Anjana & get back to you. Sorry for allowing you
> to live with this for long.
>
> On Wed, Jul 4, 2012 at 3:56 PM, Dimuthu Leelarathne  > wrote:
>
>> Hi all,
>>
>> This seems to be a blocker for us. Looks like a caching issue at
>> mysql and/or pooling layer.  I tried without the following indexing and
>> still get the same results. I don't think it is a mysql layer because the
>> same SQL is running on mysql_workbench.
>>
>> CREATE UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME
>> ON UM_TENANT (UM_DOMAIN_NAME);
>>
>> thanks,
>> dimuthu
>>
>>
>> On Mon, Jul 2, 2012 at 12:51 PM, Dimuthu Leelarathne <
>> dimut...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> AppFactory setup done last hour shows the same error again.
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Thu, Jun 28, 2012 at 7:44 PM, Dimuthu Leelarathne <
>>> dimut...@wso2.com> wrote:
>>>
 Hi all,

 I believe what is happening is AppFactory is trying to read the
 uncommitted data from the db. The attached screenshot explains the 
 scenario
 nicely. I kept adding test1,test2,test3  test8 and out of these 
 only
 even numbers are actually added - odd ones are failing.

 But after that I stopped the server did a "select *" before doing
 the "select UM_ID from where *"  in user.core. Then replaced the jar 
 and
 restarted the server. As you can see test9, test10, test11 and test12 
 are
 added without any issue at all. Meaning doing a "select *" somehow 
 force

Re: [Dev] Trace logs not working

2012-07-04 Thread Amani Soysa
I tested this using ESB trunk build (22nd packs) and it works fine. I will
take the latest update and let you know.

On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:

> The log level for the logge, and the thresholds of the relevant appenders
> need to be set to TRACE for this to work.
>
> On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew wrote:
>
>> Hi,
>>
>> Please note $subject. I updated through admin console as well as the
>> log4j properties and it doesn't work.
>>
>> Can someone have a look?
>>
>> --
>> Regards,
>>
>> Tharindu
>>
>> blog: http://mackiemathew.com/
>> M: +9459908
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Dimuthu Leelarathne
Hi Azeez,

On Thu, Jul 5, 2012 at 8:23 AM, Afkham Azeez  wrote:

> One thing needs to be confirmed. In the rare case of a new tenant being
> created with the ID of a deleted tenant, is there any security risk? I
> mean, when we delete the old tenant, do we remove all deployment artifacts,
> registry entries and so on? If not, there could be a security issue, where
> the new tenant can see & download all the artifacts of the old tenant.
>
>
We never reuse the tenantId.

And this was implemented to enable automated UI testing only in the branch.
IMO, I prefer to keep it like that until we fix the other high priority
items.

thanks,
dimuthu


>
> On Wed, Jul 4, 2012 at 7:39 PM, Muhammed Shariq  wrote:
>
>> Hi,
>>
>> On Wed, Jul 4, 2012 at 6:49 PM, Afkham Azeez  wrote:
>>
>>> As for the case of the map filling up, the key & value are very simple
>>> string/int. Even millions of entries will result in very low memory
>>> consumption. Millions of entries in this map translates to millions of
>>> active tenants. There can be only one entry per tenant. So, once again, my
>>> suggestion is this map cleaning up is not needed. The cost of doing this is
>>> very high & the benefit is very very small.
>>>
>>>
>>> On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:
>>>
 Tenant deletion is a very rare usecase. So, we need not complicate
 things at this moment. Please note that deleted tenant IDs should not be
 reused. So, my suggestion is, don't fix this.
>>>
>>>
>> We are not reusing the tenant id, actually if we try to create a tenant
>> with a deleted tenant domain then the new tenant id will be different, but
>> since we cannot update the individual maps in the separate services, we
>> still get the old tenant id for the newly created tenant. Of course, these
>> issue arises only if we delete a tenant and create a tenant with the same
>> domain, which is a rare usecase, so may be we can live with it.
>>
>> Also as Sanjeewa mentioned, this map is heavily used by many components
>> so deleting records might cause a performance hit as well. Anyway I wanted
>> to bring this up before we freeze the kernel to discuss any possible
>> solution ...
>>
>>>

 On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq wrote:

> Hi folks,
>
> To provide some background, currently in JDBCTenantManager we have two
> maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
> fetching a tenant's id via domain name or vise-versa. Whenever we try to
> obtain the id via domain for example, it first checks if that particular
> domain is present in the tenantDomainIdMap, and if only if its not
> available it checks the DB.
>
> We however never clear these tow maps, so if there is a domain-id
> mapping it exist as long as the server is running. Note that we have these
> maps per Stratos service, meaning AS, ESB, DSS etc maintains its own map
> locally. Previously this was no issue since we didn't have the facility to
> delete a tenant, but when trying to create the tenant deletion patch, I
> came across some issues since we never clear this map.
>
> For example say we have a tenant foo.com with TID - 10. If this
> tenant logs into AS, the locals maps will contain the mapping tenant
> foo.com <=> TID - 10. Next we delete the tenant from Manager and also
> the delete the entry in the locals maps of Manager, but still we have no
> way of clearing the domain <=> ID mapping in AS (or any other service). So
> if we create another tenant foo.com with TID-12 AS will still have
> the old domain-id mapping, which obviously causes issue.
>
> So I am looking for a way to clear these two maps. One suggestion was
> to delete the domain-id mapping when unloading the tenant. For this we 
> need
> to add static getter methods for the two maps, not sure if that's a good
> idea, or have a scheduled thread to cleanup the map periodically, or else
> have an overloaded method, getTenantId(String tenantDomain, boolean 
> readDB)
> ... ?!
>
> Please suggest what would be the best way to clean up the local
> domain-id mapping ...
>
> --
> Thanks,
> Shariq.
> Phone: +94 777 202 225
>
>


 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * **
 email: **az...@wso2.com* * cell: +94 77 3320919
 blog: **http://blog.afkham.org* *
 twitter: 
 **http://twitter.com/afkham_azeez*
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * 

Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Afkham Azeez
On Thu, Jul 5, 2012 at 9:42 AM, Dimuthu Leelarathne wrote:

> Hi Azeez,
>
> On Thu, Jul 5, 2012 at 8:23 AM, Afkham Azeez  wrote:
>
>> One thing needs to be confirmed. In the rare case of a new tenant being
>> created with the ID of a deleted tenant, is there any security risk? I
>> mean, when we delete the old tenant, do we remove all deployment artifacts,
>> registry entries and so on? If not, there could be a security issue, where
>> the new tenant can see & download all the artifacts of the old tenant.
>>
>>
> We never reuse the tenantId.
>
> And this was implemented to enable automated UI testing only in the
> branch. IMO, I prefer to keep it like that until we fix the other high
> priority items.
>

No, the tenant domain can get reused, and the maps will contain the old
tenant domain to old tenant ID mapping. So, things could fail when you try
to lookup the tenant ID by passing the tenant domain, if the tenant domain
was deleted, and then created with the same name.


>
> thanks,
> dimuthu
>
>
>>
>> On Wed, Jul 4, 2012 at 7:39 PM, Muhammed Shariq  wrote:
>>
>>> Hi,
>>>
>>> On Wed, Jul 4, 2012 at 6:49 PM, Afkham Azeez  wrote:
>>>
 As for the case of the map filling up, the key & value are very simple
 string/int. Even millions of entries will result in very low memory
 consumption. Millions of entries in this map translates to millions of
 active tenants. There can be only one entry per tenant. So, once again, my
 suggestion is this map cleaning up is not needed. The cost of doing this is
 very high & the benefit is very very small.


 On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:

> Tenant deletion is a very rare usecase. So, we need not complicate
> things at this moment. Please note that deleted tenant IDs should not be
> reused. So, my suggestion is, don't fix this.


>>> We are not reusing the tenant id, actually if we try to create a tenant
>>> with a deleted tenant domain then the new tenant id will be different, but
>>> since we cannot update the individual maps in the separate services, we
>>> still get the old tenant id for the newly created tenant. Of course, these
>>> issue arises only if we delete a tenant and create a tenant with the same
>>> domain, which is a rare usecase, so may be we can live with it.
>>>
>>> Also as Sanjeewa mentioned, this map is heavily used by many components
>>> so deleting records might cause a performance hit as well. Anyway I wanted
>>> to bring this up before we freeze the kernel to discuss any possible
>>> solution ...
>>>

>
> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq wrote:
>
>> Hi folks,
>>
>> To provide some background, currently in JDBCTenantManager we have
>> two maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache
>> when fetching a tenant's id via domain name or vise-versa. Whenever we 
>> try
>> to obtain the id via domain for example, it first checks if that 
>> particular
>> domain is present in the tenantDomainIdMap, and if only if its not
>> available it checks the DB.
>>
>> We however never clear these tow maps, so if there is a domain-id
>> mapping it exist as long as the server is running. Note that we have 
>> these
>> maps per Stratos service, meaning AS, ESB, DSS etc maintains its own map
>> locally. Previously this was no issue since we didn't have the facility 
>> to
>> delete a tenant, but when trying to create the tenant deletion patch, I
>> came across some issues since we never clear this map.
>>
>> For example say we have a tenant foo.com with TID - 10. If this
>> tenant logs into AS, the locals maps will contain the mapping tenant
>> foo.com <=> TID - 10. Next we delete the tenant from Manager and
>> also the delete the entry in the locals maps of Manager, but still we 
>> have
>> no way of clearing the domain <=> ID mapping in AS (or any other 
>> service).
>> So if we create another tenant foo.com with TID-12 AS will still
>> have the old domain-id mapping, which obviously causes issue.
>>
>> So I am looking for a way to clear these two maps. One suggestion was
>> to delete the domain-id mapping when unloading the tenant. For this we 
>> need
>> to add static getter methods for the two maps, not sure if that's a good
>> idea, or have a scheduled thread to cleanup the map periodically, or else
>> have an overloaded method, getTenantId(String tenantDomain, boolean 
>> readDB)
>> ... ?!
>>
>> Please suggest what would be the best way to clean up the local
>> domain-id mapping ...
>>
>> --
>> Thanks,
>> Shariq.
>> Phone: +94 777 202 225
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **

Re: [Dev] CPU time measurement per tenant in Slive.

2012-07-04 Thread Lasindu Vidana Pathiranage
As shankar suggested ESB & BPS are the ones which caused problems with
their internal thread pools.
I tested both CPU time and Thread live time per request per tenant for
Application Server and Data Services Server inside the
CarbonStuckThreadDetectionValve. I created few web services, web apps
and data services to test them out. Worked well in measuring both CPU
& Live time for a request.

I was able to measure the CPU time of a BPEL process which consist of
a busy loop inside the process with the help of waruna. I captured the
CPU time inside ode/Scheduler-simple , call() method inside
SimpleScheduler class.

With the help of KasunI and IsuruU I was able to measure the CPU time
for ESB as well. I created a class mediator which consist of a busy
loop and was able to capture the CPU time for both in/out sequences.
ServerWorker handles the requests and ClientWorker handles the
responses. I was able to capture CPU time as well as Live time per
transaction for ESB as well. Both classes contain run() methods and
its where I was able to capture the CPU time. Since ESB uses
non-blocking threads, and nhttp, it seems only way to capture the CPU
time per thread is inside the run() methods.

Since I was able to measure the CPU time for AS, DSS, BPS, ESB for
almost all the cases, I tested out some Load tests for ESB. I sent
100,000 echo requests to AS via a proxy from ESB. The test statistics
revealed, it may take a considerable amount of time to capture the CPU
time for each request (overhead). Since ESB mostly concern on the
performance, it might cause some latency issues if I'm to include the
code inside it. I didn't find any alternative way to capture the CPU
time per tenant/thread inside ESB either.

Also if I'm to proceed with this I wanted to know how I can use this
statistics to publish to BAM2.
One alternative to use the same approach as it is used in bandwidth
measuring. It has used a TransportStatistics queue in tomcat to add
the statistics and usage agent in SLive retrieves them and publishes
to BAM. Even though I can add data captured inside the tomcat valve to
a queue in tomcat.ext/transport/statistics (CpuStatisticsContainer or
whatever) I'm not sure whether I can add data from ode (BPS) or
synapse (ESB) to the same queue in tomcat.


Thanks,
Lasindu
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Supun Malinga
On Jul 5, 2012 5:06 AM, "Dimuthu Leelarathne"  wrote:
>
> Hi,
>
> On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:
>>
>> Tenant deletion is a very rare usecase. So, we need not complicate
things at this moment. Please note that deleted tenant IDs should not be
reused. So, my suggestion is, don't fix this.
>>
>
> +1.
+1
IMO we need not reuse tenant domain as well.

Thanks

>
> thanks,
> dimuthu
>
>>
>>
>> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq  wrote:
>>>
>>> Hi folks,
>>>
>>> To provide some background, currently in JDBCTenantManager we have two
maps namely tenantIdDomainMap and tenantDomainIdMap to act as a cache when
fetching a tenant's id via domain name or vise-versa. Whenever we try to
obtain the id via domain for example, it first checks if that particular
domain is present in the tenantDomainIdMap, and if only if its not
available it checks the DB.
>>>
>>> We however never clear these tow maps, so if there is a domain-id
mapping it exist as long as the server is running. Note that we have these
maps per Stratos service, meaning AS, ESB, DSS etc maintains its own map
locally. Previously this was no issue since we didn't have the facility to
delete a tenant, but when trying to create the tenant deletion patch, I
came across some issues since we never clear this map.
>>>
>>> For example say we have a tenant foo.com with TID - 10. If this tenant
logs into AS, the locals maps will contain the mapping tenant foo.com <=>
TID - 10. Next we delete the tenant from Manager and also the delete the
entry in the locals maps of Manager, but still we have no way of clearing
the domain <=> ID mapping in AS (or any other service). So if we create
another tenant foo.com with TID-12 AS will still have the old domain-id
mapping, which obviously causes issue.
>>>
>>> So I am looking for a way to clear these two maps. One suggestion was
to delete the domain-id mapping when unloading the tenant. For this we need
to add static getter methods for the two maps, not sure if that's a good
idea, or have a scheduled thread to cleanup the map periodically, or else
have an overloaded method, getTenantId(String tenantDomain, boolean readDB)
... ?!
>>>
>>> Please suggest what would be the best way to clean up the local
domain-id mapping ...
>>>
>>> --
>>> Thanks,
>>> Shariq.
>>> Phone: +94 777 202 225
>>>
>>
>>
>>
>> --
>> Afkham Azeez
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>>
>> email: az...@wso2.com cell: +94 77 3320919
>> blog: http://blog.afkham.org
>> twitter: http://twitter.com/afkham_azeez
>> linked-in: http://lk.linkedin.com/in/afkhamazeez
>>
>> Lean . Enterprise . Middleware
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Dimuthu Leelarathne
Hi Azeez,

On Thu, Jul 5, 2012 at 9:55 AM, Afkham Azeez  wrote:

>
>
> On Thu, Jul 5, 2012 at 9:42 AM, Dimuthu Leelarathne wrote:
>
>> Hi Azeez,
>>
>> On Thu, Jul 5, 2012 at 8:23 AM, Afkham Azeez  wrote:
>>
>>> One thing needs to be confirmed. In the rare case of a new tenant being
>>> created with the ID of a deleted tenant, is there any security risk? I
>>> mean, when we delete the old tenant, do we remove all deployment artifacts,
>>> registry entries and so on? If not, there could be a security issue, where
>>> the new tenant can see & download all the artifacts of the old tenant.
>>>
>>>
>> We never reuse the tenantId.
>>
>> And this was implemented to enable automated UI testing only in the
>> branch. IMO, I prefer to keep it like that until we fix the other high
>> priority items.
>>
>
> No, the tenant domain can get reused, and the maps will contain the old
> tenant domain to old tenant ID mapping. So, things could fail when you try
> to lookup the tenant ID by passing the tenant domain, if the tenant domain
> was deleted, and then created with the same name.
>


Please read carefully. I said tenantId is never resused :). I didn't say
domain is never reused.

thanks,
dimuthu



>
>
>>
>> thanks,
>> dimuthu
>>
>>
>>>
>>> On Wed, Jul 4, 2012 at 7:39 PM, Muhammed Shariq  wrote:
>>>
 Hi,

 On Wed, Jul 4, 2012 at 6:49 PM, Afkham Azeez  wrote:

> As for the case of the map filling up, the key & value are very simple
> string/int. Even millions of entries will result in very low memory
> consumption. Millions of entries in this map translates to millions of
> active tenants. There can be only one entry per tenant. So, once again, my
> suggestion is this map cleaning up is not needed. The cost of doing this 
> is
> very high & the benefit is very very small.
>
>
> On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:
>
>> Tenant deletion is a very rare usecase. So, we need not complicate
>> things at this moment. Please note that deleted tenant IDs should not be
>> reused. So, my suggestion is, don't fix this.
>
>
 We are not reusing the tenant id, actually if we try to create a tenant
 with a deleted tenant domain then the new tenant id will be different, but
 since we cannot update the individual maps in the separate services, we
 still get the old tenant id for the newly created tenant. Of course, these
 issue arises only if we delete a tenant and create a tenant with the same
 domain, which is a rare usecase, so may be we can live with it.

 Also as Sanjeewa mentioned, this map is heavily used by many components
 so deleting records might cause a performance hit as well. Anyway I wanted
 to bring this up before we freeze the kernel to discuss any possible
 solution ...

>
>>
>> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq wrote:
>>
>>> Hi folks,
>>>
>>> To provide some background, currently in JDBCTenantManager we have
>>> two maps namely tenantIdDomainMap and tenantDomainIdMap to act as a 
>>> cache
>>> when fetching a tenant's id via domain name or vise-versa. Whenever we 
>>> try
>>> to obtain the id via domain for example, it first checks if that 
>>> particular
>>> domain is present in the tenantDomainIdMap, and if only if its not
>>> available it checks the DB.
>>>
>>> We however never clear these tow maps, so if there is a domain-id
>>> mapping it exist as long as the server is running. Note that we have 
>>> these
>>> maps per Stratos service, meaning AS, ESB, DSS etc maintains its own map
>>> locally. Previously this was no issue since we didn't have the facility 
>>> to
>>> delete a tenant, but when trying to create the tenant deletion patch, I
>>> came across some issues since we never clear this map.
>>>
>>> For example say we have a tenant foo.com with TID - 10. If this
>>> tenant logs into AS, the locals maps will contain the mapping tenant
>>> foo.com <=> TID - 10. Next we delete the tenant from Manager and
>>> also the delete the entry in the locals maps of Manager, but still we 
>>> have
>>> no way of clearing the domain <=> ID mapping in AS (or any other 
>>> service).
>>> So if we create another tenant foo.com with TID-12 AS will still
>>> have the old domain-id mapping, which obviously causes issue.
>>>
>>> So I am looking for a way to clear these two maps. One suggestion
>>> was to delete the domain-id mapping when unloading the tenant. For this 
>>> we
>>> need to add static getter methods for the two maps, not sure if that's a
>>> good idea, or have a scheduled thread to cleanup the map periodically, 
>>> or
>>> else have an overloaded method, getTenantId(String tenantDomain, boolean
>>> readDB) ... ?!
>>>
>>> Please suggest what would be the best way to clean up the local
>>

Re: [Dev] CPU time measurement per tenant in Slive.

2012-07-04 Thread Amila Maha Arachchi
Hi Lasindu,

On Thu, Jul 5, 2012 at 9:56 AM, Lasindu Vidana Pathiranage  wrote:

> As shankar suggested ESB & BPS are the ones which caused problems with
> their internal thread pools.
> I tested both CPU time and Thread live time per request per tenant for
> Application Server and Data Services Server inside the
> CarbonStuckThreadDetectionValve. I created few web services, web apps
> and data services to test them out. Worked well in measuring both CPU
> & Live time for a request.
>
> I was able to measure the CPU time of a BPEL process which consist of
> a busy loop inside the process with the help of waruna. I captured the
> CPU time inside ode/Scheduler-simple , call() method inside
> SimpleScheduler class.
>
> With the help of KasunI and IsuruU I was able to measure the CPU time
> for ESB as well. I created a class mediator which consist of a busy
> loop and was able to capture the CPU time for both in/out sequences.
> ServerWorker handles the requests and ClientWorker handles the
> responses. I was able to capture CPU time as well as Live time per
> transaction for ESB as well. Both classes contain run() methods and
> its where I was able to capture the CPU time. Since ESB uses
> non-blocking threads, and nhttp, it seems only way to capture the CPU
> time per thread is inside the run() methods.
>
> Since I was able to measure the CPU time for AS, DSS, BPS, ESB for
> almost all the cases, I tested out some Load tests for ESB. I sent
> 100,000 echo requests to AS via a proxy from ESB. The test statistics
> revealed, it may take a considerable amount of time to capture the CPU
> time for each request (overhead). Since ESB mostly concern on the
> performance, it might cause some latency issues if I'm to include the
> code inside it. I didn't find any alternative way to capture the CPU
> time per tenant/thread inside ESB either.
>

Please try your test without the sys outs. AFAIR there were two sys outs
per one request. Please remove them and test.

>
> Also if I'm to proceed with this I wanted to know how I can use this
> statistics to publish to BAM2.
> One alternative to use the same approach as it is used in bandwidth
> measuring. It has used a TransportStatistics queue in tomcat to add
> the statistics and usage agent in SLive retrieves them and publishes
> to BAM. Even though I can add data captured inside the tomcat valve to
> a queue in tomcat.ext/transport/statistics (CpuStatisticsContainer or
> whatever) I'm not sure whether I can add data from ode (BPS) or
> synapse (ESB) to the same queue in tomcat.
>

I think you should be able to store them in the same way. But then we have
a problem. We cannot add these code/patches to synapse or ode. Can we?

Regards,
AmilaM.

>
>
> Thanks,
> Lasindu
>



-- 
*Amila Maharachchi*
Technical Lead
Member, Management Committee - Cloud & Platform TG
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Have we tested JMX monitoring in trunk

2012-07-04 Thread Amila Maha Arachchi
Hi all,

$subject? I tried to follow some articles on how to remotely monitor WSO2
products via JMX (with 3.2.3 packs) and it seems the instructions mentioned
in those articles are not working. One such article is [1]. But there is a
workaround which can be found at [2].

Charitha et al, please pay attention to this during your testing cycles. If
this is broken, we'll have to fix this before we release the kernel.

[1]
http://wso2.org/library/knowledge-base/2011/04/monitoring-wso2-esb-using-jconsole
[2]
http://maharachchi.blogspot.com/2011/02/monitoring-your-java-application-with.html

Regards,
AmilaM.
-- 
*Amila Maharachchi*
Technical Lead
Member, Management Committee - Cloud & Platform TG
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove tenant id/domain from tenantIdDomainMap / tenantDomainIdMap in JDBCTenantManager.

2012-07-04 Thread Muhammed Shariq
On Thu, Jul 5, 2012 at 9:55 AM, Afkham Azeez  wrote:

>
>
> On Thu, Jul 5, 2012 at 9:42 AM, Dimuthu Leelarathne wrote:
>
>> Hi Azeez,
>>
>> On Thu, Jul 5, 2012 at 8:23 AM, Afkham Azeez  wrote:
>>
>>> One thing needs to be confirmed. In the rare case of a new tenant being
>>> created with the ID of a deleted tenant, is there any security risk? I
>>> mean, when we delete the old tenant, do we remove all deployment artifacts,
>>> registry entries and so on? If not, there could be a security issue, where
>>> the new tenant can see & download all the artifacts of the old tenant.
>>>
>>>
>> We never reuse the tenantId.
>>
>> And this was implemented to enable automated UI testing only in the
>> branch. IMO, I prefer to keep it like that until we fix the other high
>> priority items.
>>
>
> No, the tenant domain can get reused, and the maps will contain the old
> tenant domain to old tenant ID mapping. So, things could fail when you try
> to lookup the tenant ID by passing the tenant domain, if the tenant domain
> was deleted, and then created with the same name.
>

If we lookup the tenant id by domain things will fail if the map is not
cleared, because it will try to fetch resources by the old tenant id from
DB (WHERE UM_TENANT_ID=${OLD_ID}), but we delete all records associated
with that TID. IIRC this was the failing case. Also there are some other
cases that needs to be addressed when deleting a tenant like deleting the
config registry resources entries (manager_config, esb_config etc ...)

>
>
>>
>> thanks,
>> dimuthu
>>
>>
>>>
>>> On Wed, Jul 4, 2012 at 7:39 PM, Muhammed Shariq  wrote:
>>>
 Hi,

 On Wed, Jul 4, 2012 at 6:49 PM, Afkham Azeez  wrote:

> As for the case of the map filling up, the key & value are very simple
> string/int. Even millions of entries will result in very low memory
> consumption. Millions of entries in this map translates to millions of
> active tenants. There can be only one entry per tenant. So, once again, my
> suggestion is this map cleaning up is not needed. The cost of doing this 
> is
> very high & the benefit is very very small.
>
>
> On Wed, Jul 4, 2012 at 6:35 PM, Afkham Azeez  wrote:
>
>> Tenant deletion is a very rare usecase. So, we need not complicate
>> things at this moment. Please note that deleted tenant IDs should not be
>> reused. So, my suggestion is, don't fix this.
>
>
 We are not reusing the tenant id, actually if we try to create a tenant
 with a deleted tenant domain then the new tenant id will be different, but
 since we cannot update the individual maps in the separate services, we
 still get the old tenant id for the newly created tenant. Of course, these
 issue arises only if we delete a tenant and create a tenant with the same
 domain, which is a rare usecase, so may be we can live with it.

 Also as Sanjeewa mentioned, this map is heavily used by many components
 so deleting records might cause a performance hit as well. Anyway I wanted
 to bring this up before we freeze the kernel to discuss any possible
 solution ...

>
>>
>> On Wed, Jul 4, 2012 at 6:23 PM, Muhammed Shariq wrote:
>>
>>> Hi folks,
>>>
>>> To provide some background, currently in JDBCTenantManager we have
>>> two maps namely tenantIdDomainMap and tenantDomainIdMap to act as a 
>>> cache
>>> when fetching a tenant's id via domain name or vise-versa. Whenever we 
>>> try
>>> to obtain the id via domain for example, it first checks if that 
>>> particular
>>> domain is present in the tenantDomainIdMap, and if only if its not
>>> available it checks the DB.
>>>
>>> We however never clear these tow maps, so if there is a domain-id
>>> mapping it exist as long as the server is running. Note that we have 
>>> these
>>> maps per Stratos service, meaning AS, ESB, DSS etc maintains its own map
>>> locally. Previously this was no issue since we didn't have the facility 
>>> to
>>> delete a tenant, but when trying to create the tenant deletion patch, I
>>> came across some issues since we never clear this map.
>>>
>>> For example say we have a tenant foo.com with TID - 10. If this
>>> tenant logs into AS, the locals maps will contain the mapping tenant
>>> foo.com <=> TID - 10. Next we delete the tenant from Manager and
>>> also the delete the entry in the locals maps of Manager, but still we 
>>> have
>>> no way of clearing the domain <=> ID mapping in AS (or any other 
>>> service).
>>> So if we create another tenant foo.com with TID-12 AS will still
>>> have the old domain-id mapping, which obviously causes issue.
>>>
>>> So I am looking for a way to clear these two maps. One suggestion
>>> was to delete the domain-id mapping when unloading the tenant. For this 
>>> we
>>> need to add static getter methods for the 

Re: [Dev] Have we tested JMX monitoring in trunk

2012-07-04 Thread Charitha Kankanamge
Noted.



On Thu, Jul 5, 2012 at 10:40 AM, Amila Maha Arachchi wrote:

> Hi all,
>
> $subject? I tried to follow some articles on how to remotely monitor WSO2
> products via JMX (with 3.2.3 packs) and it seems the instructions mentioned
> in those articles are not working. One such article is [1]. But there is a
> workaround which can be found at [2].
>
> Charitha et al, please pay attention to this during your testing cycles.
> If this is broken, we'll have to fix this before we release the kernel.
>
> [1]
> http://wso2.org/library/knowledge-base/2011/04/monitoring-wso2-esb-using-jconsole
> [2]
> http://maharachchi.blogspot.com/2011/02/monitoring-your-java-application-with.html
>
> Regards,
> AmilaM.
> --
> *Amila Maharachchi*
> Technical Lead
> Member, Management Committee - Cloud & Platform TG
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Trace logs not working

2012-07-04 Thread Tharindu Mathew
What are the steps you followed?

On Thu, Jul 5, 2012 at 9:17 AM, Amani Soysa  wrote:

> I tested this using ESB trunk build (22nd packs) and it works fine. I will
> take the latest update and let you know.
>
>
> On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:
>
>> The log level for the logge, and the thresholds of the relevant appenders
>> need to be set to TRACE for this to work.
>>
>> On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew wrote:
>>
>>> Hi,
>>>
>>> Please note $subject. I updated through admin console as well as the
>>> log4j properties and it doesn't work.
>>>
>>> Can someone have a look?
>>>
>>> --
>>> Regards,
>>>
>>> Tharindu
>>>
>>> blog: http://mackiemathew.com/
>>> M: +9459908
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +9459908
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Trace logs not working

2012-07-04 Thread Amani Soysa
To set trace level logs in global level,
Go to -> configure ->Global Log4J Configuration set the log level to trace.

If you want to enable TRACE_APPENDER send trace level logs to trace.log
file you need to add TRACE_APPENDER to root logger in log4j.properties
file. Or set it from the logging ui (Configure Log4J Appenders)

On Thu, Jul 5, 2012 at 10:57 AM, Tharindu Mathew  wrote:

> What are the steps you followed?
>
>
> On Thu, Jul 5, 2012 at 9:17 AM, Amani Soysa  wrote:
>
>> I tested this using ESB trunk build (22nd packs) and it works fine. I
>> will take the latest update and let you know.
>>
>>
>> On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:
>>
>>> The log level for the logge, and the thresholds of the relevant
>>> appenders need to be set to TRACE for this to work.
>>>
>>> On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew wrote:
>>>
 Hi,

 Please note $subject. I updated through admin console as well as the
 log4j properties and it doesn't work.

 Can someone have a look?

 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * **
>>> email: **az...@wso2.com* * cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* *
>>> twitter: **http://twitter.com/afkham_azeez*
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Regards,
>
> Tharindu
>
> blog: http://mackiemathew.com/
> M: +9459908
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Trace logs not working

2012-07-04 Thread Tharindu Mathew
No, I went to Logging.

Searched for my package 'databridge' and changed the log level to TRACE.
This should work.

Azeez, if this does not work, then it's an issue. Following these steps
should just work.

On Thu, Jul 5, 2012 at 11:04 AM, Amani Soysa  wrote:

> To set trace level logs in global level,
> Go to -> configure ->Global Log4J Configuration set the log level to trace.
>
> If you want to enable TRACE_APPENDER send trace level logs to trace.log
> file you need to add TRACE_APPENDER to root logger in log4j.properties
> file. Or set it from the logging ui (Configure Log4J Appenders)
>
>
> On Thu, Jul 5, 2012 at 10:57 AM, Tharindu Mathew wrote:
>
>> What are the steps you followed?
>>
>>
>> On Thu, Jul 5, 2012 at 9:17 AM, Amani Soysa  wrote:
>>
>>> I tested this using ESB trunk build (22nd packs) and it works fine. I
>>> will take the latest update and let you know.
>>>
>>>
>>> On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:
>>>
 The log level for the logge, and the thresholds of the relevant
 appenders need to be set to TRACE for this to work.

 On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew wrote:

> Hi,
>
> Please note $subject. I updated through admin console as well as the
> log4j properties and it doesn't work.
>
> Can someone have a look?
>
> --
> Regards,
>
> Tharindu
>
> blog: http://mackiemathew.com/
> M: +9459908
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * **
 email: **az...@wso2.com* * cell: +94 77 3320919
 blog: **http://blog.afkham.org* *
 twitter: 
 **http://twitter.com/afkham_azeez*
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>
>>
>> --
>> Regards,
>>
>> Tharindu
>>
>> blog: http://mackiemathew.com/
>> M: +9459908
>>
>>
>


-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +9459908
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CPU time measurement per tenant in Slive.

2012-07-04 Thread Isuru Udana
On Thu, Jul 5, 2012 at 10:12 AM, Amila Maha Arachchi wrote:

> Hi Lasindu,
>
> On Thu, Jul 5, 2012 at 9:56 AM, Lasindu Vidana Pathiranage <
> lasi...@wso2.com> wrote:
>
>> As shankar suggested ESB & BPS are the ones which caused problems with
>> their internal thread pools.
>> I tested both CPU time and Thread live time per request per tenant for
>> Application Server and Data Services Server inside the
>> CarbonStuckThreadDetectionValve. I created few web services, web apps
>> and data services to test them out. Worked well in measuring both CPU
>> & Live time for a request.
>>
>> I was able to measure the CPU time of a BPEL process which consist of
>> a busy loop inside the process with the help of waruna. I captured the
>> CPU time inside ode/Scheduler-simple , call() method inside
>> SimpleScheduler class.
>>
>> With the help of KasunI and IsuruU I was able to measure the CPU time
>> for ESB as well. I created a class mediator which consist of a busy
>> loop and was able to capture the CPU time for both in/out sequences.
>> ServerWorker handles the requests and ClientWorker handles the
>> responses. I was able to capture CPU time as well as Live time per
>> transaction for ESB as well. Both classes contain run() methods and
>> its where I was able to capture the CPU time. Since ESB uses
>> non-blocking threads, and nhttp, it seems only way to capture the CPU
>> time per thread is inside the run() methods.
>>
>> Since I was able to measure the CPU time for AS, DSS, BPS, ESB for
>> almost all the cases, I tested out some Load tests for ESB. I sent
>> 100,000 echo requests to AS via a proxy from ESB. The test statistics
>> revealed, it may take a considerable amount of time to capture the CPU
>> time for each request (overhead). Since ESB mostly concern on the
>> performance, it might cause some latency issues if I'm to include the
>> code inside it. I didn't find any alternative way to capture the CPU
>> time per tenant/thread inside ESB either.
>>
>
> Please try your test without the sys outs. AFAIR there were two sys outs
> per one request. Please remove them and test.
>
>>
>> Also if I'm to proceed with this I wanted to know how I can use this
>> statistics to publish to BAM2.
>> One alternative to use the same approach as it is used in bandwidth
>> measuring. It has used a TransportStatistics queue in tomcat to add
>> the statistics and usage agent in SLive retrieves them and publishes
>> to BAM. Even though I can add data captured inside the tomcat valve to
>> a queue in tomcat.ext/transport/statistics (CpuStatisticsContainer or
>> whatever) I'm not sure whether I can add data from ode (BPS) or
>> synapse (ESB) to the same queue in tomcat.
>>
>
> I think you should be able to store them in the same way. But then we have
> a problem. We cannot add these code/patches to synapse or ode. Can we?
>

In synapse we are using the nhttp transport and not dealing with tomcat, so
I think this is not possible with ESB.
Since we are dealing with the most sensitive part of synapse, this should
be done with extreme care.

I think we should look at how other matrices like latency is calculated in
synapse to get an idea.

Thanks,
IsuruU


>
> Regards,
> AmilaM.
>
>>
>>
>> Thanks,
>> Lasindu
>>
>
>
>
> --
> *Amila Maharachchi*
> Technical Lead
> Member, Management Committee - Cloud & Platform TG
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
>


-- 
*Isuru Udana*
*
 *
*
Software Engineer
*
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
twitter: http://twitter.com/isudana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Trace logs not working

2012-07-04 Thread Amani Soysa
Yeah I will test it and let you know

On Thu, Jul 5, 2012 at 11:12 AM, Tharindu Mathew  wrote:

> No, I went to Logging.
>
> Searched for my package 'databridge' and changed the log level to TRACE.
> This should work.
>
> Azeez, if this does not work, then it's an issue. Following these steps
> should just work.
>
>
> On Thu, Jul 5, 2012 at 11:04 AM, Amani Soysa  wrote:
>
>> To set trace level logs in global level,
>> Go to -> configure ->Global Log4J Configuration set the log level to
>> trace.
>>
>> If you want to enable TRACE_APPENDER send trace level logs to trace.log
>> file you need to add TRACE_APPENDER to root logger in log4j.properties
>> file. Or set it from the logging ui (Configure Log4J Appenders)
>>
>>
>> On Thu, Jul 5, 2012 at 10:57 AM, Tharindu Mathew wrote:
>>
>>> What are the steps you followed?
>>>
>>>
>>> On Thu, Jul 5, 2012 at 9:17 AM, Amani Soysa  wrote:
>>>
 I tested this using ESB trunk build (22nd packs) and it works fine. I
 will take the latest update and let you know.


 On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:

> The log level for the logge, and the thresholds of the relevant
> appenders need to be set to TRACE for this to work.
>
> On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew wrote:
>
>> Hi,
>>
>> Please note $subject. I updated through admin console as well as the
>> log4j properties and it doesn't work.
>>
>> Can someone have a look?
>>
>> --
>> Regards,
>>
>> Tharindu
>>
>> blog: http://mackiemathew.com/
>> M: +9459908
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: 
> **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

>>>
>>>
>>> --
>>> Regards,
>>>
>>> Tharindu
>>>
>>> blog: http://mackiemathew.com/
>>> M: +9459908
>>>
>>>
>>
>
>
> --
> Regards,
>
> Tharindu
>
> blog: http://mackiemathew.com/
> M: +9459908
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Trace logs not working

2012-07-04 Thread Amani Soysa
I tried this to org.apache.axis2 package to Trace and it looks like only
debug level logs are getting printed

On Thu, Jul 5, 2012 at 11:16 AM, Amani Soysa  wrote:

> Yeah I will test it and let you know
>
>
> On Thu, Jul 5, 2012 at 11:12 AM, Tharindu Mathew wrote:
>
>> No, I went to Logging.
>>
>> Searched for my package 'databridge' and changed the log level to TRACE.
>> This should work.
>>
>> Azeez, if this does not work, then it's an issue. Following these steps
>> should just work.
>>
>>
>> On Thu, Jul 5, 2012 at 11:04 AM, Amani Soysa  wrote:
>>
>>> To set trace level logs in global level,
>>> Go to -> configure ->Global Log4J Configuration set the log level to
>>> trace.
>>>
>>> If you want to enable TRACE_APPENDER send trace level logs to trace.log
>>> file you need to add TRACE_APPENDER to root logger in log4j.properties
>>> file. Or set it from the logging ui (Configure Log4J Appenders)
>>>
>>>
>>> On Thu, Jul 5, 2012 at 10:57 AM, Tharindu Mathew wrote:
>>>
 What are the steps you followed?


 On Thu, Jul 5, 2012 at 9:17 AM, Amani Soysa  wrote:

> I tested this using ESB trunk build (22nd packs) and it works fine. I
> will take the latest update and let you know.
>
>
> On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:
>
>> The log level for the logge, and the thresholds of the relevant
>> appenders need to be set to TRACE for this to work.
>>
>> On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew 
>> wrote:
>>
>>> Hi,
>>>
>>> Please note $subject. I updated through admin console as well as the
>>> log4j properties and it doesn't work.
>>>
>>> Can someone have a look?
>>>
>>> --
>>> Regards,
>>>
>>> Tharindu
>>>
>>> blog: http://mackiemathew.com/
>>> M: +9459908
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: 
>> **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908


>>>
>>
>>
>> --
>> Regards,
>>
>> Tharindu
>>
>> blog: http://mackiemathew.com/
>> M: +9459908
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Infinispan caching with sync=false

2012-07-04 Thread Prabath Siriwardena
Thanks Dimuthu, Thanks Senaka for your replies..

Also how about the letting the user provide the complete inifinispan cache
configuration file - may be pointed via our cache.xml and use that to
override all other settings and use it at the time of
creating CacheManager...

Thanks & regards,
-Prabath

On Thu, Jul 5, 2012 at 5:04 AM, Dimuthu Leelarathne wrote:

> Hi Prabath,
>
> I see this is a problem. I will work on setting a new parameter.
>
> https://wso2.org/jira/browse/CARBON-13584
>
> Created an issue to keep track of this.
>
> thanks,
> dimuthu
>
> On Wed, Jul 4, 2012 at 8:16 PM, Prabath Siriwardena wrote:
>
>> When we set false - what parameters can we use to set
>> threadPoolSize -  by default threadPoolSize is one...
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://RampartFAQ.com
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>


-- 
Thanks & Regards,
Prabath

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://RampartFAQ.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Trace logs not working

2012-07-04 Thread Amani Soysa
Hi Tharidu,

Earlier I have not tested it properly. I put some trace logs in my
component and tested ..
if(log.isTraceEnabled()) {
log.trace("Just to see if tracing works");
}
And enabled the Logger to Trace in that particular class and it worked for
me.. Is this the same way you've done it?

Regards,
Amani

On Thu, Jul 5, 2012 at 11:20 AM, Amani Soysa  wrote:

> I tried this to org.apache.axis2 package to Trace and it looks like only
> debug level logs are getting printed
>
> On Thu, Jul 5, 2012 at 11:16 AM, Amani Soysa  wrote:
>
>> Yeah I will test it and let you know
>>
>>
>> On Thu, Jul 5, 2012 at 11:12 AM, Tharindu Mathew wrote:
>>
>>> No, I went to Logging.
>>>
>>> Searched for my package 'databridge' and changed the log level to TRACE.
>>> This should work.
>>>
>>> Azeez, if this does not work, then it's an issue. Following these steps
>>> should just work.
>>>
>>>
>>> On Thu, Jul 5, 2012 at 11:04 AM, Amani Soysa  wrote:
>>>
 To set trace level logs in global level,
 Go to -> configure ->Global Log4J Configuration set the log level to
 trace.

 If you want to enable TRACE_APPENDER send trace level logs to trace.log
 file you need to add TRACE_APPENDER to root logger in log4j.properties
 file. Or set it from the logging ui (Configure Log4J Appenders)


 On Thu, Jul 5, 2012 at 10:57 AM, Tharindu Mathew wrote:

> What are the steps you followed?
>
>
> On Thu, Jul 5, 2012 at 9:17 AM, Amani Soysa  wrote:
>
>> I tested this using ESB trunk build (22nd packs) and it works fine. I
>> will take the latest update and let you know.
>>
>>
>> On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:
>>
>>> The log level for the logge, and the thresholds of the relevant
>>> appenders need to be set to TRACE for this to work.
>>>
>>> On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew 
>>> wrote:
>>>
 Hi,

 Please note $subject. I updated through admin console as well as
 the log4j properties and it doesn't work.

 Can someone have a look?

 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * **
>>> email: **az...@wso2.com* * cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* *
>>> twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Regards,
>
> Tharindu
>
> blog: http://mackiemathew.com/
> M: +9459908
>
>

>>>
>>>
>>> --
>>> Regards,
>>>
>>> Tharindu
>>>
>>> blog: http://mackiemathew.com/
>>> M: +9459908
>>>
>>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Infinispan caching with sync=false

2012-07-04 Thread Dimuthu Leelarathne
Hi Prabath,

Yes. It is a great idea and (thinking aloud), in that case what we can do
is refer to inifinispan-config.xml from our cache-config.xml. If we
implement it like that then we will have maximum configurability. In order
to do that we can also need our CacheConfiguration to read any junk we put
in cache-config.xml and the CacheManager implementation would make sense of
it.

The only thing we will be sacrificing would be unified cache-config.xml
across different caching implementations. I think it is a small price to
pay compared to the above advantages we gain.

I am +1. But we need people to implement it. :(

thanks,
dimuthu

On Thu, Jul 5, 2012 at 11:34 AM, Prabath Siriwardena wrote:

> Thanks Dimuthu, Thanks Senaka for your replies..
>
> Also how about the letting the user provide the complete inifinispan cache
> configuration file - may be pointed via our cache.xml and use that to
> override all other settings and use it at the time of
> creating CacheManager...
>
> Thanks & regards,
> -Prabath
>
>
> On Thu, Jul 5, 2012 at 5:04 AM, Dimuthu Leelarathne wrote:
>
>> Hi Prabath,
>>
>> I see this is a problem. I will work on setting a new parameter.
>>
>> https://wso2.org/jira/browse/CARBON-13584
>>
>> Created an issue to keep track of this.
>>
>> thanks,
>> dimuthu
>>
>> On Wed, Jul 4, 2012 at 8:16 PM, Prabath Siriwardena wrote:
>>
>>> When we set false - what parameters can we use to set
>>> threadPoolSize -  by default threadPoolSize is one...
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://RampartFAQ.com
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Trace logs not working

2012-07-04 Thread Tharindu Mathew
I had similar trace logs in my code as well. Let me double check again.

I assume you have not done any additional steps.

On Thu, Jul 5, 2012 at 11:36 AM, Amani Soysa  wrote:

> Hi Tharidu,
>
> Earlier I have not tested it properly. I put some trace logs in my
> component and tested ..
> if(log.isTraceEnabled()) {
> log.trace("Just to see if tracing works");
> }
> And enabled the Logger to Trace in that particular class and it worked for
> me.. Is this the same way you've done it?
>
> Regards,
> Amani
>
>
> On Thu, Jul 5, 2012 at 11:20 AM, Amani Soysa  wrote:
>
>> I tried this to org.apache.axis2 package to Trace and it looks like only
>> debug level logs are getting printed
>>
>> On Thu, Jul 5, 2012 at 11:16 AM, Amani Soysa  wrote:
>>
>>> Yeah I will test it and let you know
>>>
>>>
>>> On Thu, Jul 5, 2012 at 11:12 AM, Tharindu Mathew wrote:
>>>
 No, I went to Logging.

 Searched for my package 'databridge' and changed the log level to
 TRACE. This should work.

 Azeez, if this does not work, then it's an issue. Following these steps
 should just work.


 On Thu, Jul 5, 2012 at 11:04 AM, Amani Soysa  wrote:

> To set trace level logs in global level,
> Go to -> configure ->Global Log4J Configuration set the log level to
> trace.
>
> If you want to enable TRACE_APPENDER send trace level logs to
> trace.log file you need to add TRACE_APPENDER to root logger in
> log4j.properties file. Or set it from the logging ui (Configure Log4J
> Appenders)
>
>
> On Thu, Jul 5, 2012 at 10:57 AM, Tharindu Mathew wrote:
>
>> What are the steps you followed?
>>
>>
>> On Thu, Jul 5, 2012 at 9:17 AM, Amani Soysa  wrote:
>>
>>> I tested this using ESB trunk build (22nd packs) and it works fine.
>>> I will take the latest update and let you know.
>>>
>>>
>>> On Thu, Jul 5, 2012 at 8:32 AM, Afkham Azeez  wrote:
>>>
 The log level for the logge, and the thresholds of the relevant
 appenders need to be set to TRACE for this to work.

 On Wed, Jul 4, 2012 at 11:59 PM, Tharindu Mathew >>> > wrote:

> Hi,
>
> Please note $subject. I updated through admin console as well as
> the log4j properties and it doesn't work.
>
> Can someone have a look?
>
> --
> Regards,
>
> Tharindu
>
> blog: http://mackiemathew.com/
> M: +9459908
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * **
 email: **az...@wso2.com* * cell: +94 77 3320919
 blog: **http://blog.afkham.org* *
 twitter: 
 **http://twitter.com/afkham_azeez*
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>
>>
>> --
>> Regards,
>>
>> Tharindu
>>
>> blog: http://mackiemathew.com/
>> M: +9459908
>>
>>
>


 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908


>>>
>>
>


-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +9459908
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev