Skip to content

Conversation

@suraj5077
Copy link
Collaborator

@suraj5077 suraj5077 commented Sep 29, 2025

This change sets Tags FF to true for all newly onboarded tenants or tenants where no tag type defs are present.
Goal is to avoid migration for any newly onboarded tenants.
Jira: https://atlanhq.atlassian.net/browse/MLH-1336


Note

Adds a startup component that enables the Tags V2 feature flag when no classification types exist.

  • Backend / Services:
    • New component org.apache.atlas.services.TagsV2AutoEnabler (repository/src/main/java/org/apache/atlas/services/TagsV2AutoEnabler.java):
      • Runs on startup to check FeatureFlagStore.isTagV2Enabled() and graph for TRAIT classification types.
      • If none exist, sets ENABLE_JANUS_OPTIMISATION flag to true to enable Tags V2 by default.
      • Uses direct AtlasGraph query for type-system vertices and logs outcomes; wraps errors in AtlasBaseException.

Written by Cursor Bugbot for commit d9074a5. This will update automatically on new commits. Configure here.

}

} catch (Exception e) {
LOG.error("Error during auto-enable check for Tags v2 optimization", e);
Copy link

Choose a reason for hiding this comment

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

When an exception occurs, do we abort the start? We shouldn't switch to v1 in case of exception

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the exception is thrown. We don't switch to v1.

@suraj5077 suraj5077 changed the title Sets tags FF true for all new tenants by default MLH-1336 Sets tags FF true for all new tenants by default Sep 29, 2025
@suraj5077 suraj5077 closed this Sep 30, 2025
@suraj5077 suraj5077 reopened this Sep 30, 2025
cursor[bot]

This comment was marked as outdated.

@suraj5077 suraj5077 merged commit fa6d7dc into master Oct 7, 2025
13 of 20 checks passed
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.

4 participants