Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16515

camel-github component possible OOM due to only adding elements to an unbuonded map

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: camel-github
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I think there is a potential for OOM errors here: https://github.com/apache/camel/blob/master/components/camel-github/src/main/java/org/apache/camel/component/github/consumer/CommitConsumer.java#L68

      basically each commit sha is added to an in memory list of already processed commits used as an idempotent inmemory repository, but elements in the map are never removed.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              valdar Andrea Tarocchi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: