jjzhang / booth

The Booth Cluster Ticket Manager
GNU General Public License v2.0
16 stars 37 forks source link

When a expire was not set on a ticket, made modifications to use the def... #24

Closed yuusuke closed 12 years ago

yuusuke commented 12 years ago

...ault value.

If revoke is performed to the ticket in which the term of validity is not set up, "core dump" will occur.

# booth client revoke -t ticketB -s 192.168.102.101
cluster[30930]: 2012/04/09_19:25:33 info: revoke command sent, result will be returned asynchronously, you can get the result from the log files after the ticket expiry time.
cluster[30930]: 2012/04/09_19:25:33 info: You have to wait 0 seconds to ensure all timer has expired!
Floating point exception (core dumped)

To fix this, if you do not have expiration date when you read booth.conf, has been modified to use the default value.

jjzhang commented 12 years ago

Good catch, merged, thanks!