Skip to content

Commit 53860a5

Browse files
authored
[fix](statistics)Remove aquire table read lock while collect stats for an OlapTable (apache#90)
1 parent 90f6e24 commit 53860a5

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎fe/fe-core/src/main/java/org/apache/doris/statistics/OlapAnalysisTask.java‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,9 @@ public void doExecute() throws Exception {
6464
params.put("colName", String.valueOf(info.colName));
6565
params.put("tblName", String.valueOf(info.tblName));
6666
params.put("sampleExpr", getSampleExpression());
67-
try {
68-
tbl.readLock();
69-
StringSubstitutor stringSubstitutor = new StringSubstitutor(params);
70-
String sql = stringSubstitutor.replace(INSERT_TABLE_STATISTICS);
71-
execSQL(sql);
72-
} finally {
73-
tbl.readUnlock();
74-
}
67+
StringSubstitutor stringSubstitutor = new StringSubstitutor(params);
68+
String sql = stringSubstitutor.replace(INSERT_TABLE_STATISTICS);
69+
execSQL(sql);
7570
}
7671

7772
@VisibleForTesting

0 commit comments

Comments
 (0)