Skip to content

Commit

Permalink
branch-3.0: [fix](mtmv)Release snapshots to avoid keeping references …
Browse files Browse the repository at this point in the history
…in MTMVTask #47149 (#47258)

Cherry-picked from #47149

Co-authored-by: zhangdong <[email protected]>
  • Loading branch information
github-actions[bot] and zddr authored Feb 11, 2025
1 parent 3a7d873 commit 95ad500
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public enum MTMVTaskRefreshMode {
private StmtExecutor executor;
private Map<String, MTMVRefreshPartitionSnapshot> partitionSnapshots;

private final Map<MvccTableInfo, MvccSnapshot> snapshots = Maps.newHashMap();
private Map<MvccTableInfo, MvccSnapshot> snapshots = Maps.newHashMap();

public MTMVTask() {
}
Expand Down Expand Up @@ -491,6 +491,9 @@ protected void closeOrReleaseResources() {
if (null != partitionSnapshots) {
partitionSnapshots = null;
}
if (null != snapshots) {
snapshots = null;
}
}

private Map<TableIf, String> getIncrementalTableMap() throws AnalysisException {
Expand Down

0 comments on commit 95ad500

Please sign in to comment.