You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2014/11/25 05:15:14 UTC

[jira] [Updated] (ACCUMULO-3365) TraceServer dies if trace table is offline during constructor

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

Josh Elser updated ACCUMULO-3365:
---------------------------------
    Description: 
The constructor of TraceServer

{code}
writer = new AtomicReference<BatchWriter>(this.connector.createBatchWriter(table, new BatchWriterConfig().setMaxLatency(5, TimeUnit.SECONDS)));
{code}

The BatchWriter will throw a RuntimeException if the table happens to be offline. The TraceServer should be able to handle this.

{noformat}
Thread "org.apache.accumulo.tracer.TraceServer" died Table trace (1) is offline
org.apache.accumulo.core.client.TableOfflineException: Table trace (1) is offline
        at org.apache.accumulo.core.client.impl.ConnectorImpl.getTableId(ConnectorImpl.java:86)
        at org.apache.accumulo.core.client.impl.ConnectorImpl.createBatchWriter(ConnectorImpl.java:128)
        at org.apache.accumulo.tracer.TraceServer.<init>(TraceServer.java:228)
        at org.apache.accumulo.tracer.TraceServer.main(TraceServer.java:303)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.accumulo.start.Main$1.run(Main.java:141)
        at java.lang.Thread.run(Thread.java:745)
{noformat}

  was:
The constructor of TraceServer

{code}
writer = new AtomicReference<BatchWriter>(this.connector.createBatchWriter(table, new BatchWriterConfig().setMaxLatency(5, TimeUnit.SECONDS)));
{code}

The BatchWriter will throw a RuntimeException if the table happens to be offline. The TraceServer should be able to handle this.


> TraceServer dies if trace table is offline during constructor
> -------------------------------------------------------------
>
>                 Key: ACCUMULO-3365
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3365
>             Project: Accumulo
>          Issue Type: Bug
>          Components: trace
>    Affects Versions: 1.6.1
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Minor
>             Fix For: 1.6.2, 1.7.0
>
>
> The constructor of TraceServer
> {code}
> writer = new AtomicReference<BatchWriter>(this.connector.createBatchWriter(table, new BatchWriterConfig().setMaxLatency(5, TimeUnit.SECONDS)));
> {code}
> The BatchWriter will throw a RuntimeException if the table happens to be offline. The TraceServer should be able to handle this.
> {noformat}
> Thread "org.apache.accumulo.tracer.TraceServer" died Table trace (1) is offline
> org.apache.accumulo.core.client.TableOfflineException: Table trace (1) is offline
>         at org.apache.accumulo.core.client.impl.ConnectorImpl.getTableId(ConnectorImpl.java:86)
>         at org.apache.accumulo.core.client.impl.ConnectorImpl.createBatchWriter(ConnectorImpl.java:128)
>         at org.apache.accumulo.tracer.TraceServer.<init>(TraceServer.java:228)
>         at org.apache.accumulo.tracer.TraceServer.main(TraceServer.java:303)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.accumulo.start.Main$1.run(Main.java:141)
>         at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)