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

Address comments from PR 3625 #3633

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

kkondaka
Copy link
Collaborator

Description

Address comments made in PR 3625

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • [ X] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • [X ] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

import static org.hamcrest.Matchers.notNullValue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

@ExtendWith(MockitoExtension.class)
public class KafkaBufferOTelIT {
private static final String TEST_REQUEST_MULTIPLE_METRICS_FILE = "test-request-multiple-metrics.json";
private static final String TEST_REQUEST_MULTIPLE_TRACES_FILE = "test-request-multiple-traces.json";
Copy link
Member

Choose a reason for hiding this comment

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

These tests are mixing two very distinct components - OTel binary processing and the Kafka buffer. I tend to think that this test should take arbitrary binary data.

For testing the Kafka buffer with OTel, I think we could add a variation on the existing end-to-end tests which runs the same tests, but using the Kafka buffer instead of the bounding_buffer buffer. This would be fairly reasonable because we could use the existing tests. We just swap out the buffer for the different tests. Those tests already run Docker images as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Modified to use arbitrary data instead of data from the file.
For the end-to-end tests, I will do a different PR

Copy link
Collaborator

@asifsmohammed asifsmohammed left a comment

Choose a reason for hiding this comment

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

Looks like the build in Java 21 is failing for KafkaBufferOTelIT class

Signed-off-by: Krishna Kondaka <[email protected]>
Signed-off-by: Krishna Kondaka <[email protected]>
@kkondaka
Copy link
Collaborator Author

@asifsmohammed rebased and fixed the build failure issue.

@kkondaka kkondaka merged commit 039741a into opensearch-project:main Nov 27, 2023
44 of 46 checks passed
@kkondaka kkondaka deleted the pr-3625-comments branch May 13, 2024 05:51
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