Commit 5f365f3
committed
sidecar{,-rs}: cleanup lease directories on start
the primary crash scenario for the sidecar is if for whatever reason a stale lease is found. we crash out without cleaning up the stale lease, leading to a crashloop when it is checked again.
clear the lease directories on start for a fresh slate.1 parent fa2945b commit 5f365f3
2 files changed
Lines changed: 32 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
400 | 410 | | |
401 | 411 | | |
402 | 412 | | |
| |||
446 | 456 | | |
447 | 457 | | |
448 | 458 | | |
449 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
450 | 467 | | |
451 | 468 | | |
452 | 469 | | |
| |||
492 | 509 | | |
493 | 510 | | |
494 | 511 | | |
495 | | - | |
496 | 512 | | |
497 | 513 | | |
498 | 514 | | |
| |||
505 | 521 | | |
506 | 522 | | |
507 | 523 | | |
508 | | - | |
509 | 524 | | |
510 | 525 | | |
511 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
367 | 375 | | |
368 | 376 | | |
369 | 377 | | |
| |||
419 | 427 | | |
420 | 428 | | |
421 | 429 | | |
422 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
423 | 436 | | |
424 | 437 | | |
425 | 438 | | |
| |||
452 | 465 | | |
453 | 466 | | |
454 | 467 | | |
455 | | - | |
456 | 468 | | |
457 | 469 | | |
458 | 470 | | |
| |||
462 | 474 | | |
463 | 475 | | |
464 | 476 | | |
465 | | - | |
466 | 477 | | |
467 | 478 | | |
468 | 479 | | |
| |||
0 commit comments