lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Created) (JIRA)" <>
Subject [jira] [Created] (LUCENE-3900) Make BaseTokenStreamTestCase.checkRandomData more debuggable
Date Wed, 21 Mar 2012 15:59:41 GMT
Make BaseTokenStreamTestCase.checkRandomData more debuggable

                 Key: LUCENE-3900
             Project: Lucene - Java
          Issue Type: Task
            Reporter: Robert Muir

This thing has gotten meaner recently, but if it fails, it can be tough to debug.

I feel like usually we just look at whatever analyzer failed, and completely review the code
and look for any smells until it passes :)

So I think instead we can possibly make this easier if this does something like:
try { 
} catch (Throwable t) { 
  BaseTokenException e = new BaseTokenException(randomInputUsed, randomParamter1, randomParameter2);

  throw e; 

Then you could have a useful exception with the input string that caused the fail,
information about whether or not charfilter/mockreaderwrapper/whatever were used, etc,
as well as the initial problem as root cause.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message