Details
Description
description
On start up, the TraceServer attempts to ensure that the trace table exists.
connector = serverConfiguration.getInstance().getConnector(principal, at); if (!connector.tableOperations().exists(tableName)) { connector.tableOperations().create(tableName); IteratorSetting setting = new IteratorSetting(10, "ageoff", AgeOffFilter.class.getName()); AgeOffFilter.setTTL(setting, 7 * 24 * 60 * 60 * 1000l); connector.tableOperations().attachIterator(tableName, setting); }
The race condition between checking existence and creating the table ought not matter, since we're in a big loop that is supposed to retry on any problems.
However, that loop expressly catches RuntimeException and TableExistsException is not a RuntimeException so currently the exception propagates and kills the server.
workaround
restart any failed trace servers, since the one that won the race condition should have finished set up properly.
alternatively, manually create the trace table prior to starting any trace servers.
Attachments
Attachments
Issue Links
- is broken by
-
ACCUMULO-3643 Find more bugs with findbugs
- Resolved