Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8268484

2nd jstat cmd added to sun/tools/jstat/jstatLineCounts1.sh causes first jstat cmd to no longer be validated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 17
    • core-svc

    Description

      [Note this CR also applies to jstatLineCounts2.sh, jstatLineCounts3.sh and jstatLineCounts4.sh]

      jstatLineCounts1.sh used to have just one jstat command:

      jstat -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk

      The awk script would check the output and use exit 1 if not valid. This would then cause jstatLineCounts1.sh to exit with 1 as the error code, causing the test to appropriately fail. However, JDK-8245129 introduced a second jstat command:

      jstat -J-XX:+UseParallelGC -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk

      As a result of this, failure of the first command no longer causes the test to fail, and in fact the first command is now failing and is going undetected. See JDK-8268485.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cjplummer Chris Plummer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: