You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Paolo Castagna <ca...@googlemail.com> on 2011/11/04 08:51:34 UTC

TestOntDocumentationManager.testReadFailHandler1 ... is this test terribly slow for you as well?

Hi,
I am looking into ERROR and WARN logging messages for JENA-36
therefore I've been executing Jena tests a lot in Eclipse and
via mvn test command line.

Jena test suite is fast (very, very, very good!).

However, I noticed this test is "terribly" slow when I run tests
on my machine: TestOntDocumentationManager.testReadFailHandler1
... as if there was some connection timeout.

I noticed the same test executes in just a few ms on Jenkins [1].

If you know how I could achieve this on my machine, please,
let me know.

Cheers,
Paolo

  [1] 
https://builds.apache.org/view/G-L/view/Jena/job/Jena_Core/org.apache.jena$jena-core/84/testReport/com.hp.hpl.jena.ontology.impl/TestOntDocumentManager/testReadFailHandler1/

Re: TestOntDocumentationManager.testReadFailHandler1 ... is this test terribly slow for you as well?

Posted by Paolo Castagna <ca...@googlemail.com>.
Hi Ian

Ian Dickinson wrote:
>> Is it slow for you as well when you run tests in Eclipse?
> TestOntDocumentManager in Eclipse 'Run as .. Junit test' completes in 
> 1.705s on my machine.

Good to know.

As I said, I noticed the test is super fast on Jenkins too.
So, there must be something related to my machine or the DNS I am using(?)

Paolo

> 
> Ian
> 


Re: TestOntDocumentationManager.testReadFailHandler1 ... is this test terribly slow for you as well?

Posted by Ian Dickinson <ia...@epimorphics.com>.
> Is it slow for you as well when you run tests in Eclipse?
TestOntDocumentManager in Eclipse 'Run as .. Junit test' completes in 
1.705s on my machine.

Ian


Re: TestOntDocumentationManager.testReadFailHandler1 ... is this test terribly slow for you as well?

Posted by Paolo Castagna <ca...@googlemail.com>.
Hi Ian

Ian Dickinson wrote:
> Hi Paolo,
> 
> On 04/11/11 07:51, Paolo Castagna wrote:
>> Hi,
>> I am looking into ERROR and WARN logging messages for JENA-36
>> therefore I've been executing Jena tests a lot in Eclipse and
>> via mvn test command line.
>>
>> Jena test suite is fast (very, very, very good!).
>>
>> However, I noticed this test is "terribly" slow when I run tests
>> on my machine: TestOntDocumentationManager.testReadFailHandler1
>> ... as if there was some connection timeout.
> Well, testing the read fail handler behaviour requires there to be a 
> read failure. At the moment, that test reads from [1], following advice 
> in [2]. But it should fail fast when your DNS fails to resolve the URL, 
> rather than fail slowly by waiting for a non-existant web service.

Is it slow for you as well when you run tests in Eclipse?

> Feel free to disable that test locally while you're iterating your 
> JENA-36 patch - it's fairly stable behaviour that isn't likely to change 
> any time soon.

Yep, I've already done that.

I hope, I'll remember to put it back in :-) (these are those things that
often lead me to make mistakes and commit something I should not commit).

Paolo

> 
> Ian
> 
> [1] http://example.invalid/not/defined
> [2] http://tools.ietf.org/html/rfc2606#section-2


Re: TestOntDocumentationManager.testReadFailHandler1 ... is this test terribly slow for you as well?

Posted by Ian Dickinson <ia...@epimorphics.com>.
Hi Paolo,

On 04/11/11 07:51, Paolo Castagna wrote:
> Hi,
> I am looking into ERROR and WARN logging messages for JENA-36
> therefore I've been executing Jena tests a lot in Eclipse and
> via mvn test command line.
>
> Jena test suite is fast (very, very, very good!).
>
> However, I noticed this test is "terribly" slow when I run tests
> on my machine: TestOntDocumentationManager.testReadFailHandler1
> ... as if there was some connection timeout.
Well, testing the read fail handler behaviour requires there to be a 
read failure. At the moment, that test reads from [1], following advice 
in [2]. But it should fail fast when your DNS fails to resolve the URL, 
rather than fail slowly by waiting for a non-existant web service.

Feel free to disable that test locally while you're iterating your 
JENA-36 patch - it's fairly stable behaviour that isn't likely to change 
any time soon.

Ian

[1] http://example.invalid/not/defined
[2] http://tools.ietf.org/html/rfc2606#section-2