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

Unexpected message type handling #23

Open
wants to merge 2 commits into
base: kombu-master
Choose a base branch
from

Conversation

mpsmks
Copy link

@mpsmks mpsmks commented Mar 10, 2021

No description provided.

@@ -212,10 +221,22 @@ def _msg_get(self, subscription_path):
for msg in resp.received_messages:
if self.temp_cache[subscription_path].full():
break
data = loads(msg.message.data)
Copy link

Choose a reason for hiding this comment

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

this can still fail in case data is not stringified json?

Choose a reason for hiding this comment

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

@jeechu yes, it will .. i thought of it but expected that message which will be published will be a stringified json. Will update it if that's not the case .

Copy link

Choose a reason for hiding this comment

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

please update since we want to avoid the process halting

Choose a reason for hiding this comment

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

changes done

"Pulled message of unexpected type: ",
str(type(data)), " data: ", data]))
# Ack it
self.subscriber.\
Copy link

Choose a reason for hiding this comment

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

was this the approach discussed? to ack unexpected message?

Choose a reason for hiding this comment

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

@jeechu what do you plan to do with the message instead ?

Copy link

Choose a reason for hiding this comment

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

@mpsmks @avinashdunzo any suggestions?

Copy link
Author

Choose a reason for hiding this comment

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

for go services, we have not acked any random message, lets do that here too
lets add a log and not ack it

Choose a reason for hiding this comment

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

changes done

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