[ https://issues.apache.org/jira/browse/HBASE-8079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Somogyi resolved HBASE-8079. ---------------------------------- Resolution: Won't Fix 0.94 release line is retired. > Mismatch of mutateRow() parameters between DemoClient.php and > gen-php/Hbase.php in 0.94 > --------------------------------------------------------------------------------------- > > Key: HBASE-8079 > URL: https://issues.apache.org/jira/browse/HBASE-8079 > Project: HBase > Issue Type: Bug > Affects Versions: 0.94.2 > Reporter: Ted Yu > Priority: Major > > From user Jung under email thread 'Hbase Thrift DemoClient.php bug' > This appears to be 0.94 specific. > ------ > installed thrift and hbase. and testing php with hbase. > i tested apache thrift 0.90 and 1.0-dev with hbase 0.94.2 and hbase > 0.94.5 's Hbase.thrift > $ php DemoClient.php failed like below > {code} > <html> > <head> > <title>DemoClient</title> > </head> > <body> > <pre> > scanning tables... > found: cars > found: demo_table > disabling table: demo_table > deleting table: demo_table > found: dnstest > found: hello_world > creating table: demo_table > column families in demo_table: > column: entry:, maxVer: 10 > column: unused:, maxVer: 3 > PHP Warning: Missing argument 4 for Hbase\HbaseClient::mutateRow(), > called in /home/hbase/test/www-current/DemoClient.php on line 138 and > defined in /home/hbase/test/www-current/thrift/packages/Hbase/Hbase.php > on line 1233 > PHP Notice: Undefined variable: attributes in > /home/hbase/test/www-current/thrift/packages/Hbase/Hbase.php on line > 1235 > PHP Warning: Missing argument 4 for Hbase\HbaseClient::mutateRow(), > called in /home/hbase/test/www-current/DemoClient.php on line 147 and > defined in /home/hbase/test/www-current/thrift/packages/Hbase/Hbase.php > on line 1233 > {code} > --- > DemoClient.php using 3 args > $client->mutateRow( $t, "foo", $mutations ) > but mutateRow in gen-php/Hbase.php have a 4 args like below > {code} > 40: public function mutateRow($tableName, $row, $mutations, $attributes); > 41: public function mutateRowTs($tableName, $row, $mutations, > $timestamp, $attributes); > 42: public function mutateRows($tableName, $rowBatches, $attributes); > 43: public function mutateRowsTs($tableName, $rowBatches, $timestamp, > $attributes); > 1233: public function mutateRow($tableName, $row, $mutations, $attributes) > 1290: public function mutateRowTs($tableName, $row, $mutations, > $timestamp, $attributes) > 1348: public function mutateRows($tableName, $rowBatches, $attributes) > 1404: public function mutateRowsTs($tableName, $rowBatches, > $timestamp, $attributes) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)