You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2019/07/12 20:47:00 UTC

[jira] [Created] (RATIS-622) createLog will block indefinitely if group creation fails

Josh Elser created RATIS-622:
--------------------------------

             Summary: createLog will block indefinitely if group creation fails
                 Key: RATIS-622
                 URL: https://issues.apache.org/jira/browse/RATIS-622
             Project: Ratis
          Issue Type: Task
          Components: LogService
            Reporter: Josh Elser
            Assignee: Josh Elser
             Fix For: 0.4.0


I've seen this bug a few times, but finally got to the bottom of it. The VerificationTool will get to the end, but not exit. The reason is that at least one log has still not yet been created.

* The client will be blocked asking the metadataquorum to create a log
* The metadata leader will have tons of threads blocked on the writeLock

What I just found today was an exception, logged to stderr (not stdout), that was thrown when the group create failed.

However, we don't catch and re-throw this exception on group create failure, but proceed then to try to send a message to the group which failed to be created.

We must catch this failure, try to clean up, and propagate the original createLog exception back to the client.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)