checkNotNull(shards, "shards is null");
checkState(tableHandle instanceof NativeTableHandle, "can only commit partitions for native tables");
final long tableId = ((NativeTableHandle) tableHandle).getTableId();
dbi.inTransaction(new VoidTransactionCallback()
{
@Override
protected void execute(Handle handle, TransactionStatus status)
{
ShardManagerDao dao = handle.attach(ShardManagerDao.class);