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

Improve kafkalib/message.go #632

Merged
merged 9 commits into from
Jan 3, 2025
Merged

Improve kafkalib/message.go #632

merged 9 commits into from
Jan 3, 2025

Conversation

Tang8330
Copy link
Collaborator

@Tang8330 Tang8330 commented Jan 2, 2025

This PR improves upon 2 functionalities that we have

  1. Building the Kafka message partition key
  2. Centralizing Kafka topic name formation

On #1, this would prevent us from running into issues like this: #629 by centralizing and testing how partition keys are generated.

@Tang8330 Tang8330 changed the title [WIP] Improve kafkalib/message.go Improve kafkalib/message.go Jan 2, 2025
@Tang8330 Tang8330 marked this pull request as ready for review January 2, 2025 20:58
@Tang8330 Tang8330 requested a review from a team as a code owner January 2, 2025 20:58
@nathan-artie nathan-artie self-assigned this Jan 3, 2025
return false, fmt.Errorf("failed to marshal actual: %w", err)
}

return string(expectedBytes) == string(actualBytes), nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can do bytes.Equal(expectedBytes, actualBytes)

@Tang8330 Tang8330 merged commit a9b156e into master Jan 3, 2025
7 checks passed
@Tang8330 Tang8330 deleted the reduce-brittleness branch January 3, 2025 01:12
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.

2 participants