cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why does setting LM_A_VENDOR_ID_DECLARE after a checkout fail with a -5 error?

Why does setting LM_A_VENDOR_ID_DECLARE after a checkout fail with a -5 error?

Summary

Why does setting LM_A_VENDOR_ID_DECLARE after a checkout fail with a -5 error?

Question

Why does setting LM_A_VENDOR_ID_DECLARE after a checkout fail with a -5 error?

Answer

The job license refresh is part of LM_A_VENDOR_ID_DECLARE and a few other attribute (e.g. LM_A_DISABLE_ENV).

If test checkout is moved after LM_A_VENDOR_ID_DECLARE attribute setting both checkouts are successful
(LM_A_VENDOR_ID_DECLARE is being set. test checkout out of f1 ... SUCCESS. f1 checked out...)

The failure is not limited to test checkout alone and it holds good with any checkout
(f1 checked out...LM_A_VENDOR_ID_DECLARE is being set., (-5, 414) error).

To avoid this, set LM_A_VENDOR_ID_DECLARE before doing any checkouts.

Additional Information

For example:

lmflex (LM_A_VENDOR_ID_DECLARE is not set)
1.Test_checkout (f1)
<<<=== connection is made here, job has a valid socket, job->daemon->server is populated in connection)
2.// lc_set_attr(LM_A_VENDOR_ID_DECLARE)
<<<==== this attribute is not set
3.Regular checkout (f1)
<<<=== Uses the same connection from first checkout because server conf->server and job->daemon->server (populated in connection) are same.
4.So, subsequent checkouts are successful.

Lmflex 1 ==> (LM_A_VENDOR_ID_DECLARE is SET)
1.Test_checkout (f1)
<<<=== connection is made here, job has a valid socket, job->daemon->server is populated in connection)
2.lc_set_attr(LM_A_VENDOR_ID_DECLARE)
<<<=== this attribute is set
<<<=== the attribute makes the job license to be refreshed so job->daemon->socket is released as part of this
<<<=== the job->socket is still retained
3.Regular checkout ()
<<<=== Since conf->server and job->daemon->server (is null now) are not same, try to attempt a new connection but this job already has a valid connection the connection routine fails with -5.
Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 14, 2018 10:27 PM
Updated by: