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

Sean Busbey commented on HBASE-15887:
-------------------------------------

{code}
363           # create a data structure akin to:
364           # entries='( [error]="0" [error_remove]="0" [error_add]="0"
365           #            [debug]="3" [debug_remove]="1" [debug_add]="2" )'
366           entries+=( [${level}_${action% *}]=$(${GREP} -e "^${action#* 
}.*LOG.${level}" "${patchfile}" | wc -l)
367                      [${level}]+=${entries[${level}_${action% *}]} )
{code}

Use of associative arrays means we'll need Bash 4. IIRC everything we have to 
date works with Bash 3. Can we do this without associative arrays? we'll need 
to figure out a way to only include it when bash is v4 if not.

> Report Log Additions and Removals in Builds
> -------------------------------------------
>
>                 Key: HBASE-15887
>                 URL: https://issues.apache.org/jira/browse/HBASE-15887
>             Project: HBase
>          Issue Type: New Feature
>          Components: build
>            Reporter: Clay B.
>            Assignee: Clay B.
>            Priority: Trivial
>         Attachments: HBASE-15887-v1.txt
>
>
> It would be very nice for the Apache Yetus verifications of HBase patches to 
> report log item addition and deletions.
> This is not my idea but [~mbm] asked if we could modify the personality for 
> reporting log additions and removals yesterday at an [HBase meetup at Splice 
> machine|http://www.meetup.com/hbaseusergroup/events/230547750/] as [~aw] 
> presented Apache Yetus for building HBase.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to