Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-287

Fix the position of documentation strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.2-incubating
    • storm-core
    • None

    Description

      A documentation string should be between a function name
      and a parameter list, but some strings are not.

      (defn number-duplicates [coll]
        "(number-duplicates [\"a\", \"b\", \"a\"]) => [\"a\", \"b\", \"a#2\"]"
        (map-occurrences (fn [x occurences] (if (>= occurences 2) (str x "#" occurences) x)) coll))
      
      (defn metrics-consumer-register-ids [storm-conf]
        "Generates a list of component ids for each metrics consumer
      e.g. [\"__metrics_org.mycompany.MyMetricsConsumer\", ..] "
        (->> (get storm-conf TOPOLOGY-METRICS-CONSUMER-REGISTER)
             (map #(get % "class"))
             (number-duplicates)
             (map #(str Constants/METRICS_COMPONENT_ID_PREFIX %))))
      

      Attachments

        Activity

          People

            Muneyuki Noguchi Muneyuki Noguchi
            Muneyuki Noguchi Muneyuki Noguchi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: