kafka-1567; Metric memory leaking after closing the clients; patched by Jiangjie Qin; reviewed by Guozhang Wang and Jun Rao

This commit is contained in:
Manikumar Reddy 2014-08-13 13:08:57 -07:00 committed by Neha Narkhede
parent aa70a7d025
commit a552d4b743
1 changed files with 22 additions and 4 deletions

View File

@ -9,14 +9,19 @@ import tempfile
import commands
from jira.client import JIRA
def get_jira():
options = {
'server': 'https://issues.apache.org/jira'
}
def get_jira_config():
# read the config file
home=jira_home=os.getenv('HOME')
home=home.rstrip('/')
jira_config = dict(line.strip().split('=') for line in open(home + '/jira.ini'))
return jira_config
def get_jira():
options = {
'server': 'https://issues.apache.org/jira'
}
jira_config = get_jira_config()
jira = JIRA(options,basic_auth=(jira_config['user'], jira_config['password']))
return jira
@ -134,5 +139,18 @@ def main():
comment = comment + rb_url + ' against branch ' + opt.branch
jira.add_comment(opt.jira, comment)
#update the JIRA status to PATCH AVAILABLE
transitions = jira.transitions(issue)
transitionsMap ={}
for t in transitions:
transitionsMap[t['name']] = t['id']
jira_config = get_jira_config()
if('Submit Patch' in transitionsMap):
jira.transition_issue(issue, transitionsMap['Submit Patch'] , assignee={'name': jira_config['user']} )
if __name__ == '__main__':
sys.exit(main())