IBM Support

JR52263: di-buildindex utility prints "exiting 0" but when run " echo $?" command the exits code is none-zero.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When executing di-buildindex command, the following Information
    is shown:
    
    com.ibm.commerce.foundation.dataimport.process.
    DataImportProcessorMain logExitCode(int)
    INFO:
    The program exiting with exit code: 0.
    Data import process completed with the index built successfully.
    However, the index core MC_10001_CatalogEntry_Unstructured_de_DE
     is in
    busy status.
    Data import process completed with the index built successfully.
    However, the index core MC_10001_CatalogEntry_Unstructured_fr_FR
     is in
    busy status.
    
    Although the utility print "The program exiting with exit code:
    0."  After the di-buildindex command completed , type
    echo $? in the shell. however the return code is none-zero.
    

Local fix

Problem summary

  • USERS AFFECTED:
    Business users
    
    PROBLEM ABSTRACT:
    di-buildindex utility prints "exiting 0" but when run " echo $?"
     command  the exits code is none-zero.
    
    BUSINESS IMPACT:
    utility logging and undocumented exit codes are affecting
    production's ability to troubleshoot and test production
    readiness
    
    RECOMMENDATION:
    

Problem conclusion

  • Change the behavior of the di-buildindex to be:
    
    1.change the  return result to 0 corresponding the exit code
    which the utility print when type echo $?"
    Or change the output to describe the actual exit code being
    used.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR52263

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-01-09

  • Closed date

    2015-01-28

  • Last modified date

    2015-01-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021