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

Support for tracing the callbacks of async methods in elastiicsearch-6.x/7.x-plugin #694

Merged
merged 3 commits into from
May 27, 2024

Conversation

CzyerChen
Copy link
Contributor

Support for tracing the callbacks of async methods in elastiicsearch-6.x/7.x-plugin

  • Tests(including UT, IT, E2E) are added to verify the new feature.
  • Update the CHANGES log.

callbacks(onResponse/onFailure) for

  • createAsync
  • deleteAsync
  • analyzeAsync
  • refreshAsync
  • getAsync
  • searchAsync
  • indexAsync
  • updateAsync
  • scrollAsync
  • searchTemplateAsync
  • clearScrollAsync
  • deleteByQueryAsync
image

Trace details:
ElasticsearchDeleteRequestonResponse
ElasticsearchGetReguest
ElasticsearchactionGet

record transmission.latency when callback:

image

7.0.0 - 7.2.1 not included in the test because analyze method appears since 7.3.0


// refresh
client.indices().refresh(new RefreshRequest(indexName), RequestOptions.DEFAULT);
Thread.sleep(1000);
Copy link
Member

Choose a reason for hiding this comment

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

Do we have another way to verify the request has been verified?
Such as, do it through query or callback?

Copy link
Member

Choose a reason for hiding this comment

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

Sleep usually is not stable when doing this, when resource is limited in GHA scenario.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I will improve that.

@wu-sheng wu-sheng added this to the 9.3.0 milestone May 25, 2024
@wu-sheng
Copy link
Member

Could you verify that, is virtual database working as expected?

@CzyerChen
Copy link
Contributor Author

Could you verify that, is virtual database working as expected?

Looks it's working as well.
image
image
image

wu-sheng
wu-sheng previously approved these changes May 27, 2024
@CzyerChen
Copy link
Contributor Author

ES-7.x case may fail again due to the limited resources.

@wu-sheng
Copy link
Member

Test cases fail. You may need some recheck.

@CzyerChen
Copy link
Contributor Author

Test cases fail. You may need some recheck.

Let me think twice.

@wu-sheng wu-sheng merged commit f736b37 into apache:main May 27, 2024
191 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants