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

Lewis John McGibbney commented on NUTCH-896:
--------------------------------------------

This has taken some time to get round to but I am going to embark on the task 
of fixing o.a.n.storage.TestGoraStorage. We have some pretty nasty issues as 
described above, which need to be thought through before a fix is possible. I 
am also leaning towards the first option, having had a look at the tests after 
compiling it makes most sense atm. 
Is it possible for someone to explain why there are different jdbc.url's 
because I am getting the following
{code}
lewis@lewis-01:~/ASF/nutchgora/runtime/local$ bin/nutch junit 
org.apache.nutch.storage.TestGoraStorage
.E.E
Time: 0.931
There were 2 errors:
1) 
testMultithread(org.apache.nutch.storage.TestGoraStorage)org.apache.gora.util.GoraException:
 java.io.IOException: java.sql.SQLTransientConnectionException: 
java.net.ConnectException: Connection refused
        at 
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:110)
        at 
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:118)
        at 
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:87)
        at 
org.apache.nutch.storage.StorageUtils.createDataStore(StorageUtils.java:43)
        at 
org.apache.nutch.storage.TestGoraStorage.setUp(TestGoraStorage.java:47)
Caused by: java.io.IOException: java.sql.SQLTransientConnectionException: 
java.net.ConnectException: Connection refused
        at org.apache.gora.sql.store.SqlStore.getConnection(SqlStore.java:747)
        at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:160)
        at 
org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:81)
        at 
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:104)
        ... 14 more
{code}
which would suggest that there is a configuration error, that a service is not 
listening on a specific port? 
Can we simplify this any in an attempt to get this particular test working 
again.
                
> Gora-based tests need to have their own config files 
> -----------------------------------------------------
>
>                 Key: NUTCH-896
>                 URL: https://issues.apache.org/jira/browse/NUTCH-896
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: nutchgora
>            Reporter: Julien Nioche
>            Assignee: Julien Nioche
>             Fix For: nutchgora
>
>
> The tests extending AbstractNutchTest (Injector, Generator, Fetcher) have 
> hard-coded properties for GORA. It would be better to be able to rely on a 
> file gora.properties used only for the tests, just as we do with the 
> nutch-*.xml config files (see CrawlTestUtil). This way we wouldn't use the 
> configs set in the main /conf file as they could be specific to a given GORA 
> backend e.g. Mysql vs hsqldb. This would also help running the tests with a 
> non-default GORA backend. 
> We need to modify GORA and make the method DataStoreFactory.setProperties 
> public. 

--
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

        

Reply via email to