GithubHelp home page GithubHelp logo

Comments (5)

pshipton avatar pshipton commented on May 29, 2024

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_extended.functional_x86-64_windows_Nightly_testList_0/680
TestJcmd_0

23:34:00  FAILED: testMatchDisplayNamePartially
23:34:00  java.lang.AssertionError: Expected string not found: java.util.HashMap expected [true] but found [false]
23:34:00  	at org.testng.Assert.fail(Assert.java:96)
23:34:00  	at org.testng.Assert.failNotEquals(Assert.java:776)
23:34:00  	at org.testng.Assert.assertTrue(Assert.java:44)
23:34:00  	at org.openj9.test.attachAPI.TestJcmd.testDisplayNameHelper(TestJcmd.java:372)
23:34:00  	at org.openj9.test.attachAPI.TestJcmd.testMatchDisplayNamePartially(TestJcmd.java:383)

from openj9.

pshipton avatar pshipton commented on May 29, 2024

@JasonFengJ9 I assume this is caused by the following, can you pls take a look
#19069
#19089

from openj9.

JasonFengJ9 avatar JasonFengJ9 commented on May 29, 2024

JDK11 50x grinder - https://openj9-jenkins.osuosl.org/job/Grinder/3384/ - 4/50 failed
JDK17 50x grinder - https://openj9-jenkins.osuosl.org/job/Grinder/3385/ - 3/50 failed

from openj9.

JasonFengJ9 avatar JasonFengJ9 commented on May 29, 2024

The test in question TestJcmd.java invokes TargetManager to create a target VM, then starts another process for Jcmd with corresponding arguments.

TargetManager tgt = new TargetManager(TestConstants.TARGET_VM_CLASS, null, DISPLAYNAME_GC_CLASS_HISTOGRAM,
Collections.singletonList("-Xmx10M"), Collections.emptyList());
tgt.syncWithTarget();
String targetId = tgt.targetId;
assertNotNull(targetId, ERROR_TARGET_NOT_LAUNCH);
List<String> args = new ArrayList<>();
args.add(targetName);
args.add(GC_CLASS_HISTOGRAM);
args.add("all");
List<String> jcmdOutput = runCommandAndLogOutput(args);

From the AttachAPI log files, the target VM was started successfully but exits promptly w/o responding an attaching request. The instrumental log message from the target VM didn't appear in the test console output, will add tracepoints to understand why it didn't wait for the attaching request.
This seems a test issue.

from openj9.

JasonFengJ9 avatar JasonFengJ9 commented on May 29, 2024

The attaching failed due to a SocketException:

java.net.SocketException: Software caused connection abort: socket write error
        at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
        at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:129)
        at java.base/openj9.internal.tools.attach.target.AttachmentConnection.streamSend(AttachmentConnection.java:105)
        at jdk.attach/com.ibm.tools.attach.attacher.OpenJ9VirtualMachine.executeDiagnosticCommand(OpenJ9VirtualMachine.java:318)
        at jdk.jcmd/openj9.tools.attach.diagnostics.attacher.AttacherDiagnosticsProvider.executeDiagnosticCommand(AttacherDiagnosticsProvider.java:55)
        at jdk.jcmd/openj9.tools.attach.diagnostics.tools.Util.runCommandAndPrintResult(Util.java:78)

This error in question is https://learn.microsoft.com/en-us/previous-versions/ms832256(v=msdn.10)?redirectedfrom=MSDN

Re-trying the test (3 times) passed consistently in 200x grinder.
Jcmd might be improved with re-tries in case this SocketException.
The failing test is a new test added recently via

This behaviour is not a regression and will be addressed in 0.46.

from openj9.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.