Skip to content

Commit eda55a7

Browse files
morningmanimay
authored andcommitted
Fix bug that unable to delete replica if version is missing (#1585)
If there is a redundant replica on BE which version is missing, the tablet report logic can not drop it correctly.
1 parent 93a3577 commit eda55a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fe/src/main/java/org/apache/doris/master/ReportHandler.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ private static void deleteFromBackend(Map<Long, TTablet> backendTablets,
631631
for (Long tabletId : backendTablets.keySet()) {
632632
TTablet backendTablet = backendTablets.get(tabletId);
633633
for (TTabletInfo backendTabletInfo : backendTablet.getTablet_infos()) {
634-
boolean needDelete = false;
634+
boolean needDelete = true;
635635
if (!foundTabletsWithValidSchema.contains(tabletId)
636636
&& isBackendReplicaHealthy(backendTabletInfo)) {
637637
// if this tablet is not in meta. try adding it.

0 commit comments

Comments
 (0)