[Openais] saEvtPublish try again
sdake at mvista.com
Tue Feb 15 14:46:11 PST 2005
I have been working on defect-188 and looking through the library code.
I have one comment and suggest we change how saEvtPublish works.
Today saEvtPublish will retry a publish command and return
SA_AIS_ERR_TIMEOUT if it receives SA_AIS_ERR_TRYAGAIN from the executive
too many times.
Unfortunately this uses nanosleep which only has 1 msec resolution on
2.6, and 10msec resolution 2.4.
I suggest we remove the retry logic and instead let saEvtPublish just
return SA_ERR_TRYAGAIN and let the application deal with it. If the
application wants to drop the message it can, or it can choose to retry.
This is the model by which flow control is expected to occur within the
ais spec and what is used for checkpointing and other services.
More information about the Openais