giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Edunov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GIRAPH-1076) Race condition in FileTxnSnapLog
Date Tue, 21 Jun 2016 16:40:58 GMT
Sergey Edunov created GIRAPH-1076:
-------------------------------------

             Summary: Race condition in FileTxnSnapLog
                 Key: GIRAPH-1076
                 URL: https://issues.apache.org/jira/browse/GIRAPH-1076
             Project: Giraph
          Issue Type: Bug
            Reporter: Sergey Edunov
            Assignee: Sergey Edunov


org.apache.zookeeper.server.persistence.FileTxnSnapLog has a potential for race condition:

        if (!this.dataDir.exists()) {
            if (!this.dataDir.mkdirs()) {
                throw new IOException("Unable to create data directory "
                        + this.dataDir);
            }
        }

If two threads try to create FileTxnSnapLog simultaneously it can trigger IOException. 
We saw this happening in Giraph where FileTxnSnapLog is being created by PurgeTask created
by DatadirCleanupManager and by InProcessZooKeeperRunner#runFromConfig 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message