Is this still occurring? If so, please file an issue on the Issue Tracker
<https://cloud.google.com/support/docs/issue-trackers>if you can provide a
way to reproduce the issue.
On Saturday, April 15, 2017 at 12:23:24 AM UTC-4, Vinay Chitlangia wrote:
>
> All our calls to do a publish are hanging.
> Our servers are running on flex (non-compat) running pubsub 0.9.4-alpha
> jars.
>
> Attached are logs...Just before doing the publishing..we log out
> "Publishing..." and just after log "Published".
> The logs only have Publishing...they never make it to Published.
>
> The snippets of the pubsub code is:
>
> public class PubSubNugget extends FinalTouchNugget {
> @Override
> public void work() {
> try {
> PubsubMessage pubsubMessage =
> PubsubMessage.newBuilder().setData("payload".getBytes).build();
> logger.warning("Publishing!!");
> Publisher publisher = publisher();
> publisher.publish(pubsubMessage).get();
> publisher.shutdown();
> logger.warning("Published");
> } catch (Exception e) {
> logger.warning(ExceptionUtils.getFullStackTrace(e));
> }
> }
>
> private static TopicName initTopicName() {
> return TopicName.create(YConfiguration.get().applicationId(),
> YConfiguration.get().pubsubTopic());
> }
> private static Publisher publisher() {
> try {
> return Publisher.newBuilder(topicName).build();
> } catch (IOException e) {
> logger.warning(ExceptionUtils.getFullStackTrace(e));
> return null;
> }
> }
>
> private static TopicName topicName = initTopicName();
> private static final Logger logger =
> Logger.getLogger(PubSubNugget.class.getName());
> }
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/409bb3a6-322e-4206-8e97-7ccc79aa36a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.