[ 
https://issues.apache.org/jira/browse/FALCON-1287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595863#comment-14595863
 ] 

Paul Isaychuk commented on FALCON-1287:
---------------------------------------

(y)

> Use listAllEntities() instead of listEntities()
> -----------------------------------------------
>
>                 Key: FALCON-1287
>                 URL: https://issues.apache.org/jira/browse/FALCON-1287
>             Project: Falcon
>          Issue Type: Improvement
>          Components: merlin
>    Affects Versions: 0.7
>            Reporter: Ruslan Ostafiychuk
>            Assignee: Ruslan Ostafiychuk
>            Priority: Critical
>             Fix For: 0.7
>
>         Attachments: FALCON-1287.patch
>
>
> For example in EntitiesPatternSearchTest if we have some old entities cause 
> by FALCON-1284 or other reason we will not have all entities in expected list 
> because we get only 10 first entities by default:
> {code:none}
> GET 
> http://host:15000/api/entities/list/process?nameseq=defintion&numResults=2147483647&user.name=user
> {code}
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><entities>
>   <totalResults>4</totalResults>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-New-Entity-Definition</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-NEW1-ENTITY2-DEFINITION123</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-New-definition123</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-NewEntityDefinition</name>
>   </entity>
> </entities>
> {code}
> {code:none}
> GET http://host:15000/api/entities/list/process&user.name=user
> {code}
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><entities>
>   <totalResults>20</totalResults>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-newentitydefine</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-New-Entity-Definition</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-065cd264-6</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-3a2ca82f</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-065cd264-7</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-065cd264-2</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-065cd264-1</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-NEW1-ENTITY2-DEFINITION123</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-065cd264-4</name>
>   </entity>
>   <entity>
>     <type>PROCESS</type>
>     <name>agregator-coord16-2813fd8a-New-definition123</name>
>   </entity>
> </entities>
> {code}
> There're 20 results in second response, but only 10 are shown and we can't 
> find all 4 from the first call.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to