Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1145

Changing entity name if it exceeds defined length

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6.1
    • merlin
    • None
    • QA

    Description

      If oozie uses embedded database then in some cases while entering a new row in database it may exceed the specified limit(255) for varchar. This is happening due to very long class name which is appended as part of entity name. So user can drop the class name from entity name, so that there is no truncation error.

      Caused by: <openjpa-2.2.2-r422266:1468616 fatal general error> org.apache.openjpa.persistence.PersistenceException: A truncation error was encountered trying to shrink VARCHAR 'hdfs://192.168.138.200:8020/tmp/falcon-regression-staging/fa&' to length 255. {prepstmnt 505661111 INSERT INTO COORD_JOBS (id, app_name, app_namespace, app_path, bundle_id, concurrency, conf, created_time, done_materialization, end_time, execution, external_id, frequency, group_name, job_xml, last_action_number, last_action, last_modified_time, mat_throttling, next_matd_time, orig_job_xml, pause_time, pending, sla_xml, start_time, status, suspended_time, time_out, time_unit, time_zone, user_name) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)} [code=20000, state=22001]
      FailedObject: org.apache.oozie.CoordinatorJobBean@1b9a4027
      

      For this is_deprecate flag is introduced which is 'false' by default.

      Attachments

        1. FALCON-1145.patch
          3 kB
          Pragya Mittal
        2. FALCON-1145-v1.patch
          3 kB
          Pragya Mittal
        3. FALCON-1145-v2.patch
          3 kB
          Pragya Mittal
        4. FALCON-1145-v3.patch
          3 kB
          Pragya Mittal

        Issue Links

          Activity

            People

              pragya.mittal Pragya Mittal
              pragya.mittal Pragya Mittal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: