Commit 91da88b
fix: add client shutdown if request waiting in request queue for too long. (#2017)
* feat: Split writer into connection worker and wrapper, this is a
prerequisite for multiplexing client
* feat: add connection worker pool skeleton, used for multiplexing client
* feat: add Load api for connection worker for multiplexing client
* feat: add multiplexing support to connection worker. We will treat every
new stream name as a switch of destinationt
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* feat: port the multiplexing client core algorithm and basic tests
also fixed a tiny bug inside fake bigquery write impl for getting thre
response from offset
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* feat: wire multiplexing connection pool to stream writer
* feat: some fixes for multiplexing client
* feat: fix some todos, and reject the mixed behavior of passed in client or not
* feat: fix the bug that we may peek into the write_stream field but it's
possible the proto schema does not contain this field
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* feat: fix the bug that we may peek into the write_stream field but it's
possible the proto schema does not contain this field
* feat: add getInflightWaitSeconds implementation
* feat: Add schema comparision in connection loop to ensure schema update for
the same stream name can be notified
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* feat: add schema update support to multiplexing
* fix: fix windows build bug: windows Instant resolution is different with
linux
* fix: fix another failing tests for windows build
* fix: fix another test failure for Windows build
* feat: Change new thread for each retry to be a thread pool to avoid
create/tear down too much threads if lots of retries happens
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: add back the background executor provider that's accidentally
removed
* feat: throw error when use connection pool for explicit stream
* fix: Add precision truncation to the passed in value from JSON float and
double type.
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* modify the bom version
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix deadlockissue in ConnectionWorkerPool
* fix: fix deadlock issue during close + append for multiplexing
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: fix one potential root cause of deadlock issue for non-multiplexing
case
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Add timeout to inflight queue waiting, and also add some extra log
* feat: allow java client lib handle switch table schema for the same stream
name
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: close before retry connection
* fix: close before retry connection
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: add client side timeout if inflight request wait too long
---------
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>1 parent de00447 commit 91da88b
2 files changed
Lines changed: 150 additions & 4 deletions
File tree
- google-cloud-bigquerystorage/src
- main/java/com/google/cloud/bigquery/storage/v1
- test/java/com/google/cloud/bigquery/storage/v1
Lines changed: 47 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
69 | 78 | | |
70 | 79 | | |
71 | 80 | | |
| |||
273 | 282 | | |
274 | 283 | | |
275 | 284 | | |
276 | | - | |
277 | 285 | | |
278 | 286 | | |
279 | 287 | | |
| |||
507 | 515 | | |
508 | 516 | | |
509 | 517 | | |
510 | | - | |
| 518 | + | |
511 | 519 | | |
512 | 520 | | |
513 | 521 | | |
| |||
525 | 533 | | |
526 | 534 | | |
527 | 535 | | |
| 536 | + | |
528 | 537 | | |
529 | 538 | | |
530 | 539 | | |
| |||
569 | 578 | | |
570 | 579 | | |
571 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
572 | 586 | | |
573 | 587 | | |
574 | 588 | | |
| |||
583 | 597 | | |
584 | 598 | | |
585 | 599 | | |
| 600 | + | |
586 | 601 | | |
587 | 602 | | |
588 | 603 | | |
| |||
703 | 718 | | |
704 | 719 | | |
705 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
706 | 732 | | |
707 | 733 | | |
708 | 734 | | |
| |||
740 | 766 | | |
741 | 767 | | |
742 | 768 | | |
| 769 | + | |
743 | 770 | | |
744 | 771 | | |
745 | 772 | | |
| |||
883 | 910 | | |
884 | 911 | | |
885 | 912 | | |
886 | | - | |
| 913 | + | |
887 | 914 | | |
888 | 915 | | |
889 | 916 | | |
| |||
923 | 950 | | |
924 | 951 | | |
925 | 952 | | |
926 | | - | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
927 | 956 | | |
928 | 957 | | |
929 | 958 | | |
| |||
955 | 984 | | |
956 | 985 | | |
957 | 986 | | |
| 987 | + | |
| 988 | + | |
958 | 989 | | |
959 | 990 | | |
960 | 991 | | |
961 | 992 | | |
962 | 993 | | |
963 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
964 | 1002 | | |
965 | 1003 | | |
966 | 1004 | | |
| |||
1051 | 1089 | | |
1052 | 1090 | | |
1053 | 1091 | | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1054 | 1097 | | |
1055 | 1098 | | |
1056 | 1099 | | |
| |||
Lines changed: 103 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
607 | 608 | | |
608 | 609 | | |
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 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
610 | 713 | | |
0 commit comments