alibaba / alibaba/node-hbase-client
hbase-rpc-client sometimes fails getting region info
- Dominant language
- JavaScript
- Stars
- 279
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
client.prototype._parseRegionInfo sometimes crashes because it gets the row of the meta table containing table:state instead of the one containing info:regioninfo. I worked around this by inserting
```
if(res.cols['info:regioninfo'] === undefined)
return undefined;
```
before
```
regionInfo = res.cols['info:regioninfo'].value;
```
although I don't understand the code (or node!) well enough to know if that is correct or optimal. Does that look right?
Thanks,
Mike
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at client.prototype._parseRegionInfo and trace how rows from the HBase meta table are handled when info:regioninfo is absent. Reproduce the table:state case and verify that region-info parsing no longer crashes while valid region metadata continues to work; no test file is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100