hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jxi...@apache.org
Subject svn commit: r1379010 - /hbase/branches/0.94/src/examples/thrift/DemoClient.pl
Date Thu, 30 Aug 2012 16:37:41 GMT
Author: jxiang
Date: Thu Aug 30 16:37:41 2012
New Revision: 1379010

URL: http://svn.apache.org/viewvc?rev=1379010&view=rev
Log:
HBASE-6685 Thrift DemoClient.pl got NullPointerException

Modified:
    hbase/branches/0.94/src/examples/thrift/DemoClient.pl

Modified: hbase/branches/0.94/src/examples/thrift/DemoClient.pl
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/examples/thrift/DemoClient.pl?rev=1379010&r1=1379009&r2=1379010&view=diff
==============================================================================
--- hbase/branches/0.94/src/examples/thrift/DemoClient.pl (original)
+++ hbase/branches/0.94/src/examples/thrift/DemoClient.pl Thu Aug 30 16:37:41 2012
@@ -141,7 +141,6 @@ $client->mutateRow ( $demo_table, $key, 
 
 # this row name is valid utf8
 $key = "foo";
-# $mutations = [ Hbase::Mutation->new ( column => "entry:$key", value => $valid
) ];
 # This is another way to use the Mutation class
 my $mutation = Hbase::Mutation->new ();
 $mutation->{column} = "entry:$key";
@@ -151,7 +150,7 @@ $client->mutateRow ( $demo_table, $key, 
 
 # non-utf8 is not allowed in row names
 eval {
-	$mutations = [ Hbase::Mutation->new ( column => "entry:$key", value => $invalid
) ];
+	$mutations = [ Hbase::Mutation->new ( { column => "entry:$key", value => $invalid
} ) ];
 	# this can throw a TApplicationException (HASH) error
 	$client->mutateRow ($demo_table, $key, $mutations);
 	die ("shouldn't get here!");



Mime
View raw message