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

Andrey Novikov commented on IGNITE-5649:
----------------------------------------

Hi [~roman_s],

Yes

My note about implementation:
If {{cacheName}} is not specified, metadata for all caches should be returned 
(now try to return metadata  for default cache)
{code}
final String cacheName = req0.cacheName() == null ? DFLT_CACHE_NAME : 
req0.cacheName();
...
case CACHE_METADATA: {
   fut = ctx.task().execute(MetadataTask.class, cacheName);
{code}

Need throw exception with correct message in case: cache with {{cacheName}} not 
exists, metadata for cache with {{cacheName}} not exists.


> REST API, metadata command always returns list of cache
> -------------------------------------------------------
>
>                 Key: IGNITE-5649
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5649
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Aleksandr
>            Assignee: Roman Shtykh
>
> How to reproduce:
> 1) start Ignite server with example config with Person and Organization.
> 2) run:
> curl http://localhost:8080/ignite?cmd=metadata&cacheName=Person
> curl http://localhost:8080/ignite?cmd=metadata&cacheName=Organization
> curl http://localhost:8080/ignite?cmd=metadata&cacheName=blablabla
> Ignite always returns list of cache instead of information about selected 
> cache or error



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to