accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z11373 <z11...@outlook.com>
Subject Re: exception from thrift
Date Tue, 14 Feb 2017 22:22:45 GMT
Thanks Marc for quick response.
The code throws exception when its calling flush(), and I was told since we
are using older version of Thrift C++ files, complete exception info may not
be returned. Here is snippet of my code to catch it:

        try {
            writer.addMutation(mutation);
            writer.flush();
        }
        catch (const accumulo::AccumuloSecurityException& ase) {
            std::cerr << stage << " Hit accumulo security exception: " <<
ase.msg << std::endl;
        }

and "org.apache.accumulo.core.client.MutationsRejectedException: #
constraint violations : 0  security codes: {}  # server errors 0 #
exceptions 1" is the only exception message I got.


I can write code to retry when hitting that exception, do I just retry
calling flush(), or I need to re-create the batch writer object (and add
mutation again)?

Thanks,
Z



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

Mime
View raw message