Skip to content

Can't recognize original exception when abortTransaction() failed #2981

@chanhyeong

Description

@chanhyeong

If an exception occur in the below code block producer.abortTransaction(), the original Exception e is discarded.

catch (Exception e) {
producer.abortTransaction();
throw e;
}

I recently encountered this case, and I think the original was raised while processing upper line T result = callback.doInOperations(this);.

Is there any way to know about the original exception?
If not, it would be nice add logging of the exception or rethrowing composite exception.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions