Clone
selvaganesang <selva.govindarajan@esgyn.com>
committed
on 22 Mar 18
[TRAFODION-2821] Trafodion core code base needs to be thread safe
Java exceptions thrown while calling the java methods from JNI in
Trafodio… Show more
[TRAFODION-2821] Trafodion core code base needs to be thread safe

Java exceptions thrown while calling the java methods from JNI in

Trafodion are stored in the current context. However in a multi-threaded

ESP environment, these exceptions should be stored in thread specific

variable to enable error handling to be thread safe. Otherwise, the JNI

errors could be overwritten by the JNI errors from another thread.

Also streamlined JNI error handling by extending the getExceptionDetails()

methods to log the errors also.

Incorporated error handling in SequenceFileReader JNI methods.

Show less

default + 3 more