-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor reschedule in exception handling of volume manager
Previous exception handling has a pitfall that may potentially clear the sys.exc_info() (by calling SQLalchmey to update db). This patch refactors some part of exception handling in create_volume() to make sure sys.exc_info() is retrieved so that we can log and reraise it; also we make sure exception be reraised at the end of exception handling no matter the request is rescheduled or not. As a side effect, we fixed a bug in unittest which didn't provide correct argument to db API but previously this exception has been wrongly consumed by volume manager's exception handling (not reraise exception when request is rescheduled). fix bug: 1197648 Change-Id: Idce5d06f8be1fb6018012503ec7f844898a21b25
- Loading branch information
Zhiteng Huang
committed
Jul 8, 2013
1 parent
e958394
commit 40aef76
Showing
2 changed files
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters