Hi Dave,
Yeah, thank you very much for your support. I will check it now. Thanks
again and wish you have a nice day :)
Thành.

On Tue, Feb 23, 2016 at 9:20 PM, Dave <[email protected]> wrote:

> Hi Thành,
>
> The mismatching counts are a result of bugs in the Usergrid counter
> system, in both Usergrid 1 and 2.  Work is ongoing to repair the counter
> implementation and to move it from the old Hector Cassandra client to the
> new Datastax Java driver.
>
> Repair counters:
> https://issues.apache.org/jira/browse/USERGRID-836
>
> Move from Hector to Datastax driver:
> https://issues.apache.org/jira/browse/USERGRID-403
>
>
> Dave
>
>
> Here are the currently open issues that include the word "counters":
>
>
> https://issues.apache.org/jira/issues/?jql=project%20%3D%20USERGRID%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22)%20AND%20text%20~%20%22counters%22
>
>
>
> On Sun, Feb 21, 2016 at 12:55 AM Thành Vũ Trung <[email protected]>
> wrote:
>
>> Hi all,
>> Anybody can help me explain bellow issue:
>>
>> - I make the first request:
>>
>> http://10.0.0.5:8080/abc/demo/?access_token=YWMtZefHjthbEeWlBIeYZYJBlgAAAVMmVeU-qCCOyvI4IdlrrtTusOE21bhjd1w
>> - Result:
>> {
>>   "action": "get",
>>   "application": "701ab745-d61e-11e5-aff7-002710e1c5a8",
>>   "params": {},
>>   "uri": "http://10.0.0.5:8080/abc/demo";,
>>   "entities": [
>>     {
>>       "uuid": "701ab745-d61e-11e5-aff7-002710e1c5a8",
>>       "type": "application",
>>       "name": "abc/demo",
>>       "accesstokenttl": null,
>>       "applicationName": "demo",
>>       "organizationName": "abc",
>>       "created": 1455786192283,
>>       "modified": 1455786192283,
>>       "metadata": {
>>         "collections": {
>>           "configs": {
>>             "count": 3,
>>             "name": "configs",
>>             "type": "config",
>>             "title": "Configs"
>>           },
>>           "devices": {
>>             "count": 3,
>>             "name": "devices",
>>             "type": "device",
>>             "title": "Devices"
>>           },
>>           "roles": {
>>             "count": 3,
>>             "name": "roles",
>>             "type": "role",
>>             "title": "Roles"
>>           }
>>         }
>>       }
>>     }
>>   ],
>>   "timestamp": 1456032468329,
>>   "duration": 10,
>>   "organization": "abc",
>>   "applicationName": "demo"
>> }
>>
>>
>> - Second request:
>>
>> http://10.0.0.5:8080/abc/demo/configs?access_token=YWMtzJ98mthdEeWwLAfatjr4GgAAAVMmZaHbJ8Szg5m3eoDGSbxYh5NNhvYLOsY
>> - Result:
>> {
>>   "action": "get",
>>   "application": "701ab745-d61e-11e5-aff7-002710e1c5a8",
>>   "params": {},
>>   "path": "/configs",
>>   "uri": "http://10.0.0.5:8080/abc/demo/configs";,
>>   "entities": [
>>     {
>>       "uuid": "31e62d22-d7e1-11e5-a6a9-002710e1c5a8",
>>       "type": "config",
>>       "name": "test",
>>       "created": 1455979790945,
>>       "modified": 1455979790945,
>>       "metadata": {
>>         "path": "/configs/31e62d22-d7e1-11e5-a6a9-002710e1c5a8",
>>         "size": 315
>>       }
>>     }
>>   ],
>>   "timestamp": 1456033796956,
>>   "duration": 11,
>>   "organization": "abc",
>>   "applicationName": "demo",
>>   "count": 1
>> }
>>
>> Why in second request number of entities is 1
>> But in the first request count of "Configs" collection is 3
>> I'm using usergrid version 2.1.1
>>
>> Thank you very much for your help.
>> --
>>
>> *---------------------------------------------------------------------------------------------*
>> *Thanh Vu*
>>
>>


-- 
*---------------------------------------------------------------------------------------------*
*Thanh Vu*

*Information Technology Engineer*
*Mobile:* +84903298791
*Skype:* v2t_nd |* Email:* maito:[email protected]

Reply via email to