[
https://issues.apache.org/jira/browse/HBASE-17315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15819797#comment-15819797
]
Enis Soztutar commented on HBASE-17315:
---------------------------------------
[~sudeeps] the test failed for me on top of HBASE-17451, did you run it?
{code}
TESTING ALL TESTS
PASS <100ms 2 Passed 0 Skipped 0 Failed
//connection:connection-pool-test
PASS <100ms 3 Passed 0 Skipped 0 Failed
//serde:client-deserializer-test
PASS <100ms 4 Passed 0 Skipped 0 Failed //serde:client-serializer-test
PASS <100ms 1 Passed 0 Skipped 0 Failed
//serde:region-info-deserializer-test
PASS <100ms 4 Passed 0 Skipped 0 Failed //serde:server-name-test
PASS <100ms 3 Passed 0 Skipped 0 Failed //serde:table-name-test
PASS <100ms 3 Passed 0 Skipped 0 Failed //serde:zk-deserializer-test
PASS <100ms 1 Passed 0 Skipped 0 Failed //utils:user-util-test
PASS <100ms 7 Passed 0 Skipped 0 Failed //core:cell-test
[Fatal Error] :1:1: Premature end of file.
FAIL <100ms 0 Passed 0 Skipped 1 Failed //core:client-test
FAILURE //core:client-test main: test program aborted before finishing
====STANDARD OUT====
Running main() from gmock_main.cc
[==========] Running 6 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 6 tests from Client
[ RUN ] Client.EmptyConfigurationPassedToClient
WARNING: Logging before InitGoogleLogging() is written to STDERR
E0112 01:17:27.853519 546 client.cc:43] Empty Configuration object passed to
Client.
[ OK ] Client.EmptyConfigurationPassedToClient (4 ms)
[ RUN ] Client.ConfigurationPassedToClient
2017-01-12 01:17:27,855:546(0x7f8427701800):ZOO_INFO@log_env@726: Client
environment:zookeeper.version=zookeeper C client 3.4.8
2017-01-12 01:17:27,855:546(0x7f8427701800):ZOO_INFO@log_env@730: Client
environment:host.name=7212e6c54514
2017-01-12 01:17:27,855:546(0x7f8427701800):ZOO_INFO@log_env@737: Client
environment:os.name=Linux
2017-01-12 01:17:27,855:546(0x7f8427701800):ZOO_INFO@log_env@738: Client
environment:os.arch=3.10.0-514.2.2.el7.x86_64
2017-01-12 01:17:27,855:546(0x7f8427701800):ZOO_INFO@log_env@739: Client
environment:os.version=#1 SMP Tue Dec 6 23:06:41 UTC 2016
2017-01-12 01:17:27,855:546(0x7f8427701800):ZOO_INFO@log_env@747: Client
environment:user.name=(null)
2017-01-12 01:17:27,856:546(0x7f8427701800):ZOO_INFO@log_env@755: Client
environment:user.home=/root
2017-01-12 01:17:27,856:546(0x7f8427701800):ZOO_INFO@log_env@767: Client
environment:user.dir=/usr/src/hbase/hbase-native-client
2017-01-12 01:17:27,856:546(0x7f8427701800):ZOO_INFO@zookeeper_init@800:
Initiating client connection, host=localhost:2181 sessionTimeout=1000
watcher=(nil) sessionId=0 sessionPasswd=<null> context=(nil) flags=0
2017-01-12
01:17:27,857:546(0x7f842080d700):ZOO_ERROR@handle_socket_error_msg@1722: Socket
[::1:2181] zk retcode=-4, errno=111(Connection refused): server refused to
accept the client
2017-01-12
01:17:27,857:546(0x7f842080d700):ZOO_ERROR@handle_socket_error_msg@1722: Socket
[127.0.0.1:2181] zk retcode=-4, errno=111(Connection refused): server refused
to accept the client
2017-01-12 01:17:27,871:546(0x7f8427701800):ZOO_INFO@zookeeper_close@2543:
Freeing zookeeper resources for sessionId=0
I0112 01:17:27.871677 546 location-cache.cc:73] Closed connection to
ZooKeeper.
[ OK ] Client.ConfigurationPassedToClient (17 ms)
[ RUN ] Client.DefaultConfiguration
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@726: Client
environment:zookeeper.version=zookeeper C client 3.4.8
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@730: Client
environment:host.name=7212e6c54514
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@737: Client
environment:os.name=Linux
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@738: Client
environment:os.arch=3.10.0-514.2.2.el7.x86_64
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@739: Client
environment:os.version=#1 SMP Tue Dec 6 23:06:41 UTC 2016
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@747: Client
environment:user.name=(null)
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@755: Client
environment:user.home=/root
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@log_env@767: Client
environment:user.dir=/usr/src/hbase/hbase-native-client
2017-01-12 01:17:27,872:546(0x7f8427701800):ZOO_INFO@zookeeper_init@800:
Initiating client connection, host=localhost:2181 sessionTimeout=1000
watcher=(nil) sessionId=0 sessionPasswd=<null> context=(nil) flags=0
2017-01-12
01:17:27,873:546(0x7f8424759700):ZOO_ERROR@handle_socket_error_msg@1722: Socket
[127.0.0.1:2181] zk retcode=-4, errno=111(Connection refused): server refused
to accept the client
2017-01-12
01:17:27,873:546(0x7f8424759700):ZOO_ERROR@handle_socket_error_msg@1722: Socket
[::1:2181] zk retcode=-4, errno=111(Connection refused): server refused to
accept the client
2017-01-12 01:17:27,873:546(0x7f8427701800):ZOO_INFO@zookeeper_close@2543:
Freeing zookeeper resources for sessionId=0
I0112 01:17:27.873690 546 location-cache.cc:73] Closed connection to
ZooKeeper.
[ OK ] Client.DefaultConfiguration (2 ms)
[ RUN ] Client.Get
starting master, logging to
/usr/src/hbase/bin/../logs/hbase--master-7212e6c54514.out
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128m; support was
removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was
removed in 8.0
Waiting for local HBase cluster to start
Waiting for local HBase cluster to start
Waiting for local HBase cluster to start
2017-01-12 01:17:49,656 WARN [main] util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
Version 2.0.0-SNAPSHOT, ra8b5984c54c442988885ed77df2ba6fb8b18e33b, Fri Dec 16
04:44:48 UTC 2016
Took 0.0480 seconds
create 't', 'd'
Created table t
Took 2.0310 seconds
2017-01-12 01:18:00,629 WARN [main] util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
Version 2.0.0-SNAPSHOT, ra8b5984c54c442988885ed77df2ba6fb8b18e33b, Fri Dec 16
04:44:48 UTC 2016
Took 0.0500 seconds
put 't', 'test2', 'd:2', 'value2'
Took 0.5800 seconds
2017-01-12 01:18:09,599 WARN [main] util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
Version 2.0.0-SNAPSHOT, ra8b5984c54c442988885ed77df2ba6fb8b18e33b, Fri Dec 16
04:44:48 UTC 2016
Took 0.0630 seconds
put 't', 'test2', 'd:extra', 'value for extra'
Took 0.7540 seconds
2017-01-12 01:18:12,630:546(0x7f8427701800):ZOO_INFO@log_env@726: Client
environment:zookeeper.version=zookeeper C client 3.4.8
2017-01-12 01:18:12,630:546(0x7f8427701800):ZOO_INFO@log_env@730: Client
environment:host.name=7212e6c54514
2017-01-12 01:18:12,630:546(0x7f8427701800):ZOO_INFO@log_env@737: Client
environment:os.name=Linux
2017-01-12 01:18:12,630:546(0x7f8427701800):ZOO_INFO@log_env@738: Client
environment:os.arch=3.10.0-514.2.2.el7.x86_64
2017-01-12 01:18:12,630:546(0x7f8427701800):ZOO_INFO@log_env@739: Client
environment:os.version=#1 SMP Tue Dec 6 23:06:41 UTC 2016
2017-01-12 01:18:12,631:546(0x7f8427701800):ZOO_INFO@log_env@747: Client
environment:user.name=(null)
2017-01-12 01:18:12,631:546(0x7f8427701800):ZOO_INFO@log_env@755: Client
environment:user.home=/root
2017-01-12 01:18:12,631:546(0x7f8427701800):ZOO_INFO@log_env@767: Client
environment:user.dir=/usr/src/hbase/hbase-native-client
2017-01-12 01:18:12,631:546(0x7f8427701800):ZOO_INFO@zookeeper_init@800:
Initiating client connection, host=localhost:2181 sessionTimeout=1000
watcher=(nil) sessionId=0 sessionPasswd=<null> context=(nil) flags=0
2017-01-12 01:18:12,631:546(0x7f842080d700):ZOO_INFO@check_events@1728:
initiated connection to server [::1:2181]
2017-01-12 01:18:12,643:546(0x7f842080d700):ZOO_INFO@check_events@1775: session
establishment complete on server [::1:2181], sessionId=0x15990404bf00008,
negotiated timeout=4000
I0112 01:18:12.647770 1127 client-handler.cc:54] Read ResponseHeader size=3
call_id=9 has_exception=0
I0112 01:18:12.650640 1128 client-handler.cc:54] Read ResponseHeader size=3
call_id=9 has_exception=0
2017-01-12
01:18:12,678:546(0x7f842080d700):ZOO_ERROR@handle_socket_error_msg@1746: Socket
[::1:2181] zk retcode=-4, errno=112(Host is down): failed while receiving a
server response
2017-01-12
01:18:12,678:546(0x7f842080d700):ZOO_ERROR@handle_socket_error_msg@1722: Socket
[127.0.0.1:2181] zk retcode=-4, errno=111(Connection refused): server refused
to accept the client
W0112 01:18:12.678799 1127 HandlerContext-inl.h:177] readEOF reached end of
pipeline
W0112 01:18:12.678828 1127 HandlerContext-inl.h:177] readEOF reached end of
pipeline
W0112 01:18:12.678869 1128 HandlerContext-inl.h:177] readEOF reached end of
pipeline
client-test: io/async/AsyncSocket.cpp:837: virtual void
folly::AsyncSocket::closeNow(): Assertion `eventBase_ == nullptr ||
eventBase_->isInEventBaseThread()' failed.
====STANDARD ERR====
PASS <100ms 3 Passed 0 Skipped 0 Failed //core:get-test
PASS <100ms 17 Passed 0 Skipped 0 Failed
//core:hbase_configuration-test
PASS 42.0s 2 Passed 0 Skipped 0 Failed //core:location-cache-test
PASS <100ms 2 Passed 0 Skipped 0 Failed //core:request_converter-test
PASS <100ms 2 Passed 0 Skipped 0 Failed //core:result-test
PASS <100ms 5 Passed 0 Skipped 0 Failed //core:scan-test
PASS <100ms 2 Passed 0 Skipped 0 Failed //core:time_range-test
TESTS FAILED: 1 FAILURE
Failed target: //core:client-test
FAIL //core:client-test
make: 'check' is up to date.
{code}
Can you also make it so that Client ctor does not take the Configuration as an
optional.
> [C++] HBase Client and Table Implementation
> -------------------------------------------
>
> Key: HBASE-17315
> URL: https://issues.apache.org/jira/browse/HBASE-17315
> Project: HBase
> Issue Type: Sub-task
> Reporter: Sudeep Sunthankar
> Assignee: Sudeep Sunthankar
> Attachments: HBASE-17315.HBASE-14850.v1.patch,
> HBASE-17315.HBASE-14850.v2.patch, HBASE-17315.HBASE-14850.v3.patch,
> HBASE-17315.HBASE-14850.v4.patch, HBASE-17315.HBASE-14850.v5.patch,
> HBASE-17315.HBASE-14850.v6.patch
>
>
> Consists of Client and Table implementation which will be used to call the
> corresponding client methods i.e Get, Gets, Scan etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)