Uploaded image for project: 'Spring for Apache Hadoop'
  1. Spring for Apache Hadoop
  2. SHDP-547

safeLongToInt fail should not fail the job

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Batch
    • Labels:
      None

      Description

      Due to the spring-hadoop job special environment and difference with normal spring-batch jobs, the hadoop jobs might normally exceed the counter number far bigger than Integer.MAX_VALUE. This will cause the safeLongToInt fail and fail the whole job.

      The only workaround would be to write a tasklet by duplicating the JobTasklet and prevent the IllegalArgumentException being thrown but just log the error.

      Due to the fact that the StepContribution is always using the Integer in spring-batch, my suggestion is to set a specific int value when safeLongToInt meet a bigger long value, and log the detail value for now as a limitation, otherwise, this JobTasklet will always fail in an enterprise level hadoop jobs.

        Attachments

          Activity

            People

            Assignee:
            thomas.risberg Thomas Risberg
            Reporter:
            phoenixsbk Lynx Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: