private ClientResponseImpl getMispartitionedErrorResponse ( StoredProcedureInvocation task , Procedure catProc , Exception ex ) { Object invocationParameter = null ; try { invocationParameter = task . getParameterAtIndex ( catProc . getPartitionparameter ( ) ) ; } catch ( Exception ex2 ) { } String exMsg = "Unknown" ; if ( ex != null ) { exMsg = ex . getMessage ( ) ; } String errorMessage = "Error sending procedure " + task . getProcName ( ) + " to the correct partition. Make sure parameter values are correct." + " Parameter value " + invocationParameter + ", partition column " + catProc . getPartitioncolumn ( ) . getName ( ) + " type " + catProc . getPartitioncolumn ( ) . getType ( ) + " Message: " + exMsg ; authLog . warn ( errorMessage ) ; ClientResponseImpl clientResponse = new ClientResponseImpl ( ClientResponse . UNEXPECTED_FAILURE , new VoltTable [ 0 ] , errorMessage , task . clientHandle ) ; return clientResponse ; }
Generate a mispartitioned response also log the message .