---

** [tickets:#2670] log: log agent may crash after recovery fails in log api**

**Status:** accepted
**Milestone:** 5.18.01
**Created:** Tue Nov 07, 2017 03:21 AM UTC by Canh Truong
**Last Updated:** Tue Nov 07, 2017 03:21 AM UTC
**Owner:** Canh Truong


In log api, the client is deleted from the list after recovery fails. But if 
there are other threads that call log api with the same client, the crash may 
happen.
*   if (client->isrecoveryfailed() == true) {
      ScopeLock criticalsection(getdeleteobjsyncmutex);
      RemoveLogClient(&client);
      aisrc = SAAISERRBADHANDLE;
      return aisrc;
    }*


In saLogFinalize api, the client should remove from the list if 
client->is_client_initialized() == false


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to