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

BugFix: [AlertInsight] Remove the cache of insight agent id in node server #343

Merged
merged 7 commits into from
Oct 11, 2024

Conversation

qianheng-aws
Copy link
Contributor

@qianheng-aws qianheng-aws commented Oct 9, 2024

Description

Remove the cache of insight agent id in node server.

Pass insight agent id to front-end to indicate that the agent exists, and then the front-end can use the agent id in its next request directly to retrieve insight.

Detect insight agent id twice to remove the cache:

  1. First in summary request to detect whether insight agent exists
  2. Second in insight request to get the insight agent id for execution agent.

There will be an potential issue that different requests could be sent to different nodes server and cause error if depending on the cache of insight agent id.

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test.
  • New functionality has user manual doc added.
  • Commits are signed per the DCO using --signoff.

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.

Signed-off-by: Heng Qian <[email protected]>
Signed-off-by: Heng Qian <[email protected]>
Signed-off-by: Heng Qian <[email protected]>
@Hailong-am Hailong-am added the backport 2.x Trigger the backport flow to 2.x label Oct 11, 2024
@Hailong-am Hailong-am merged commit 4968f75 into opensearch-project:main Oct 11, 2024
11 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 11, 2024
…erver (#343)

* BugFix: [AlertInsight] Remove the cache of insight id in node server

Signed-off-by: Heng Qian <[email protected]>

* Add CHANGELOG.md

Signed-off-by: Heng Qian <[email protected]>

* Change log level to debug if not finding insight agent id

Signed-off-by: Heng Qian <[email protected]>

* Hide insight agent id in response

Signed-off-by: Heng Qian <[email protected]>

* Minor fix

Signed-off-by: Heng Qian <[email protected]>

* Minor fix

Signed-off-by: Heng Qian <[email protected]>

* Address comments

Signed-off-by: Heng Qian <[email protected]>

---------

Signed-off-by: Heng Qian <[email protected]>
(cherry picked from commit 4968f75)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
Hailong-am pushed a commit that referenced this pull request Oct 11, 2024
…erver (#343) (#344)

* BugFix: [AlertInsight] Remove the cache of insight id in node server

Signed-off-by: Heng Qian <[email protected]>

* Add CHANGELOG.md

Signed-off-by: Heng Qian <[email protected]>

* Change log level to debug if not finding insight agent id

Signed-off-by: Heng Qian <[email protected]>

* Hide insight agent id in response

Signed-off-by: Heng Qian <[email protected]>

* Minor fix

Signed-off-by: Heng Qian <[email protected]>

* Minor fix

Signed-off-by: Heng Qian <[email protected]>

* Address comments

Signed-off-by: Heng Qian <[email protected]>

---------

Signed-off-by: Heng Qian <[email protected]>
(cherry picked from commit 4968f75)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Trigger the backport flow to 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants