Dan Kenigsberg has posted comments on this change.
Change subject: Don't forget to close thread pool when stopping the SPM mailer
......................................................................
Patch Set 3: I would prefer that you didn't submit this
(3 inline comments)
....................................................
Commit Message
Line 5: CommitDate: 2012-11-01 14:35:35 -0400
Line 6:
Line 7: Don't forget to close thread pool when stopping the SPM mailer
Line 8:
Line 9: Bug-URL:
https://bugzilla.redhat.com/show_bug.cgi?id=870024
this bug seems unrelated.
could you explain the functional effect of the issue you are now solving?
Line 10: Change-Id: I0fd696a20254380e0a0067dd33c7709445e38afb
....................................................
File tests/storageMailboxTests.py
Line 32:
Line 33: class StoragePoolStub(object):
Line 34: def __init__(self):
Line 35: self.spUUID = str(uuid4())
Line 36: self.storage_repository = "/tmp/fakepool"
would break if Jenkins runs two tests on the same machine. please use tempfile.
Line 37: self.__masterDir = os.path.join(self.storage_repository, self.spUUID,
Line 38: "mastersd", DOMAIN_META_DATA)
Line 39:
Line 40: os.makedirs(self.__masterDir)
Line 45: def __del__(self):
Line 46: shutil.rmtree(os.path.join(self.storage_repository, self.spUUID))
Line 47:
Line 48:
Line 49: class SPM_MailMonitorTests(TestCaseBase):
Hallelujah, it's been anticipated for long!
Line 50: def testThreadLeak(self):
Line 51: mailer = sm.SPM_MailMonitor(StoragePoolStub(), 100)
Line 52: threadCount = len(threading.enumerate())
Line 53: mailer.stop()
--
To view, visit
http://gerrit.ovirt.org/8980
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I0fd696a20254380e0a0067dd33c7709445e38afb
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Eduardo <ewarszaw(a)redhat.com>
Gerrit-Reviewer: Haim Ateya <hateya(a)redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>