You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Gunnlaugur Thor Briem (JIRA)" <ji...@apache.org> on 2011/02/16 17:57:24 UTC

[jira] Created: (SOLR-2367) DataImportHandler unit tests are very noisy

DataImportHandler unit tests are very noisy
-------------------------------------------

                 Key: SOLR-2367
                 URL: https://issues.apache.org/jira/browse/SOLR-2367
             Project: Solr
          Issue Type: Improvement
          Components: Build, contrib - DataImportHandler
            Reporter: Gunnlaugur Thor Briem
            Priority: Trivial


Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.

I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Gunnlaugur Thor Briem (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gunnlaugur Thor Briem updated SOLR-2367:
----------------------------------------

    Attachment: SOLR-2367-extend-SolrException.patch

If it helps, here's a patch that makes DataImportHandlerException extend SolrException (and deprecates a constructor that seems not to be used anywhere). All tests pass, but beyond that this has not been tried out at runtime (and maybe the change isn't even appropriate?) ... does this make the exception silencing work?

> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367-extend-SolrException.patch, SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Gunnlaugur Thor Briem (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995466#comment-12995466 ] 

Gunnlaugur Thor Briem commented on SOLR-2367:
---------------------------------------------

Oh, right, much neater.

> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Assigned: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir reassigned SOLR-2367:
---------------------------------

    Assignee: Robert Muir

> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Issue Comment Edited: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Gunnlaugur Thor Briem (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995387#comment-12995387 ] 

Gunnlaugur Thor Briem edited comment on SOLR-2367 at 2/16/11 5:09 PM:
----------------------------------------------------------------------

Patch to address this issue. Creates conf directories under work directory before test runs, and suppresses a warning.

The console noise that remains is some XML parsing failure, which may or may not be meaningful (I don't know) — at least now it is visible. :)

This patch is against branch_3x as of just now.

      was (Author: gthb):
    Patch to address this issue. Creates conf directories under work directory before test runs, and suppresses a warning.

The console noise that remains is some XML parsing failure, which may or may not be meaningful (I don't know) — at least now it is visible. :)
  
> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Priority: Trivial
>         Attachments: SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995479#comment-12995479 ] 

Robert Muir commented on SOLR-2367:
-----------------------------------

Thanks for the followup patch, I will try and see if i can use the exception ignores mechanism now with it... maybe this time it will work.


> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367-extend-SolrException.patch, SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated SOLR-2367:
------------------------------

    Attachment: SOLR-2367.patch

Thanks for the patch. I modified it, to just specify the absolute path to these directories.

this way we don't have to make any useless directories underneath the CWD.

Separately, as far as the exceptions, this is in the test TestErrorHandling, its 'expected exceptions'. I tried to modify this test to use the 'expected exception' logic in SolrTestCaseJ4, etc, but I could not make it work. 

I think this is because DIH throws DataImportHandlerExceptions (extends RuntimeException) instead of ones that extend SolrException?


> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995537#comment-12995537 ] 

Robert Muir commented on SOLR-2367:
-----------------------------------

I tried to use your patch and silence the tests in various ways... I was unsuccessful.

Its a mystery really to me (because I don't understand the code that well) that all
these exceptions are being thrown and nothing is failing... so I'm not sure how to silence them.

Lets commit the first patch and fix 80% of the problem... maybe we can figure out the other exceptions in the future. I'll keep the issue open.

> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367-extend-SolrException.patch, SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Gunnlaugur Thor Briem (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gunnlaugur Thor Briem updated SOLR-2367:
----------------------------------------

    Attachment: SOLR-2367-log-exceptions-through-SolrException.patch

Here goes the remaining 20% — I'm attaching SOLR-2367-log-exceptions-through-SolrException.patch which makes {{DataImportHandler}} log exceptions through {{SolrException.log()}} instead of directly into the logger. This way the exception-ignoring mechanism gets a say in matters. Test output is nice and clean now. I addressed only those logger calls that were emitting exceptions in unit test runs.

Note: this does *not* require {{DataImportHandlerException}} to extend {{SolrException}}, so the earlier SOLR-2367-extend-SolrException.patch is not needed. (Might still be worthwhile, I don't know — but not needed for this fix).

> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>         Attachments: SOLR-2367-extend-SolrException.patch, SOLR-2367-log-exceptions-through-SolrException.patch, SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Resolved: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir resolved SOLR-2367.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
                   3.1

Thanks Gunnlaugur for getting to the bottom of this!

> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Assignee: Robert Muir
>            Priority: Trivial
>             Fix For: 3.1, 4.0
>
>         Attachments: SOLR-2367-extend-SolrException.patch, SOLR-2367-log-exceptions-through-SolrException.patch, SOLR-2367.patch, SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (SOLR-2367) DataImportHandler unit tests are very noisy

Posted by "Gunnlaugur Thor Briem (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gunnlaugur Thor Briem updated SOLR-2367:
----------------------------------------

    Attachment: SOLR-2367.patch

Patch to address this issue. Creates conf directories under work directory before test runs, and suppresses a warning.

The console noise that remains is some XML parsing failure, which may or may not be meaningful (I don't know) — at least now it is visible. :)

> DataImportHandler unit tests are very noisy
> -------------------------------------------
>
>                 Key: SOLR-2367
>                 URL: https://issues.apache.org/jira/browse/SOLR-2367
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build, contrib - DataImportHandler
>            Reporter: Gunnlaugur Thor Briem
>            Priority: Trivial
>         Attachments: SOLR-2367.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Running DataImportHandler unit tests emits a lot of console noise, mainly stacktraces because dataimport.properties can't be written. This makes it hard to scan the output for useful information.
> I'm attaching a patch to get rid of most of the noise by creating the conf directory before test runs so that the properties file write doesn't fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org