chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guille -bisho- (JIRA)" <>
Subject [jira] Commented: (CHUKWA-463) Improve pattern for getTag() method
Date Thu, 11 Mar 2010 16:45:27 GMT


Guille -bisho- commented on CHUKWA-463:

There is still one test failing:

Testcase: testFSMBuilder_JobHistory020(org.apache.hadoop.chukwa.analysis.salsa.fsm.TestFSMBuilder):
Error running FSMBuilder: Job failed!
junit.framework.AssertionFailedError: Error running FSMBuilder: Job failed!
	at org.apache.hadoop.chukwa.analysis.salsa.fsm.TestFSMBuilder.testFSMBuilder_JobHistory020(

I don't know why, because the cluster is extracted correctly. I will continue with this on
tuesday, I'm on a travel. If anyone know what could be happening here, please tell me.

> Improve pattern for getTag() method
> -----------------------------------
>                 Key: CHUKWA-463
>                 URL:
>             Project: Hadoop Chukwa
>          Issue Type: Improvement
>          Components: Data Processors
>            Reporter: Guille -bisho-
>         Attachments: improve_tags_pattern-v2.diff, improve_tags_pattern.diff
> The current pattern used for extracting tags from the tags field:
>     Pattern tagPattern = Pattern.compile(".*"+tagName+"=\"(.*?)\".*");
> Doesn't work very well. If you pass tagName "bar", will also match (and return) the content
of foobar="dssad" tag.
> The proposed path is more correct, and also faster than using .*

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message