Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pub a message with ordering key error, keep getting : "Execution cancelled because executing previous runnable failed" #368

Open
wsyzwddsg111 opened this issue May 21, 2024 · 0 comments

Comments

@wsyzwddsg111
Copy link

we are keep getting this error: "Execution cancelled because executing previous runnable failed" , when pub a ordered msg

BUT I don't know what the error is, I cant find the root cause like IO/network issue/500 or any other useful info.

I could only see the "Execution cancelled because executing previous runnable failed"

why dont pubsub print the first error detail?

code is like :

try {
      Publisher publisher = Publisher.newBuilder(TopicName.of(projectId, topicId)).setEnableMessageOrdering(true).build();

  PubsubMessage message = PubsubMessage.newBuilder().setOrderingKey("test-key").setData(data).build();
  System.out.println("Publishing message: " + message);

  ApiFuture<String> future = publisher.publish(message);
  System.out.println("Published message ID: " + future.get());

} catch(Exception e){
 log.error("error ->",e);
}
@wsyzwddsg111 wsyzwddsg111 changed the title pub a message with ordering key error, keep getting : pub a message with ordering key error, keep getting : "Execution cancelled because executing previous runnable failed" May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant