[TSDR-15] TSDR Query output does not match RK value in some specific cases Created: 22/Jan/16 Updated: 10/Feb/16 Resolved: 10/Feb/16 |
|
| Status: | Verified |
| Project: | tsdr |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | premnath sundarababu | Assignee: | Sharon Aicler |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 5052 |
| Priority: | Normal |
| Description |
|
1) Try FLOWTABLE STATS Query with Table:0 , it returns all the Table Values curl -G -v -X GET -H "Accept: application/json" -H "Content-Type application/json" "http://10.16.148.236:8181/tsdr/metrics/query" --data-urlencode "tsdrkey=[NID=openflow:1][DC=][MN=FLOWTABLESTATS][RK=Table:0]" --data-urlencode "from=1453384405" --data-urlencode "until=1453446951" { , { "keyName": "Table", "keyValue": "150" } ] , { "keyName": "Table", "keyValue": "150" } ] 2) Node ID matches the prefix curl -G -v -X GET -H "Accept: application/json" -H "Content-Type application/json" "http://10.16.148.236:8181/tsdr/metrics/query" --data-urlencode "tsdrkey=[NID=openflow:1][DC=][MN=FLOWTABLESTATS][RK=Table:0]" --data-urlencode "from=0" --data-urlencode "until=now" Here NID is openflow:1 and it matches all nodes with 1* <snippet output> { , { "keyName": "Table", "keyValue": "71" } ] , { "keyName": "Table", "keyValue": "71" } ] |
| Comments |
| Comment by YuLing Chen [ 03/Feb/16 ] |
|
A couple of patch sets merged lately should have fixed this issue. I tested with NetFlow type of data with HBase, and here is the correct result: yuling@yuling-Precision-Tower-5810:~/purging-check/distribution/distribution-karaf/target/assembly/data/log$ curl -G -v -H "Accept: application/json" -H "Content-Type: application/json" "http://localhost:8181/tsdr/logs/query" --data-urlencode "tsdrkey=[NID=][DC=NETFLOW][RK=portname:port2]" --data-urlencode "from=0" --data-urlencode "until=240000000"|more
The rows in hbase table are: hbase(main):012:0> scan 'NETFLOW' |
| Comment by premnath sundarababu [ 05/Feb/16 ] |
|
Issue is still seen with Table:1 matches all tables prefixing with 1 |
| Comment by YuLing Chen [ 08/Feb/16 ] |
|
fixed with patch set: |