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

General message engineering in Producer #559

Merged
merged 11 commits into from
Jul 25, 2023

Conversation

yanchaomei
Copy link
Contributor

@yanchaomei yanchaomei commented Jul 3, 2023

Brief Description

Regular heartbeat

done

Telemetry performs abnormal recovery

done

The retry of message sending

done

Failed node isolation

done

transaction & delay & fifo message

done

How Did You Test This Change?

run 4 tests in producer.py & test heartbeat & telemetry rebuild by hands

f"endpoints={endpoints}, messageId={message.message_id}, clientId={self.client_id}")
raise

if not isinstance(exception, TooManyRequestsException):
Copy link
Member

Choose a reason for hiding this comment

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

where is TooManyRequestsException?

f"endpoints={endpoints}, messageId={message.message_id}, clientId={self.client_id}")
raise

if message.message_type == "Transaction":
Copy link
Member

Choose a reason for hiding this comment

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

Enumeration should be used here.

logger.info("finish")
break
except Exception as e:
logger.error(f"[Bug] unexpected exception raised during heartbeat, clientId={self.client_id}, Exception: {str(e)}")

def GetTotalRouteEndpoints(self):
Copy link
Member

Choose a reason for hiding this comment

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

Please use snake case naming rather than camel naming.

def get_client_config(self):
"""
Method to return client configuration.
"""
return self.client_config

async def OnTopicRouteDataFetched(self, topic, topicRouteData):
Copy link
Member

Choose a reason for hiding this comment

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

Fix the naming issue...

@aaron-ai aaron-ai merged commit 60115cf into apache:master Jul 25, 2023
14 checks passed
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.

None yet

2 participants