GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix double encoding of messages when commit() fails. by daspecster · Pull Request #2773 · googleapis/google-cloud-python

Conversation

@daspecster

@daspecster daspecster commented Nov 28, 2016

Copy link
Copy Markdown
Contributor

Fixes #2771

This copies the messages variable instead of transforming it in place so that if a commit() fails, the messages aren't double encoded.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daspecster
Fix double encoding of messages when commit() fails.
51d2c3f
@daspecster daspecster added the api: pubsub Issues related to the Pub/Sub API. label Nov 28, 2016
@daspecster daspecster assigned tseaver and dhermes Nov 28, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 28, 2016
dhermes
dhermes reviewed Nov 28, 2016
View reviewed changes
Comment thread pubsub/google/cloud/pubsub/_http.py
:returns: list of opaque IDs for published messages.
"""
_transform_messages_base64(messages, _base64_unicode)
messages_to_send = copy.deepcopy(messages)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster daspecster mentioned this pull request Nov 28, 2016
Pubsub message encoding performance could be improved? #2774
Closed
@daspecster
daspecster merged commit c40e0d4 into googleapis:master Nov 29, 2016
@daspecster
daspecster deleted the support-multiple-commits-if-failed-2771 branch November 29, 2016 03:26
@dhermes dhermes mentioned this pull request Dec 9, 2016
Update versions for mega-release. #2846
Merged
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@daspecster
Merge pull request googleapis#2773 from daspecster/support-multiple-c…
60fed0a
…ommits-if-failed-2771

Fix double encoding of messages when commit() fails.
@theacodes theacodes unassigned dhermes Sep 28, 2018
parthea pushed a commit that referenced this pull request Mar 2, 2026
@daspecster
Merge pull request #2773 from daspecster/support-multiple-commits-if-…
e379af3
…failed-2771

Fix double encoding of messages when commit() fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@dhermes dhermes dhermes left review comments
@HakShak HakShak HakShak left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@daspecster @dhermes @HakShak @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.