creation_date_time in create_table response returns 0

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

Bug Description

2014-03-28 07:07:28,500 Request: POST http://localhost:8480/v1/default_tenant/data/tables
2014-03-28 07:07:28,501 Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}
2014-03-28 07:07:28,501 Request Body: {"key_schema": [{"key_type": "HASH", "attribute_name": "forum"}, {"key_type": "RANGE", "attribute_name": "subject"}], "table_name": "testtempest1520393759", "attribute_definitions": [{"attribute_type": "S", "attribute_name": "forum"}, {"attribute_type": "S", "attribute_name": "subject"}]}
2014-03-28 07:07:29,921 Response Status: 200
2014-03-28 07:07:29,921 Response Headers: {'date': 'Fri, 28 Mar 2014 07:07:29 GMT', 'content-length': '622', 'content-type': 'application/json'}
2014-03-28 07:07:29,921 Response Body: {"table_description": {"key_schema": [{"key_type": "HASH", "attribute_name": "forum"}, {"key_type": "RANGE", "attribute_name": "subject"}], "creation_date_time": 0, "links": [{"href": "http://localhost:8480/v1/default_tenant/data/tables/testtempest1520393759", "rel": "self"}, {"href": "http://localhost:8480/v1/default_tenant/data/tables/testtempest1520393759", "rel": "bookmark"}], "table_name": "testtempest1520393759", "table_size_bytes": 0, "table_status": "ACTIVE", "attribute_definitions": [{"attribute_type": "S", "attribute_name": "forum"}, {"attribute_type": "S", "attribute_name": "subject"}], "item_count": 0}}

Tags: data-api
Changed in magnetodb:
importance: Undecided → Wishlist
milestone: none → next
assignee: nobody → Ilya Sviridov (isviridov)
assignee: Ilya Sviridov (isviridov) → nobody
tags: added: data-api
Changed in magnetodb:
importance: Wishlist → Low
Changed in magnetodb:
milestone: next → none
Nuno Santos (nunosantos)
Changed in magnetodb:
assignee: nobody → Nuno Santos (nunosantos)
Changed in magnetodb:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnetodb (master)

Reviewed: https://review.openstack.org/131546
Committed: https://git.openstack.org/cgit/stackforge/magnetodb/commit/?id=3b1899ee019a3216ae18f974847e05bd52fe0c2e
Submitter: Jenkins
Branch: master

commit 3b1899ee019a3216ae18f974847e05bd52fe0c2e
Author: Nuno Santos <email address hidden>
Date: Wed Oct 29 12:22:50 2014 -0400

    Record and retrieve table creation timestamp

    Extend the magnetodb.table_info table with an additional
    "creation_date_time" column to store the creation timestamp of each table.
    Return the creation timestamp in relevant REST API calls.

    For consistency, renamed the last_updated column to last_update_time_date.

    Closes-Bug: #1298814

    Change-Id: I02b920b866529027655802c4d880f7557329824a

Changed in magnetodb:
status: In Progress → Fix Committed
Changed in magnetodb:
milestone: none → kilo-2
Changed in magnetodb:
status: Fix Committed → Fix Released
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.