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 the current broken publish method by srkukarni · Pull Request #4289 · apache/pulsar

Conversation

@srkukarni

@srkukarni srkukarni commented May 16, 2019

Copy link
Copy Markdown
Contributor

Motivation

In context.publish() the properties args was deprecated. There are now 2 context.publish() methods with different args. The problem is that a function using the old deprecated list of param is ending up with the new method even though it's passing properties arg.

We need to make sure the old function keeps working in this scenario. Since we haven't yet released the change with the second publish method, we can just delete it by adding message_conf to the existing one.
This supersedes #4253

Modifications

Describe the modifications you've done.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Sorry, something went wrong.

Uh oh!

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

All reactions
Sanjeev Kulkarni Sanjeev Kulkarni
Fix the current broken publish method
538419b
@srkukarni srkukarni added the area/function label May 16, 2019
@srkukarni srkukarni added this to the 2.4.0 milestone May 16, 2019
@srkukarni
srkukarni requested review from jerrypeng and merlimat May 16, 2019 22:47
@srkukarni srkukarni self-assigned this May 16, 2019
@srkukarni srkukarni mentioned this pull request May 16, 2019
Fixed python function context.publish with properties #4253
Closed
Sanjeev Kulkarni Sanjeev Kulkarni
Added for properties
0e157b2
merlimat
merlimat approved these changes May 16, 2019
View reviewed changes
jerrypeng
jerrypeng approved these changes May 17, 2019
View reviewed changes
@jerrypeng
jerrypeng merged commit 26e357f into apache:master May 17, 2019
@srkukarni
srkukarni deleted the fix_publish branch May 17, 2019 03:16
@merlimat merlimat mentioned this pull request Oct 24, 2026
[Bug] Ledger can not recover with Digest Mismatch Error #22906
Closed
2 of 3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@merlimat merlimat merlimat approved these changes
@jerrypeng jerrypeng jerrypeng approved these changes

Uh oh!

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

Assignees

@srkukarni srkukarni

Labels

area/function

Projects

None yet

Milestone

2.4.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@srkukarni @merlimat @jerrypeng
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.