-
Notifications
You must be signed in to change notification settings - Fork 693
Spring Cloud Stream Gcp does not retry #2406
Comments
Sorry for the delay!
Looking at Spring Cloud Stream code, (1) a retry template is created automatically for pollable consumers. Our Cloud Pub/Sub adapter does give ability to create a pollable source, but the streaming consumer is more commonly used. It seems that your requirement is to do (2) -- retry if downstream processing failed. Kafka stream binder sets up its own retry template infrastructure to do that, but Spring Cloud GCP does not provide the same instrumentation. We are happy to accept retry template for downstream processing logic as a feature request for Spring Cloud GCP. In the meantime, you can accomplish the same thing by creating a custom @olegz Is my understanding correct that Spring Cloud Stream itself does not retry message processing functionality? The documentation seems to imply that, but I only see Kafka implementing retry on user logic. |
@olegz Could you point me to code in Spring Cloud Stream? Sorry, I find code easier to read than documentation and, ah, more trustworthy :) I see retry template being bound to a pollable consumer here to retry message retrieval. But the messaging infrastructure comes from Spring Integration, so retry template has to be bound to the underlying object somewhere for the non-pollable, and I don't see where. Spring Kafka's |
@elefeint any update on this? Was feature request created? I wondering about retrying application message processing too |
@artemptushkin - I don't think any progress has been made here. Would you be willing to contribute a patch to fulfill the feature? |
@ttomsu frankly, I would like to. I just started using spring-cloud-gcp stack in my company and it seems convenient to work on it, as I see and other small places for improvements. I'll create a task with the intention |
@artemptushkin I suggest working with GoogleCloudPlatform/spring-cloud-gcp and we'll back port the fix if necessary. |
Hey @artemptushkin, I duplicated this issue in our new repo so we don't forget about this: GoogleCloudPlatform/spring-cloud-gcp#337 We can continue conversations there |
Hi, I am following spring-cloud-gcp-pubsub-stream-binder-functional-sample. But I find that the retrying as per the Spring Cloud Stream documentation does not work.
What I have Tried
Is there any extra configuration needed to switch on this feature on GCP PubSub?
The text was updated successfully, but these errors were encountered: