accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z11373 <z11...@outlook.com>
Subject hasNext throws weird exception
Date Tue, 17 Nov 2015 19:00:17 GMT
The code does following:
+ Create scanner and pass column visibility CV (user indeed has that authz)
+ Set  ranges for that scanner
+ For loop code:
   for (Map.Entry<Key, Value> entry : scanner) {
      // get the entry's key and perform additional work
   }

The weird thing is this exception is thrown, and it points to exactly the
line where that for () statement is. I obsfucated the code below with xxx,
but it is real exception. The user indeed HAS that authz, in fact it works
fine in other scan code. Even more weird, the code inside for loop also
executed fine (as I can see the output).
Any idea? Is this a known issue?


Thanks,
Z


[ERROR] 2015-11-17 18:47:02,858 xxx lambda$deleteAll$0 - Exception at
deleteAll:
 java.lang.RuntimeException:
org.apache.accumulo.core.client.AccumuloSecurityException: Error
BAD_AUTHORIZATIONS for user foo on table T1(ID:f) - The user does not have
the specified authorizations assigned
	at
org.apache.accumulo.core.client.impl.ScannerIterator.hasNext(ScannerIterator.java:187)
	at xxx.deleteAllItems(xxx.java:313)
	at xxx.lambda$deleteAll$0(xxx.java:214)
	at xxx$$Lambda$3/276735975.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.accumulo.core.client.AccumuloSecurityException: Error
BAD_AUTHORIZATIONS for user foo on table T2(ID:f) - The user does not have
the specified authorizations assigned
	at
org.apache.accumulo.core.client.impl.ThriftScanner.scan(ThriftScanner.java:458)
	at
org.apache.accumulo.core.client.impl.ThriftScanner.scan(ThriftScanner.java:279)
	at
org.apache.accumulo.core.client.impl.ScannerIterator$Reader.run(ScannerIterator.java:84)
	at
org.apache.accumulo.core.client.impl.ScannerIterator.hasNext(ScannerIterator.java:177)
	... 4 more
Caused by: ThriftSecurityException(user:foo, code:BAD_AUTHORIZATIONS)
	at
org.apache.accumulo.core.tabletserver.thrift.TabletClientService$startScan_result$startScan_resultStandardScheme.read(TabletClientService.java:6548)
	at
org.apache.accumulo.core.tabletserver.thrift.TabletClientService$startScan_result$startScan_resultStandardScheme.read(TabletClientService.java:6525)
	at
org.apache.accumulo.core.tabletserver.thrift.TabletClientService$startScan_result.read(TabletClientService.java:6448)
	at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
	at
org.apache.accumulo.core.tabletserver.thrift.TabletClientService$Client.recv_startScan(TabletClientService.java:228)
	at
org.apache.accumulo.core.tabletserver.thrift.TabletClientService$Client.startScan(TabletClientService.java:204)
	at
org.apache.accumulo.core.client.impl.ThriftScanner.scan(ThriftScanner.java:403)
	... 7 more



--
View this message in context: http://apache-accumulo.1065345.n5.nabble.com/hasNext-throws-weird-exception-tp15586.html
Sent from the Developers mailing list archive at Nabble.com.

Mime
View raw message