Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFCORE-499] : System properties are broken in domain mode. #463

Merged
merged 1 commit into from Feb 6, 2015

Conversation

ehsavoie
Copy link
Contributor

Allowing the boot-time attribute for managed servers.

Jira: https://issues.jboss.org/browse/WFCORE-499

@wildfly-ci
Copy link

Core - Full Integration Build 398 is now running using a merge of 8d981b4

@wildfly-ci
Copy link

Windows Build 820 is now running using a merge of 8d981b4

@wildfly-ci
Copy link

Linux Build 1121 is now running using a merge of 8d981b4

@wildfly-ci
Copy link

Windows Build 820 outcome was SUCCESS using a merge of 8d981b4
Summary: Tests passed: 2981, ignored: 95 Build time: 0:17:57

@wildfly-ci
Copy link

Linux Build 1121 outcome was SUCCESS using a merge of 8d981b4
Summary: Tests passed: 2981, ignored: 95 Build time: 0:18:38

@wildfly-ci
Copy link

Core - Full Integration Build 398 outcome was SUCCESS using a merge of 8d981b4
Summary: Tests passed: 2856, ignored: 378 Build time: 0:51:24

@bstansberry
Copy link
Contributor

The "boot-time" attribute doesn't belong on a server. It's an instruction to the HC to apply the property as part of the command used to launch the java.lang.Process; i.e. used in ManagedServerBootCmdFactory. So any system-property resource with that set to 'true' should not become part of the server's configuration model.

@bstansberry
Copy link
Contributor

My guess is this was the problem:

#387

and this is the fix:

bstansberry@0065d42

@bstansberry
Copy link
Contributor

That commits fixes the https://issues.jboss.org/browse/WFLY-4299 problem, which looks to be just a specific example of WFCORE-499.

@@ -369,6 +389,50 @@ public void testSystemPropertyManagement() throws IOException {
Assert.assertEquals(origPropCount, returnVal.asList().size());
}

@Test
public void testSystemPropertyBootTime() throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for a test like this it would be good to use the core-service=platform-mbean stuff to validate the actual system property in the server VM. org.jboss.as.test.deployment.trivial.ServiceActivatorDeploymentUtil has some utility code related to reading system properties that way.

Adding system properties after resolution before boot.
Adding test for this.
@ehsavoie
Copy link
Contributor Author

ehsavoie commented Feb 6, 2015

Fixing missing code and covering with a test.

@wildfly-ci
Copy link

Core - Full Integration Build 421 is now running using a merge of 0a642e6

@wildfly-ci
Copy link

Linux Build 1147 is now running using a merge of 0a642e6

@wildfly-ci
Copy link

Windows Build 843 is now running using a merge of 0a642e6

@wildfly-ci
Copy link

Windows Build 843 outcome was SUCCESS using a merge of 0a642e6
Summary: Tests passed: 2987, ignored: 95 Build time: 0:18:17

@wildfly-ci
Copy link

Linux Build 1147 outcome was SUCCESS using a merge of 0a642e6
Summary: Tests passed: 2987, ignored: 95 Build time: 0:18:45

@wildfly-ci
Copy link

Core - Full Integration Build 421 outcome was FAILURE using a merge of 0a642e6
Summary: Tests failed: 1 (1 new), passed: 2855, ignored: 378 Build time: 0:48:40

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.clustering.cluster.ejb.remote.RemoteFailoverTestCase(SYNC-tcp).testStatelessFailover: java.lang.AssertionError: 0 invocations were routed to node-1
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.assertTrue(Assert.java:41)

@bstansberry bstansberry added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Feb 6, 2015
bstansberry added a commit that referenced this pull request Feb 6, 2015
[WFCORE-499] : System properties are broken in domain mode.
@bstansberry bstansberry merged commit beebbfe into wildfly:master Feb 6, 2015
@ehsavoie ehsavoie deleted the WFCORE-499 branch February 9, 2015 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
3 participants