cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sumit thakur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3138) PropertyFileSnitch's ResourceWatcher fails because it uses FBUtilities.resourceToFile(..) while PropertyFileSnitch uses classloader.getResourceAsStream(..)
Date Fri, 13 Sep 2013 08:02:02 GMT

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

sumit thakur commented on CASSANDRA-3138:
-----------------------------------------

Hello All,

Same issue in apache cassandra 1.1.5

ERROR [ScheduledTasks:1] 2013-09-12 17:34:55,268 ResourceWatcher.java (line 67) Timed run
of class org.apache.cassandra.locator.PropertyFileSnitch$1 failed.
org.apache.cassandra.config.ConfigurationException: unable to locate cassandra-topology.properties
	at org.apache.cassandra.utils.FBUtilities.resourceToFile(FBUtilities.java:327)
	at org.apache.cassandra.utils.ResourceWatcher$WatchedResource.run(ResourceWatcher.java:57)
	at org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:79)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
                
> PropertyFileSnitch's ResourceWatcher fails because it uses FBUtilities.resourceToFile(..)
while PropertyFileSnitch uses classloader.getResourceAsStream(..)
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3138
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3138
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>            Reporter: Mck SembWever
>            Assignee: Mck SembWever
>            Priority: Minor
>             Fix For: 0.8.6
>
>         Attachments: CASSANDRA-3138.patch
>
>
> Resource files are not necessarily plain files. They could be inside a jar file. See
CASSANDRA-2036
> This will cause {noformat}RROR 24:15,806 ResourceWatcher$WatchedResource: Timed run of
class org.apache.cassandra.locator.PropertyFileSnitch$1 failed.
> org.apache.cassandra.config.ConfigurationException: unable to locate cassandra-topology.properties
> 	at org.apache.cassandra.utils.FBUtilities.resourceToFile(FBUtilities.java:467)
> 	at org.apache.cassandra.utils.ResourceWatcher$WatchedResource.run(ResourceWatcher.java:57)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> 	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662){noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message