ckrintz / appscale

Automatically exported from code.google.com/p/appscale
0 stars 0 forks source link

Fix HyperTable #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Doing a put with a specific key name fails in HyperTable:

 Put accepted 1 entities but returned 0 keys.
Traceback (most recent call last):
  File "/root/appscale/AppServer/google/appengine/ext/webapp/__init__.py",
line 509, in __call__
    handler.post(*groups)
  File "/var/apps/gae-dbtest/app/dbtest.py", line 50, in post
    key = greeting.put()
  File "/root/appscale/AppServer/google/appengine/ext/db/__init__.py", line
794, in put
    return datastore.Put(self._entity)
  File "/root/appscale/AppServer/google/appengine/api/datastore.py", line
189, in Put
    (num_entities, num_keys))
InternalError: Put accepted 1 entities but returned 0 keys.

Will investigate.

Original issue reported on code.google.com by shattere...@gmail.com on 26 Jan 2010 at 7:33

GoogleCodeExporter commented 9 years ago
Hijacking the PBServer reveals the underlying exception is as follows:

----------------------------------------
Exception happened during processing of request from ('128.111.55.209', 53637)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "/root/appscale/AppDB/appscale_server.py", line 886, in do_POST
  File "/root/appscale/AppDB/appscale_server.py", line 648, in put_request
  File "/root/appscale/AppDB/appscale_datastore.py", line 103, in put_entity
  File "/root/appscale/AppDB/appscale_datastore.py", line 186, in hypertable_put_entity
  File "/root/appscale/AppDB/hypertable/py_hypertable.py", line 192, in put_entity
  File
"/root/appscale/AppDB/hypertable/src/hypertable-0.9.2.5-alpha/src/py/ThriftClien
t/gen-py/hyperthrift/gen2/HqlService.py",
line 141, in hql_query
  File
"/root/appscale/AppDB/hypertable/src/hypertable-0.9.2.5-alpha/src/py/ThriftClien
t/gen-py/hyperthrift/gen2/HqlService.py",
line 164, in recv_hql_query
ClientException: ClientException(code=11)
----------------------------------------

Continuing to investigate.

Original comment by shattere...@gmail.com on 31 Jan 2010 at 6:01

GoogleCodeExporter commented 9 years ago
The problem is that the application in question is named gae-dbtest, and the 
dash
causes a HQL parse error when the table is to be created (thus causing the put
afterwards to fail).

Works for now as long as the app name doesn't have a dash in it. Need to find a
solution that supports app names with dashes in it.

Lowered priority since the cause of the problem is now known, reassigned to Raj.

Original comment by shattere...@gmail.com on 31 Jan 2010 at 6:19

GoogleCodeExporter commented 9 years ago
Would like this fixed for the upcoming release, tagging accordingly.

Original comment by shattere...@gmail.com on 31 Mar 2010 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by shattere...@gmail.com on 22 Sep 2010 at 4:16