[fix](regression)Remove useless case which may cause preHeat npe. (#35582) (#35685)

backport https://github.com/apache/doris/pull/35582
Remove useless case which may cause preHeat npe.
This commit is contained in:
Jibing-Li
2024-05-31 10:20:21 +08:00
committed by GitHub
parent 7b271f916d
commit 11a5875283
3 changed files with 8 additions and 18 deletions

View File

@ -199,7 +199,10 @@ public class ColumnStatistic {
columnStatisticBuilder.setUpdatedTime(row.get(13));
return columnStatisticBuilder.build();
} catch (Exception e) {
LOG.warn("Failed to deserialize column statistics.", e);
LOG.warn("Failed to deserialize column statistics. reason: [{}]. Row [{}]", e.getMessage(), row);
if (LOG.isDebugEnabled()) {
LOG.debug(e);
}
return ColumnStatistic.UNKNOWN;
}
}

View File

@ -175,7 +175,10 @@ public class StatisticsCache {
}
putCache(k, c);
} catch (Throwable t) {
LOG.warn("Error when preheating stats cache", t);
LOG.warn("Error when preheating stats cache. reason: [{}]. Row:[{}]", t.getMessage(), r);
if (LOG.isDebugEnabled()) {
LOG.debug(t);
}
}
}
}