[ 
https://issues.apache.org/jira/browse/HBASE-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894847#action_12894847
 ] 

HBase Review Board commented on HBASE-2897:
-------------------------------------------

Message from: "Andrew Purtell" <[email protected]>

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://review.cloudera.org/r/482/
-----------------------------------------------------------

Review request for hbase.


Summary
-------

RowResultGenerator should handle NoSuchColumnFamilyException. Otherwise the 
client gets an ugly exception and Jersey is left in an incorrect state.


This addresses bug HBASE-2897.
    http://issues.apache.org/jira/browse/HBASE-2897


Diffs
-----

  src/main/java/org/apache/hadoop/hbase/rest/RowResultGenerator.java b742ded 
  src/main/java/org/apache/hadoop/hbase/rest/client/Client.java 45cf2db 
  src/test/java/org/apache/hadoop/hbase/rest/TestRowResource.java 392505e 

Diff: http://review.cloudera.org/r/482/diff


Testing
-------

Added unit test. Confirmed bug as reported. Fixed bug. New unit test now 
passes. No regressions observed running the unit test suite locally.


Thanks,

Andrew




> [stargate] RowResultGenerator should handle NoSuchColumnFamilyException
> -----------------------------------------------------------------------
>
>                 Key: HBASE-2897
>                 URL: https://issues.apache.org/jira/browse/HBASE-2897
>             Project: HBase
>          Issue Type: Bug
>          Components: rest
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>             Fix For: 0.20.7, 0.90.0
>
>         Attachments: HBASE-2897-0.20.patch, HBASE-2897-trunk.patch
>
>
> From Sasha Maksimenko up on u...@hbase:
> {quote}
> hi!
> thanks for answer. I use very simple code
> {code}
> org.apache.hadoop.hbase.stargate.client.Client client = new
>   org.apache.hadoop.hbase.stargate.client.Client();
> Response put = client.post("http://hostname:port/task/2/value";,
> "application/octet-stream", "1".getBytes());
> System.out.println(put.getCode()+new String(put.getBody()));
> client.shutdown();
> {code}
> In the first invocation I use  correct column name "value" and everything is 
> OK. After that I use wrong column name"valueS" and get exception
> 503 javax.ws.rs.WebApplicationException:
> org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException:
> [...]
> Next time I change column back but problem still exist. When I re-start 
> server problem is dissappear
> {quote}
> RowResultGenerator should gracefully handle NoSuchColumnFamilyException.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to