JeremyGrosser / tablesnap

Uses inotify to monitor Cassandra SSTables and upload them to S3
BSD 2-Clause "Simplified" License
181 stars 86 forks source link

Tableslurp fails to restore column families with AttributeError: 'NoneType' object has no attribute 'get_metadata' #59

Closed riccardo-ferrari closed 8 years ago

riccardo-ferrari commented 9 years ago

When restoring column families, tableslurp, may fail throwing:

AttributeError: 'NoneType' object has no attribute 'get_metadata'

The reason is that it arbitrarily picks the first item of the file list to restore. This might be a "sub-folder" such as "backups" or "snapshots" and not bucket leading to the exception and failure.