falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruslan Ostafiychuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FALCON-1287) Use listAllEntities() instead of listEntities()
Date Fri, 19 Jun 2015 11:52:00 GMT

     [ https://issues.apache.org/jira/browse/FALCON-1287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ruslan Ostafiychuk updated FALCON-1287:
---------------------------------------
    Description: 
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}
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}
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.

  was:
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}
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}
http://ip-172-31-40-45.ec2.internal: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.


> 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
>
>
> 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}
> 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}
> 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)

Mime
View raw message