20 views

Description

The system property mid.discovery.max_payload_size in Discovery limits the payload size, when set to -1 there is no size restriction, causing a division by zero in certain circumstances. 

When working with patterns, the input size is 0, so no items return. Despite this we try to split the payload, so we get the exception on the Mid Server:

java.lang.ArithmeticException: / by zero

 

Steps to Reproduce

 

  1. Set the property mid.discovery.max_payload_size = -1
  2. Run Discovery

    Observe the error message:

    Sensor error when processing Horizontal Pattern: java.lang.IllegalArgumentException: Cannot deserialize objectundefined (sys_script_include.778011130a0a0b2500c4595ad1d1d768.script; line 33)

     

Workaround

This problem is fixed since the London release. On earlier instances the workaround below can be applied:

  1. Delete the mid property mid.discovery.max_payload_size or increase its value
  2. Restart the Mid Servers configured with Discovery
  3. Re-run Discovery


Related Problem: PRB1239923

Seen In

There is no data to report.

Intended Fix Version

London

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-06-06 15:37:37
Published:2018-05-21