Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-3999

Avoid using PlanNodeType.ordinal() in serializing

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

Details

    Description

      The ordinal() of an Enum is changed via the element definition order. If one developer changes the order, there's no way to fingure out, bugs will happen.

      So I think it's better to avoid using ordinal() in serializing.

      The issue exists in WALNodeSerializing.

      Attachments

        Activity

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

          People

            ericpai Eric Pai
            ericpai Eric Pai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment