Commit f4ca4b2
authored
fix: do not block forever if message size > flow control limits (#847)
* Modifying Publish example in README to match other examples given, and
fix issue #6784
* fix: Modifying Publish example in README to match other examples, and
fix Issue #11
* feat: Adding support for DLQs
Adding delivery attempt count to PubsubMessages as a message attribute,
and creating helper function to allow users to get the count without
knowing implementation details.
* Fix formatting
* fix: making changes requested in pull request
* fix: creating fix to not populate delivery attempt attribute when dead
lettering is not enabled
* Adding unit test for case in which a received message has no delivery attempt
* Making MessageWaiter class more generic to also be used for outstanding
ack operations
* Waiting for acks to complete before shutting down a streaming subscriber
connection
* Fixing formatting error
* fix: making sure all publishes complete before shutting down the
publisher
* adding default max outstanding request bytes
* fix: make push endpoint valid https
* fix: use default zero value if a flow control setting is not provided
* fix lint issues
* fix: better cleanup during publisher test
* fix: format issues
* fix: test timeouts should be a minute
* fix: make subscriberIt less flaky
* fix: add deprecated tag for deprecated methods
* fix: retrying sync pulls in subscriberIT test
* Revert "fix: retrying sync pulls in subscriberIT test"
This reverts commit fef9956.
* fix: do not send ModAck if auto ack extensions are disabled
* Adding test for zero ack extension
* revert maxAckExtension changes
* fix: flow control blocks forever
* fix: throw flow control exception when message byte size is too big1 parent 374b8c3 commit f4ca4b2
File tree
2 files changed
+109
-24
lines changed- google-cloud-pubsub/src
- main/java/com/google/cloud/pubsub/v1
- test/java/com/google/cloud/pubsub/v1
2 files changed
+109
-24
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
779 | 780 | | |
780 | 781 | | |
781 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
782 | 788 | | |
783 | 789 | | |
784 | 790 | | |
| |||
859 | 865 | | |
860 | 866 | | |
861 | 867 | | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
862 | 874 | | |
863 | 875 | | |
864 | 876 | | |
| |||
Lines changed: 97 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | | - | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1023 | 1073 | | |
1024 | 1074 | | |
1025 | 1075 | | |
| |||
1030 | 1080 | | |
1031 | 1081 | | |
1032 | 1082 | | |
1033 | | - | |
1034 | | - | |
| 1083 | + | |
1035 | 1084 | | |
1036 | | - | |
| 1085 | + | |
1037 | 1086 | | |
1038 | 1087 | | |
1039 | 1088 | | |
1040 | 1089 | | |
1041 | | - | |
1042 | | - | |
1043 | 1090 | | |
1044 | | - | |
1045 | | - | |
| 1091 | + | |
| 1092 | + | |
1046 | 1093 | | |
1047 | 1094 | | |
1048 | 1095 | | |
1049 | 1096 | | |
| 1097 | + | |
1050 | 1098 | | |
1051 | | - | |
1052 | | - | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1053 | 1121 | | |
1054 | | - | |
1055 | | - | |
| 1122 | + | |
| 1123 | + | |
1056 | 1124 | | |
1057 | | - | |
| 1125 | + | |
1058 | 1126 | | |
1059 | 1127 | | |
1060 | 1128 | | |
1061 | 1129 | | |
1062 | 1130 | | |
1063 | 1131 | | |
1064 | 1132 | | |
1065 | | - | |
| 1133 | + | |
1066 | 1134 | | |
1067 | 1135 | | |
1068 | 1136 | | |
| |||
1091 | 1159 | | |
1092 | 1160 | | |
1093 | 1161 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1097 | 1167 | | |
1098 | | - | |
1099 | | - | |
| 1168 | + | |
| 1169 | + | |
1100 | 1170 | | |
1101 | 1171 | | |
1102 | | - | |
| 1172 | + | |
1103 | 1173 | | |
1104 | 1174 | | |
1105 | | - | |
1106 | | - | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1107 | 1180 | | |
1108 | | - | |
1109 | | - | |
| 1181 | + | |
| 1182 | + | |
1110 | 1183 | | |
1111 | 1184 | | |
1112 | 1185 | | |
| |||
0 commit comments