- **assigned_to**: Vu Minh Nguyen --> Canh Truong
---
** [tickets:#2411] log: agent gets TIMEOUT during failover**
**Status:** assigned
**Milestone:** 5.17.08
**Created:** Tue Apr 04, 2017 07:44 AM UTC by Vu Minh Nguyen
**Last Updated:** Mon Apr 10, 2017 01:40 PM UTC
**Owner:** Canh Truong
During testing, e.g: use saflogger in loop to send a log record to log service
during failover, we frequently encounter `saLogStreamClose()` or
`saLogFinalize()` get `SA_AIS_ERR_TIMEOUT` as active LOG service is shutdown
while agent requests remain in mailbox.
Here is the analysis:
The `close` request has come to active LOG, means it is put to the mailbox but
not yet pick up out for processing yet as LOGsv is just getting `TERM` signal,
then short time later, it does kill itself.
As the result, the LOG agent did not get the ACK response for sync `close`
request, and after 10s expired,
MDS returns TIMEOUT back to the log agent.
The solution for this is that, before calling `diamon_exit`, iterate all items
in its mailbox, if that is agent request, send acks to agent before going to
shutdown.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets