[ 
https://issues.apache.org/jira/browse/FALCON-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14553964#comment-14553964
 ] 

Suhas Vasu commented on FALCON-1228:
------------------------------------

Ideally any directory can exist in /tmp/ of the user, we shouldn't be banking 
on the availability of the file named {{log}} in /tmp/
I suggest we use a file named {{/tmp/falcon-log}}. The chances of name 
conflicts will be drastically reduced.

> testSubscriber test of JMSMessageConsumerTest fails at a particular scenario
> ----------------------------------------------------------------------------
>
>                 Key: FALCON-1228
>                 URL: https://issues.apache.org/jira/browse/FALCON-1228
>             Project: Falcon
>          Issue Type: Improvement
>            Reporter: Suhas Vasu
>            Assignee: Suhas Vasu
>            Priority: Minor
>             Fix For: 0.7
>
>
> the test {{testSubscriber}} fails with the following exception:
> {noformat}
> Running org.apache.falcon.messaging.JMSMessageConsumerTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.323 sec <<< 
> FAILURE! - in org.apache.falcon.messaging.JMSMessageConsumerTest
> testSubscriber(org.apache.falcon.messaging.JMSMessageConsumerTest)  Time 
> elapsed: 1.031 sec  <<< FAILURE!
> java.lang.AssertionError: This should not have thrown an exception.
>       at 
> org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:440)
>       at 
> org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:426)
>       at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:906)
>       at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:887)
>       at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:784)
>       at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:773)
>       at 
> org.apache.falcon.workflow.WorkflowExecutionContext.serialize(WorkflowExecutionContext.java:305)
>       at 
> org.apache.falcon.messaging.JMSMessageConsumerTest.sendMessages(JMSMessageConsumerTest.java:79)
>       at 
> org.apache.falcon.messaging.JMSMessageConsumerTest.testSubscriber(JMSMessageConsumerTest.java:143)
> {noformat}
> Upon debugging, the problem was, I had a directory named {{log}} in /tmp/ and 
> this particular test wants to write to a file at {{/tmp/log}}, as a result of 
> which it threw this exception. 



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

Reply via email to