accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Newton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1176) authorization error in random walk tests
Date Wed, 13 Mar 2013 13:02:12 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13601091#comment-13601091
] 

Eric Newton commented on ACCUMULO-1176:
---------------------------------------

I think this was due to a delete table very close to the time of the write:

{noformat}
03:37:17,161 [tableOps.CloneMetadata] INFO : Cloning ctt_001 with tableId b9n from srcTableId
b9f
...
03:37:33,278 [tableOps.Utils] INFO : table b9n (3f90bbf88ff397e6) unlocked for write
03:37:33,278 [tableOps.CleanUp] DEBUG: Deleted table b9n
03:37:33,523 [randomwalk.Framework] ERROR: Error during random walk
{noformat}

The client sampled the list of available tables, saw that ctt_001 existed, and by the time
it did a batch write, the root user permission was missing from the table since it was deleted.

I'm not sure how to fix this: the removal of the node in zookeeper is a valid state. There's
a race between the existence of the table id and the missing user permission.  There's a race
between the client's check for tables and the tablet server's table list.

I could have the test deal with the race: find the authorization failure, wait a second, and
check for the table's existence.  Unfortunately, there's *another* race condition: the table
might be re-created.

                
> authorization error in random walk tests
> ----------------------------------------
>
>                 Key: ACCUMULO-1176
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1176
>             Project: Accumulo
>          Issue Type: Bug
>          Components: test
>         Environment: 10-node test cluster, running 1.4.3 branch, random walk with the
All.xml configuration, but without the Security.xml module, with agitation.
>            Reporter: Eric Newton
>            Assignee: John Vines
>             Fix For: 1.4.3
>
>
> After running random walk for 7.5 hours, saw the following failure on one walker:
> {noformat}
> 13 03:37:33,522 [randomwalk.Module] DEBUG: Properties for node: ct.BatchWrite
> 13 03:37:33,523 [randomwalk.Module] DEBUG:   teardown: 
> 13 03:37:33,523 [randomwalk.Module] DEBUG:   maxSec: 
> 13 03:37:33,523 [randomwalk.Module] DEBUG:   maxHops: 
> 13 03:37:33,523 [randomwalk.Module] DEBUG: Properties for node: Concurrent.xml
> 13 03:37:33,523 [randomwalk.Module] DEBUG:   teardown: 
> 13 03:37:33,523 [randomwalk.Module] DEBUG:   maxSec: 
> 13 03:37:33,523 [randomwalk.Module] DEBUG:   maxHops: 
> 13 03:37:33,523 [randomwalk.Framework] ERROR: Error during random walk
> java.lang.Exception: Error running node Concurrent.xml
>         at org.apache.accumulo.server.test.randomwalk.Module.visit(Module.java:259)
>         at org.apache.accumulo.server.test.randomwalk.Framework.run(Framework.java:61)
>         at org.apache.accumulo.server.test.randomwalk.Framework.main(Framework.java:114)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.accumulo.start.Main$1.run(Main.java:89)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.Exception: Error running node ct.BatchWrite
>         at org.apache.accumulo.server.test.randomwalk.Module.visit(Module.java:259)
>         at org.apache.accumulo.server.test.randomwalk.Module.visit(Module.java:251)
>         ... 8 more
> Caused by: org.apache.accumulo.core.client.MutationsRejectedException: # constraint violations
: 0  # authorization failures : 1  # server errors 0 # exceptions 0
>         at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.checkForFailures(TabletServerBatchWriter.java:454)
>         at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.close(TabletServerBatchWriter.java:301)
>         at org.apache.accumulo.core.client.impl.BatchWriterImpl.close(BatchWriterImpl.java:51)
>         at org.apache.accumulo.server.test.randomwalk.concurrent.BatchWrite.visit(BatchWrite.java:61)
>         at org.apache.accumulo.server.test.randomwalk.Module.visit(Module.java:251)
>         ... 9 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message