[TSDR-8] tsdr:list FlowTablStats command hungs the karaf console on HBase DataStore Created: 02/Jun/15 Updated: 19/Jun/15 Resolved: 19/Jun/15 |
|
| Status: | Verified |
| Project: | tsdr |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vasanthan Balasubramaniyan | Assignee: | YuLing Chen |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 3542 |
| Priority: | High |
| Description |
|
Environment: Problem: Step to Reproduce: However "tsdr:list Portstats" returns output on 75 seconds. TSDR collection doesn't broken and also updated in HBase DB. Note: |
| Comments |
| Comment by Hariharan Sethuraman [ 16/Jun/15 ] |
|
Reduced the maximum result size from default (java.lang.Long.MAX_VALUE) to 1000 (Bytes). Unit tested against 4.5 lakhs entries which took 7-8 seconds to respond. This response time is consistent irrespective of entries count. |
| Comment by Vasanthan Balasubramaniyan [ 16/Jun/15 ] |
|
Attachment hs_err_pid21378.log has been added with description: crash hs_err_pid log |
| Comment by Vasanthan Balasubramaniyan [ 16/Jun/15 ] |
|
On RC1 build: distribution-karaf-0.3.0-Lithium-RC1-v201506160017 Still this issue reproduciable |
| Comment by YuLing Chen [ 17/Jun/15 ] |
|
The root cause was that 1) when inserting into hbase, for each row we requested a connection to hbase and 2) we didn't return the connection to the connection pool after the thread is done. This caused a huge number of insertion threads in memory that led to OOM issue. Fixes: 1) get one connection and insert the list of rows into hbase, 2) return the connection to the pool so that there would not be so many insertion threads in memory that caused the OOM issue. |
| Comment by Vasanthan Balasubramaniyan [ 19/Jun/15 ] |
|
Environment: Verification details After ~18 hours datastore records (in hbase), PortStats : 4015288 row(s) |