Skip to content

Conversation

@monkeyDluffy6017
Copy link
Contributor

Description

recovery old pb state after pubsub.new, so that it won't affect other module who use pb state.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

spacewander
spacewander previously approved these changes Aug 18, 2022
@monkeyDluffy6017 monkeyDluffy6017 changed the title change: recovery old pb state after pubsub.new fix: recovery old pb state after pubsub.new Aug 18, 2022
local ok, err = pcall(pubsub_protoc.loadfile, pubsub_protoc, "pubsub.proto")
if not ok then
pubsub_protoc:reset()
return "failed to load pubsub protocol: " .. err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need to apply the same fix in #7639 (comment) too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@spacewander spacewander merged commit 308bdd9 into apache:master Aug 18, 2022
Liu-Junlin pushed a commit to Liu-Junlin/apisix that referenced this pull request Nov 4, 2022
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

Successfully merging this pull request may close these issues.

3 participants