Skip to content

Conversation

sriram-atlan
Copy link

Change description

Description here

Type of change

  • Bug fix (fixes an issue)
  • New feature (adds functionality)

Related issues

Fix #1

Helm Config Changes for Running Tests (Staging PR)

Does this PR require Helm config changes for testing?

  • Tests are NOT required for this commit. (You can proceed with the PR.) ✅
  • No, Helm config changes are not needed. (You can proceed with the PR.) ✅
  • Yes, I have already updated the config-values on enpla9up36. (You can proceed with the PR.) ✅
  • Yes, but I have NOT updated the config-values. (Please update them before proceeding; or, tests will run with default values.)⚠️

Checklists

Development

  • Lint rules pass locally
  • Application changes have been tested thoroughly
  • Automated tests covering modified code pass

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

Code review

  • Pull request has a descriptive title and context useful to a reviewer. Screenshots or screencasts are attached as necessary
  • "Ready for review" label attached and reviewers assigned
  • Changes have been reviewed by at least one other contributor
  • Pull request linked to task tracker where applicable

ttr.addTypes(businessMetadataDefs);
commitUpdates = true;
} catch (Throwable abe) {
LOG.warn("reloadBusinessMetadataTypeDefs(): failed to reload BM defs", abe);
Copy link

Choose a reason for hiding this comment

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

Bug: Metadata Reload Inconsistencies and Exception Handling

Two inconsistencies appear in the reload*TypeDefs methods:

  1. reloadBusinessMetadataTypeDefs() and reloadClassificationMetadataTypeDefs() are missing the atlas_core service type check, allowing built-in types to be removed during reload, unlike other type definitions.
  2. All reload*TypeDefs methods now catch and log Throwable, effectively swallowing exceptions and breaking the API contract that declares throws AtlasBaseException.
Additional Locations (1)

Fix in Cursor Fix in Web

ttr.addTypes(enumDefs);
commitUpdates = true;
} catch (Throwable abe) {
LOG.warn("reloadEnumTypeDefs(): failed to reload enum defs", abe);
Copy link

Choose a reason for hiding this comment

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

Bug: API Contract Violation in Exception Handling

The reload*TypeDefs methods now catch all Throwable exceptions and log them as warnings without rethrowing. This breaks the API contract, as these methods are declared to throw AtlasBaseException, masking critical errors and potentially leaving type definitions in a stale state.

Additional Locations (4)

Fix in Cursor Fix in Web

}
ttr.addTypes(classificationDefs);
commitUpdates = true;
} catch (Throwable abe) {
Copy link

Choose a reason for hiding this comment

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

Bug: Classification Metadata Reload Fails Core Type Check

The reloadClassificationMetadataTypeDefs() method is missing the atlas_core service type check. This allows built-in classification types to be removed during reload operations, which is inconsistent with other reload*TypeDefs methods that now protect their core types.

Fix in Cursor Fix in Web

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.

1 participant