Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-5284

I can use a long error message with an External Task

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.0, 7.6.0-alpha3
    • Component/s: engine
    • Labels:

      Description

      While working on a new model, our service tasks generated errors with backtraces which were too large to be stored in the various message related fields in the database. The engine crashed very ungracefully when that happened. Our fix was to change the table definitions so that instead of making message fields to have type `varchar(4000)`, they're defined as `text`.

      I'm not sure if that is really the best fix. It might be better to have a limit and enforce it by the engine. In any case, running into a database error causes trouble that requires an engine restart, which should be avoided.

      I tried to attach our changed `sql/create/postgres_engine_7.4.1-ee.sql` file for your consideration, but JIRA gave me the error message "No project could be found with id '10330'. Something on JIRA's end seems to be broken for file uploads. The only change that I made was the column type change as described above.

      1. catalina.out
        11 kB
        Hans Hübner
      2. postgres_engine_7.4.1-ee.sql
        26 kB
        Hans Hübner

        Issue Links

          Activity

          Hide
          hans.huebner@lambdawerk.com Hans Hübner added a comment -

          Hi Mat,

          I frankly don't care so much where this request is being tracked, and it is also not an urgent matter in that we're currently changing the database schema creation files manually before creating the Camunda BPM database. It is simply an annoyance and something that will be disturbing in production, when either the engine crashes because it wants to write an overlong message or when someone tries to diagnose a problem, finding that the error message has been cut after 4000 characters.

          Thanks,
          Hans

          Show
          hans.huebner@lambdawerk.com Hans Hübner added a comment - Hi Mat, I frankly don't care so much where this request is being tracked, and it is also not an urgent matter in that we're currently changing the database schema creation files manually before creating the Camunda BPM database. It is simply an annoyance and something that will be disturbing in production, when either the engine crashes because it wants to write an overlong message or when someone tries to diagnose a problem, finding that the error message has been cut after 4000 characters. Thanks, Hans
          Hide
          matthijs.burke Matthijs Burke added a comment -

          Good morning Hans,

          we have raised a separate issue in our Support project and have linked it to this issue: SUPPORT-2426. We will take a deeper look into this in the context of our product support and will respond in the Support issue.

          Thank you and best regards,
          Mat

          Show
          matthijs.burke Matthijs Burke added a comment - Good morning Hans, we have raised a separate issue in our Support project and have linked it to this issue: SUPPORT-2426. We will take a deeper look into this in the context of our product support and will respond in the Support issue. Thank you and best regards, Mat
          Hide
          askar.akhmerov Askar Akhmerov added a comment -

          multi tenancy test is missing

          Show
          askar.akhmerov Askar Akhmerov added a comment - multi tenancy test is missing
          Hide
          askar.akhmerov Askar Akhmerov added a comment -

          added missing test

          Show
          askar.akhmerov Askar Akhmerov added a comment - added missing test
          Hide
          hans.huebner@lambdawerk.com Hans Hübner added a comment -

          I don't get to see much of what you're doing, but I would like to point out that by "long error message" i mean something which can include a complete Java stack trace, and that easily amounts to a few kilobytes.

          Show
          hans.huebner@lambdawerk.com Hans Hübner added a comment - I don't get to see much of what you're doing, but I would like to point out that by "long error message" i mean something which can include a complete Java stack trace, and that easily amounts to a few kilobytes.

            People

            • Assignee:
              Unassigned
              Reporter:
              hans.huebner@lambdawerk.com Hans Hübner
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: