On Tue, Mar 24, 2015 at 10:36 PM, Danushka Fernando <[email protected]>
wrote:

> Hi Ajith
> What I was pointing out was this could be a fix in our side (AF). Sorry if
> I mislead you.
>

+1.

-Ajith

> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Mar 25, 2015 6:11 AM, "Ajith Vitharana" <[email protected]> wrote:
>
>>
>>
>> On Tue, Mar 24, 2015 at 8:14 PM, <[email protected]> wrote:
>>
>>>  I think same behavior is there in APIM too. They have the API list and
>>> separate list called Recently added. To get recently added to API list
>>> takes few seconds. Can’t we implement similar thing here?
>>>
>>
>> I don't see an issue to fix in indexing . There is no way to index the
>> resource just after adding. Indexing will trigger from the frequency which
>> scheduled in registry.xml file. So if you need reduce the  indexing task
>> frequency.
>>
>> -Ajith
>>
>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> *From:* Dimuthu Leelarathne <[email protected]>
>>> *Sent:* ‎Tuesday‎, ‎March‎ ‎24‎, ‎2015 ‎10‎:‎22‎ ‎PM
>>> *To:* Punnadi Gunarathna <[email protected]>
>>> *Cc:* architecture <[email protected]>
>>>
>>> Hi Chandana,
>>>
>>> Could we get fixes from Registry side for this?
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Tue, Mar 24, 2015 at 7:29 PM, Punnadi Gunarathna <[email protected]>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> While fixing a cloud bug which is "AF code tries to retrieve
>>>> information of irrelevant apps when inside an app" [1] , I found that
>>>> passing a Map object rather than GenericArtifactFilter object to
>>>> GenericArtifactManager would solve the problem [2].
>>>> When I changed the GenericArtifactFilter object to a Map object [3], it
>>>> threw some exceptions. With the help of Greg team it was found out that the
>>>> App Factory resources weren't indexed which result those exceptions. So I
>>>> indexed the resource [5].
>>>>
>>>> But after applying indexing I'm facing more problems as follows:
>>>>
>>>> 1. When an application is created, the 'trunk' created via
>>>> 'appversion.rxt' will not be returned from getAppVersionRXTFromRegistry
>>>> method in RxtManager.java until for few seconds (such as 10s), So it
>>>> requires to implement retry attempts until it returns the version 'trunk'
>>>> to proceed further in app creation process.
>>>> 2. When an app version is created, newly created verson will not be
>>>> returned by the same method mentioned in 1, due to the same reason and it
>>>> will require some code changes to fix the exceptions introduced later in
>>>> execution path.
>>>>
>>>> Moreover this might be a significant issue in Cloud as well.
>>>>
>>>> Please advice whether to keep the old implementation or to godhead with
>>>> indexing and sort the remaining issues.
>>>>
>>>> [1] https://wso2.org/jira/browse/APPFAC-3009
>>>> [2][Dev] [Greg] What is the difference between overloaded
>>>> findGenericArtifacts method in GenericArtifactManager - mail
>>>> [3]
>>>> https://github.com/punnadih/product-af/commit/dff7920619d25a134daef8f0134744908ae1e402
>>>> [4][Dev][App Fac] Registry resources Indexing issue fixed - mail
>>>>
>>>> --
>>>> Thanks and Regards,
>>>>
>>>> Punnadi Gunarathna
>>>> Senior Software Engineer,
>>>> WSO2, Inc.; http://wso2.com <http://wso2>
>>>> Blog: http://hi-my-world.blogspot.com/
>>>> Tel : 94 11 214 5345
>>>> Fax :94 11 2145300
>>>>
>>>>
>>>>
>>>>  <http://lalajisureshika.blogspot.com/>
>>>>
>>>
>>>
>>>
>>> --
>>> Dimuthu Leelarathne
>>> Architect & Product Lead of App Factory
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: [email protected]
>>> Mobile : 0773661935
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  [email protected]
>> Mobile : +1-812-360-5335
>>
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  [email protected]
Mobile : +1-812-360-5335
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to