Bad exception on trying to create table in nonexistent keyspace

Bug #1295077 reported by Andrii Ostapenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MagnetoDB
Fix Released
Low
Andrii Ostapenko

Bug Description

tempest.common.rest_client: INFO: Request: POST http://localhost:8080/v1/testtenantid/data/tables
tempest.common.rest_client: DEBUG: Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}
tempest.common.rest_client: DEBUG: Request Body: {"local_secondary_indexes": [{"key_schema": [{"key_type": "HASH", "attribute_name": "forum"}, {"key_type": "RANGE", "attribute_name": "last_posted_by"}], "index_name": "last_posted_by_index", "projection": {"projection_type": "ALL"}}], "key_schema": [{"key_type": "HASH", "attribute_name": "forum"}, {"key_type": "RANGE", "attribute_name": "subject"}], "table_name": "testtempest636329974", "attribute_definitions": [{"attribute_type": "S", "attribute_name": "forum"}, {"attribute_type": "S", "attribute_name": "subject"}, {"attribute_type": "S", "attribute_name": "last_posted_by"}]}
tempest.common.rest_client: INFO: Response Status: 500
tempest.common.rest_client: DEBUG: Response Headers: {'date': 'Thu, 20 Mar 2014 10:56:15 GMT', 'content-length': '149', 'content-type': 'application/x-amz-json-1.0'}
tempest.common.rest_client: DEBUG: Response Body: {"__type":"com.amazonaws.dynamodb.v20111205#InternalServerError","message":"The server encountered an internal error trying to fulfill the request."}

On server side:
2014-03-20 10:56:15.795 2727 ERROR magnetodb.storage.impl.cassandra_impl [-] Error executing query CREATE TABLE "testtenantid"."user_testtempest636329974" ( "user_last_posted_by" text,"user_forum" text,"user_subject" text, "system_attrs" map<text, blob>, "system_attr_types" map<text, text>, "system_attr_exist" set<text>, system_hash text, PRIMARY KEY ("user_forum","user_subject")):Cannot add column family 'user_testtempest636329974' to non existing keyspace 'testtenantid'.

Expected Responce Status: 404

Changed in magnetodb:
importance: Undecided → Low
milestone: none → 2.0.2
milestone: 2.0.2 → next
Changed in magnetodb:
status: New → Fix Released
Changed in magnetodb:
assignee: nobody → Andrei V. Ostapenko (aostapenko)
milestone: next → juno-rc1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.