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

Pulsar producer implementation. #49

Merged
merged 4 commits into from
Oct 25, 2023
Merged

Pulsar producer implementation. #49

merged 4 commits into from
Oct 25, 2023

Conversation

kmrdhruv
Copy link
Collaborator

TODO:: will add tests after first review.

@github-actions
Copy link

github-actions bot commented Oct 12, 2023

Test Results

98 tests   98 ✔️  38s ⏱️
28 suites    0 💤
28 files      0

Results for commit a73fd5c.

♻️ This comment has been updated with latest results.

@@ -148,6 +148,10 @@ tasks.withType(JacocoReport).configureEach {
getExecutionData().from(fileTree(buildDir).include("/jacoco/*.exec"))
}

tasks.withType(Copy).configureEach {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this required?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

gradle/gradle#17236
Moved it to ProcessResource task and WARN strategy for Pulsar module alone.

common/build.gradle Show resolved Hide resolved
Comment on lines 9 to 26
return 0;
if (null == o) {
throw new ArgumentException("Can not compare null ProducerResult.");
}
if (o instanceof PulsarProducerResult) {
return messageId.compareTo(((PulsarProducerResult) o).messageId);
} else {
throw new ArgumentException(String.format(
"Can not compare different ProducerResult types. Expected ProducerResult is %s, given %s.",
PulsarProducerResult.class.getName(), o.getClass().getName()
));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

auto-generated?
Also, there is no requirement for ProduceResult to be comparable. Is there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

U mean ProduceResult or ProducerResult ?
For former comparable is not required as it is more then message offset. Renamed this class to be Offset and PulsarOffset, however retained the Comparable for Offset.

@kmrdhruv kmrdhruv merged commit 56938ab into master Oct 25, 2023
2 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.

2 participants