Skip to content

Conversation

shuangli-z
Copy link
Contributor

@shuangli-z shuangli-z commented Oct 14, 2025

Description

Minor fixes for index insight feature:

  1. Save lastUpdatedTime when task is failed to prevent NullPointerException during IndexInsight serialization
  2. Ensure insight status resets to FAILED instead of remaining GENERATING on error
  3. Refine error messages and remove redundant logging

Related Issues

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

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

@shuangli-z shuangli-z had a problem deploying to ml-commons-cicd-env-require-approval October 14, 2025 07:20 — with GitHub Actions Failure
@shuangli-z shuangli-z had a problem deploying to ml-commons-cicd-env-require-approval October 14, 2025 07:20 — with GitHub Actions Error
@shuangli-z shuangli-z had a problem deploying to ml-commons-cicd-env-require-approval October 14, 2025 07:20 — with GitHub Actions Failure
@shuangli-z shuangli-z had a problem deploying to ml-commons-cicd-env-require-approval October 14, 2025 07:20 — with GitHub Actions Error
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 05:47 — with GitHub Actions Waiting
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 05:47 — with GitHub Actions Waiting
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 05:47 — with GitHub Actions Waiting
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 05:47 — with GitHub Actions Waiting
@shuangli-z shuangli-z changed the title Fix index insight bug fix: prevent NPE and status inconsistency in index insight Oct 15, 2025
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 07:13 — with GitHub Actions Waiting
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 07:13 — with GitHub Actions Waiting
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 07:13 — with GitHub Actions Waiting
@shuangli-z shuangli-z requested a deployment to ml-commons-cicd-env-require-approval October 15, 2025 07:13 — with GitHub Actions Waiting
writeIndexInsight(
indexInsight,
tenantId,
ActionListener.wrap(r -> { runWithPrerequisites(tenantId, listener); }, listener::onFailure)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why in here we don't save the failure status?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because if writing the initial GENERATING status fails, the insight will not be stored, so there is no need to update to FAILED status. Also, attempting to save a FAILED status would likely fail for the same reason.

@ylwu-amzn ylwu-amzn requested a deployment to ml-commons-cicd-env-require-approval October 20, 2025 19:34 — with GitHub Actions Waiting
@ylwu-amzn ylwu-amzn requested a deployment to ml-commons-cicd-env-require-approval October 20, 2025 19:34 — with GitHub Actions Waiting
@ylwu-amzn ylwu-amzn requested a deployment to ml-commons-cicd-env-require-approval October 20, 2025 19:34 — with GitHub Actions Waiting
@ylwu-amzn ylwu-amzn requested a deployment to ml-commons-cicd-env-require-approval October 20, 2025 19:34 — with GitHub Actions Waiting
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