You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2021/02/19 14:08:46 UTC

[accumulo] branch main updated: Stop recovery if tablet is being deleted (#1934)

This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 1052076  Stop recovery if tablet is being deleted (#1934)
1052076 is described below

commit 10520766da991746df86cb94e4acf94a39d00747
Author: Mike Miller <mm...@apache.org>
AuthorDate: Fri Feb 19 09:08:40 2021 -0500

    Stop recovery if tablet is being deleted (#1934)
---
 .../src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
index 1a90b1c..fc8c6fe 100644
--- a/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
+++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
@@ -340,7 +340,8 @@ public class Tablet {
 
     tabletMemory = new TabletMemory(this);
 
-    if (!logEntries.isEmpty()) {
+    // don't bother examining WALs for recovery if Table is being deleted
+    if (!logEntries.isEmpty() && !isBeingDeleted()) {
       TabletLogger.recovering(extent, logEntries);
       final AtomicLong entriesUsedOnTablet = new AtomicLong(0);
       // track max time from walog entries without timestamps