Commit f5aaabb
refactor: scope KP001 Reyden detection to OpenSession only
_check_response_for_error runs for every Thrift RPC, so mapping KP001 to the
recoverable marker there gave it a wider blast radius than the recovery logic
(which only wraps session open): a stray KP001 on any other RPC would have
surfaced as ReydenThriftUnsupportedError with no handler. Gate the mapping
behind a detect_reyden flag that make_request sets only for the OpenSession
method (mirroring the existing method.__name__ discrimination). Every other RPC
now surfaces a KP001 as a generic DatabaseError, unchanged from before.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>1 parent df4fba5 commit f5aaabb
2 files changed
Lines changed: 70 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
298 | 303 | | |
299 | 304 | | |
300 | 305 | | |
| |||
527 | 532 | | |
528 | 533 | | |
529 | 534 | | |
530 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
531 | 543 | | |
532 | 544 | | |
533 | 545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
598 | 639 | | |
599 | 640 | | |
600 | 641 | | |
| |||
604 | 645 | | |
605 | 646 | | |
606 | 647 | | |
607 | | - | |
608 | | - | |
609 | 648 | | |
610 | 649 | | |
611 | 650 | | |
612 | 651 | | |
613 | 652 | | |
614 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
615 | 662 | | |
616 | | - | |
| 663 | + | |
617 | 664 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | 665 | | |
627 | | - | |
| 666 | + | |
628 | 667 | | |
629 | 668 | | |
630 | 669 | | |
| |||
0 commit comments