For file queries, add new log messages and better handling of Impala metadata refresh