Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2407

Replica.getRoleAsEnum exposes Protobuf generated classes in public API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.8.0
    • client

    Description

      The return type for Replica.getRoleAsEnum() in the Java client is org.apache.kudu.consensus.Metadata.RaftPeerPB.Role.

      At a minimum we should mark this as InterfaceAudience.Private. If we do intend the method to be public API we should map it to a public enum owned by the client. 

      Attachments

        Activity

          People

            granthenke Grant Henke
            granthenke Grant Henke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: