Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-943

Infinite Loop Within Camel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.14.0.redhat-62-xx
    • 2.12.0.redhat-61379
    • None
    • None

      If the target 'tmp' directory (specified by java.io.tmpdir) used by Camel, does not have proper privileges, then Camel enters infinite loop. The offending code is found in org.apache.camel.util.FileUtil.createNewTempDir().

      while (!f.mkdir()) {
          x = ran.nextInt(1000000);
          f = new File(s, "camel-tmp-" + x);
      }
      

      Refer to the f.can*() methods prior to entering the loop.

            willem.jiang Willem Jiang (Inactive)
            Argo_Integration Travis North (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: