Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2146

Tag attribute type needs to be initialized to a non-empty string

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, master, 0.7.1
    • master, 1.1.0
    • tagsync
    • None

    Description

      As a part of tagsync updates for handling Atlas V2 APIs, a regression was introduced which set tag attribute type to an empty string when creating service-tags structure from a AtlasEntityNotification object. When saving attribute-definition to Oracle DB, this empty string tag was treated as a null, which caused the database insert to fail (type column is defined as non-null field in schema forĀ x_tag_attr_def table).

      As tag attribute type values are uninterpreted in Ranger, it is safe to set attribute type to 'string' instead of to an empty string.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            abhayk Abhay Kulkarni
            abhayk Abhay Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment