Skip to content

Commit

Permalink
[refactor](delete) refactor FE DeleteHandler related logic (apache#25497
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TangSiyang2001 authored Oct 20, 2023
1 parent a5300d3 commit ef6bf06
Show file tree
Hide file tree
Showing 8 changed files with 649 additions and 790 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ public long getReplicaCount() {
return replicaCount;
}

public long getAllReplicaCount() {
long replicaCount = 0;
for (MaterializedIndex mIndex : getMaterializedIndices(IndexExtState.ALL)) {
replicaCount += mIndex.getReplicaCount();
}
return replicaCount;
}

public boolean hasData() {
// The fe unit test need to check the selected index id without any data.
// So if set FeConstants.runningUnitTest, we can ensure that the number of partitions is not empty,
Expand Down
748 changes: 38 additions & 710 deletions fe/fe-core/src/main/java/org/apache/doris/load/DeleteHandler.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ public class DeleteInfo implements Writable, GsonPostProcessable {
@SerializedName(value = "partitionName")
private String partitionName;

public DeleteInfo() {
this.deleteConditions = Lists.newArrayList();
}

public DeleteInfo(long dbId, long tableId, String tableName, List<String> deleteConditions) {
this.dbId = dbId;
this.tableId = tableId;
Expand Down
Loading

0 comments on commit ef6bf06

Please sign in to comment.