Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HYPERCLIENT_UNKNOWNATTR (8520) status issue #37

Closed
agiz opened this issue May 9, 2012 · 1 comment
Closed

HYPERCLIENT_UNKNOWNATTR (8520) status issue #37

agiz opened this issue May 9, 2012 · 1 comment

Comments

@agiz
Copy link

agiz commented May 9, 2012

Hello.

I am trying to put together a simple demo application using hyperdex C api. As a guidance I am using code from python hyperclient. You can see my application at https://github.com/agiz/hyperdex-c-test/blob/master/test_hyperdex.c. What it does is initialize a hyperclient instance and tries to create attributes of an object.

Before running this applications I followed instructions on how to create space described in http://hyperdex.org/doc/tutorial/. I do not know if that is important or not but when creating a space using hyperdex-coordinator-control --host 127.0.0.1 --port 6970 add-space << EOF and after typing EOF the program does not exits and just stalls. After an hour or two I have interrupted this program and received following output:

^CTraceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.6/site-packages/hypercoordinator/client.py", line 163, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/python2.6/site-packages/hypercoordinator/client.py", line 158, in main
    return args.func(args)
  File "/usr/lib/python2.6/site-packages/hypercoordinator/client.py", line 83, in add_space
    return send_msg(args.host, args.port, 'add-space', data)
  File "/usr/lib/python2.6/site-packages/hypercoordinator/client.py", line 46, in send_msg
    d = s.recv(4096)
KeyboardInterrupt

I do however think that space does get created nonetheless.
This is reported by hyperdex-coordinator when creating the space:

INFO:root:Coordinator started
INFO:root:new host uses ID Unidentified(127.0.0.1, 35361)
INFO:root:Unidentified(127.0.0.1, 35361) identified by Instance(addr='127.0.0.2', inport=43296, inver=1, outport=35622, outver=1)
DEBUG:root:Instance(addr='127.0.0.2', inport=43296, inver=1, outport=35622, outver=1) acked config 0
INFO:root:created new space "phonebook"
DEBUG:root:Instance(addr='127.0.0.2', inport=43296, inver=1, outport=35622, outver=1) acked config 1

When I run my test application, test_hyperdex , status reports 8520 -- HYPERCLIENT_UNKNOWNATTR.

This is reported by hyperdex-coordinator when I run my program.

INFO:root:new host uses ID Unidentified(127.0.0.1, 35467)
INFO:root:Unidentified(127.0.0.1, 35467) identified by Client(127.0.0.1, 35467)

I am using CentOS 6.2, kernel 2.6.32-220.13.1.el6.x86_64. I have built libe, libpo6 and HyperDex using github sources with gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC). Before running autoreconf -i I had to set export LC_ALL=C and change AC_PREREQ([2.66]) to AC_PREREQ([2.63]). When running autoreconf -i in HyperDex for the first time I received:

configure.ac:27: error: possibly undefined macro: AC_PROG_JAR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:28: error: possibly undefined macro: AC_PROG_JAVAC
configure.ac:29: error: possibly undefined macro: AC_JNI_INCLUDE_DIR
autoreconf: /usr/bin/autoconf failed with exit status: 1

but running it again reported no errors. I hope these errors are meaningless since I did not use any java bindings.

If there is anything more you need to replicate/solve this issue please let me know.

Regards, Ziga

@agiz
Copy link
Author

agiz commented May 11, 2012

It was my fault. I did not allocate buffers for any of those attribute values. I am able to successfully insert object in hyperdex now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant