[ 
https://issues.apache.org/jira/browse/ACCUMULO-4151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeffrey Manno resolved ACCUMULO-4151.
-------------------------------------
    Resolution: Cannot Reproduce

Confirmed this does not happen on accumulo 2.x. TableNotFound is thrown 
correctly when a table is in the processĀ  of being deleted when deleteRows is 
called.

> DeleteRows failed when running concurrently with delete table
> -------------------------------------------------------------
>
>                 Key: ACCUMULO-4151
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4151
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Keith Turner
>            Priority: Minor
>
> Saw this bug while running random walk against 1.7.1 RC2.  A random walker 
> failed with the following error.  Based on the master a logs I think the 
> table was being deleted when deleteRows was called.   DeleteRows should just 
> throw a table not found exception in this case.
> {noformat}
> 24 02:44:37,202 [randomwalk.Framework] ERROR: Error during random walk
> java.lang.Exception: Error running node Concurrent.xml
>         at org.apache.accumulo.test.randomwalk.Module.visit(Module.java:346)
>         at 
> org.apache.accumulo.test.randomwalk.Framework.run(Framework.java:59)
>         at 
> org.apache.accumulo.test.randomwalk.Framework.main(Framework.java:119)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at org.apache.accumulo.start.Main$2.run(Main.java:130)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.Exception: Error running node ct.DeleteRange
>         at org.apache.accumulo.test.randomwalk.Module.visit(Module.java:346)
>         at org.apache.accumulo.test.randomwalk.Module$1.call(Module.java:283)
>         at org.apache.accumulo.test.randomwalk.Module$1.call(Module.java:278)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at 
> org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)
>         ... 1 more
> Caused by: org.apache.accumulo.core.client.AccumuloException: Internal error 
> processing waitForFateOperation
>         at 
> org.apache.accumulo.core.client.impl.TableOperationsImpl.doFateOperation(TableOperationsImpl.java:303)
>         at 
> org.apache.accumulo.core.client.impl.TableOperationsImpl.doFateOperation(TableOperationsImpl.java:261)
>         at 
> org.apache.accumulo.core.client.impl.TableOperationsImpl.doTableFateOperation(TableOperationsImpl.java:1427)
>         at 
> org.apache.accumulo.core.client.impl.TableOperationsImpl.deleteRows(TableOperationsImpl.java:512)
>         at 
> org.apache.accumulo.test.randomwalk.concurrent.DeleteRange.visit(DeleteRange.java:58)
>         ... 9 more
> Caused by: org.apache.thrift.TApplicationException: Internal error processing 
> waitForFateOperation
>         at 
> org.apache.thrift.TApplicationException.read(TApplicationException.java:111)
>         at 
> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:71)
>         at 
> org.apache.accumulo.core.master.thrift.FateService$Client.recv_waitForFateOperation(FateService.java:174)
>         at 
> org.apache.accumulo.core.master.thrift.FateService$Client.waitForFateOperation(FateService.java:159)
>         at 
> org.apache.accumulo.core.client.impl.TableOperationsImpl.waitForFateOperation(TableOperationsImpl.java:233)
>         at 
> org.apache.accumulo.core.client.impl.TableOperationsImpl.doFateOperation(TableOperationsImpl.java:275)
>         ... 13 more
> {noformat}
> Below are the master logs.  The first line is a delete table operation 
> unlocking the table ID.  Then delete rows tried to run.
> {noformat}
> 2016-02-24 02:44:37,171 [tableOps.Utils] INFO : table 4k (19a98e4cdac2e9a6) 
> unlocked for write
> 2016-02-24 02:44:37,173 [tableOps.Utils] INFO : namespace +default 
> (19a98e4cdac2e9a6) unlocked for read
> 2016-02-24 02:44:37,179 [fate.Fate] WARN : Failed to execute Repo, 
> tid=11fba34984c76dda
> java.lang.IllegalArgumentException: Table with id 4k does not exist
>         at 
> org.apache.accumulo.core.client.impl.Tables.getNamespaceId(Tables.java:239)
>         at 
> org.apache.accumulo.master.tableOps.TableRangeOp.isReady(TableRangeOp.java:47)
>         at 
> org.apache.accumulo.master.tableOps.TableRangeOp.isReady(TableRangeOp.java:35)
>         at 
> org.apache.accumulo.master.tableOps.TraceRepo.isReady(TraceRepo.java:47)
>         at org.apache.accumulo.fate.Fate$TransactionRunner.run(Fate.java:71)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at 
> org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)
>         at java.lang.Thread.run(Thread.java:745)
> 2016-02-24 02:44:37,184 [fate.Fate] INFO : Updated status for Repo with 
> tid=11fba34984c76dda to FAILED_IN_PROGRESS
> 2016-02-24 02:44:37,185 [fate.Fate] WARN : Failed to undo Repo, 
> tid=11fba34984c76dda
> java.lang.IllegalArgumentException: Table with id 4k does not exist
>         at 
> org.apache.accumulo.core.client.impl.Tables.getNamespaceId(Tables.java:239)
>         at 
> org.apache.accumulo.master.tableOps.TableRangeOp.undo(TableRangeOp.java:89)
>         at 
> org.apache.accumulo.master.tableOps.TableRangeOp.undo(TableRangeOp.java:35)
>         at 
> org.apache.accumulo.master.tableOps.TraceRepo.undo(TraceRepo.java:70)
>         at org.apache.accumulo.fate.Fate$TransactionRunner.undo(Fate.java:146)
>         at 
> org.apache.accumulo.fate.Fate$TransactionRunner.processFailed(Fate.java:122)
>         at org.apache.accumulo.fate.Fate$TransactionRunner.run(Fate.java:67)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at 
> org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)
>         at java.lang.Thread.run(Thread.java:745)
> 2016-02-24 02:44:37,192 [master.MasterClientServiceHandler] ERROR: Table with 
> id 4k does not exist
> java.lang.IllegalArgumentException: Table with id 4k does not exist
>         at 
> org.apache.accumulo.core.client.impl.Tables.getNamespaceId(Tables.java:239)
>         at 
> org.apache.accumulo.master.tableOps.TableRangeOp.isReady(TableRangeOp.java:47)
>         at 
> org.apache.accumulo.master.tableOps.TableRangeOp.isReady(TableRangeOp.java:35)
>         at 
> org.apache.accumulo.master.tableOps.TraceRepo.isReady(TraceRepo.java:47)
>         at org.apache.accumulo.fate.Fate$TransactionRunner.run(Fate.java:71)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to