Currently, loga don't know when logd is ready for a request. In this ticket, we introduce a new message from logd to loga. When logd detect a log agent is up, logd will send the initial clm node status to loga. Loga should wait for that message before sending any request to logd.
This callback could solve the issue with priority of messages in 1396.
In 1396: the agent down message received before the initial client message but it's processed after the initial client message due to the priority of messages.
If the loga wait for the initial clm node status message before sending the initial client message, all messages will be processed in right order. Following is the order of processing messages:
1. logd: agent up message
2. loga: initial clm node status message
3. logd: initial client message
4. logd: final client message
5. logd: agent down message
Diff:
The problem has been solved in ticket 3291 .