On Tue, Jul 14, 2009 at 4:09 PM, Ryan Rawson <[email protected]> wrote:
> I believe that we are making truncate in the shell actually issue the
> major_compact itself too now.
>
It does. In trunk the shell does this on 'drop' of a table:
def drop(tableName)
now = Time.now
@formatter.header()
if @admin.isTableEnabled(tableName)
raise IOError.new("Table " + tableName + " is enabled. Disable it
first")
else
@admin.deleteTable(tableName)
major_compact(HConstants::META_TABLE_NAME);
end
@formatter.footer(now)
end
St.Ack