[ https://issues.apache.org/jira/browse/HDFS-3634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429556#comment-13429556 ]
Andy Isaacson commented on HDFS-3634: ------------------------------------- {code} +void sleepNoSig(int sec) +{ + struct timespec req, rem; + + req.tv_sec = sec; + req.tv_nsec = 0; + memset(&rem, 0, sizeof(rem)); + nanosleep(&req, &rem); +} {code} Is this supposed to resume the sleep if interrupted? If so we need a loop. If not, we can drop {{rem}} and just {{nanosleep(&req, 0);}}. > Add self-contained, mavenized fuse_dfs test > ------------------------------------------- > > Key: HDFS-3634 > URL: https://issues.apache.org/jira/browse/HDFS-3634 > Project: Hadoop HDFS > Issue Type: Test > Components: fuse-dfs > Affects Versions: 2.1.0-alpha > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Priority: Minor > Attachments: HDFS-3634.002.patch, HDFS-3634.003.patch > > > We should have a self-contained, mavenized FUSE unit test which runs as part > of the normal build and can detect problems. Of course, because FUSE is an > optional build component, the unit test won't run unless the user has FUSE > installed. However, it would be very useful in improving the quality of > fuse_dfs and detecting regressions. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira