Handle missing table exceptions #12

Closed
sebdah opened this Issue Apr 5, 2013 · 0 comments

Projects

None yet

1 participant

@sebdah
Owner
sebdah commented Apr 5, 2013

Stack trace:

Traceback (most recent call last):
  File "./dynamic-dynamodb", line 7, in <module>
    main.main()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/main.py", line 174, in main
    dynamic_ddb.run()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 148, in run
    self.ensure_proper_provisioning()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 160, in ensure_proper_provisioning
    read_usage_percent = self._get_consumed_reads_percentage()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 322, in _get_consumed_reads_percentage
    float(consumed_reads) / float(self._get_provisioned_read_units()) * 100))
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 365, in _get_provisioned_read_units
    table = self.ddb_connection.get_table(self.table_name)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer2.py", line 360, in get_table
    response = self.layer1.describe_table(name)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 217, in describe_table
    return self.make_request('DescribeTable', json_input)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 118, in make_request
    retry_handler=self._retry_handler)
  File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 845, in _mexe
    status = retry_handler(response, i, next_sleep)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 158, in _retry_handler
    data)
boto.exception.DynamoDBResponseError: DynamoDBResponseError: 400 Bad Request
{u'message': u'Requested resource not found: Table: prod-sssions-201304 not found', u'__type': u'com.amazonaws.dynamodb.v20111205#ResourceNotFoundException'}
@sebdah sebdah was assigned Apr 5, 2013
@sebdah sebdah closed this Apr 5, 2013
@sebdah sebdah added a commit that referenced this issue Apr 5, 2013
@sebdah Updated release info with #12 f440490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment