Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-322

Schema support - path validation and documentation

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

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • Framework
    • None

    Description

      ZooKeeper applications are heavily dependent on correct usage of paths, watchers, ZNode data, etc. Currently, there is no mechanism for validating and documenting this. It would be nice to have some kind of schema system that allows for this.

      This issue provides several items of functionality: a) ZNode path documentation; b) ZNode path validation; c) keyed reference to ZNode paths. Both items are defined in a new class, Schema. A Curator Schema specifies a ZNode path (or regex pattern), documentation for that path, and the operations that are allowed on that path. Additionally, a set of Schema objects are collected into a SchemaSet object that allows any Schema (and thereby its path) to be retrieved via a symbolic name. This should make path management in ZK applications easier. Lastly, a utility is provided to load SchemaSets from a file/stream in JSON format.

      Attachments

        Activity

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

          People

            randgalt Jordan Zimmerman
            randgalt Jordan Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment