By design, we typically don't send user data back in error messages so that we are not leaking data into a client side log or something.
On Mon, Oct 23, 2023 at 8:43 AM Logan Jones <lo...@codescratch.com> wrote: > Hi Ed / Josef: > > Yes, the violation summaries are available, but I was hoping that the > actual mutations objects would be available somewhere on the exception. > After looking at this more, I'm fairly certain that the mutations that > caused the violation are not really available which is unfortunate for me. > > My use case is basically, I want to save those mutations off for further > inspection / replay once the violation has been resolved. > > Thanks, > > - Logan > > On Mon, Oct 23, 2023 at 7:45 AM dev1 <d...@etcoleman.com> wrote: > > > If you catch the MutationRejectedException you can get the violations. > > Something like: > > > > } catch (MutationsRejectedException mex) { > > log.warn("Failed to update reference for table: " + tableName); > > log.warn("Constraint violations: {}", > > mex.getConstraintViolationSummaries()); > > throw new IllegalStateException("Failed to process table: " + > > tableName, mex); > > } > > > > Ed Coleman > > > > From: Josef Roehrl <josef.roe...@fuseforward.com.INVALID> > > Date: Monday, October 23, 2023 at 7:40 AM > > To: dev@accumulo.apache.org <dev@accumulo.apache.org> > > Subject: Re: MutationsRejectedException > > Hi Logan, > > > > If there was a constraint violation portion of the exception (the > > exception was not truncated), did that not provide enough info? > > > > Could you post the exception? That always helps 🙂 > > > > Josef Roehrl > > FuseForward | Senior Architect - Professional Services > > [ > > > https://fuseforward.atlassian.net/wiki/download/attachments/512327681/image001.png?version=1&modificationDate=1537397840684&cacheVersion=1&api=v2 > > ] > > > > Website< > > > https://fuseforward.com/?utm_source=Email%20Signature&utm_medium=email%20signature&utm_campaign=email%20signature > > > > | Newsletter< > > > https://fuseforward.com/subscribe-to-our-newsletter/?utm_source=Email%20Signature&utm_medium=Email%20Signature&utm_campaign=Email%20Signature > > > > | Twitter<https://twitter.com/fuseforward> | LinkedIn< > > https://www.linkedin.com/company/fuseforward/?originalSubdomain=ca> > > > > ________________________________ > > From: Logan Jones <lo...@codescratch.com> > > Sent: Friday, October 20, 2023 6:51 PM > > To: dev@accumulo.apache.org <dev@accumulo.apache.org> > > Subject: MutationsRejectedException > > > > Hello everyone: > > > > When a BatchWriter receives a MutationsRejectedException, is there any > way > > to tell exactly what mutations failed? As far as I can tell, this > > information does not seem to be available on the exception. Is this true? > > > > Thanks in advance, > > > > - Logan > > >