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

https://issues.jboss.org/browse/WFCORE-508 Remove need to maintain discovery-option ordering separately from the option #501

Merged
merged 4 commits into from
Feb 26, 2015

Conversation

aloubyansky
Copy link
Contributor

The first commit introduces a new attribute 'options' for discovery-options resource, which contains a LIST of various discovery options as described on the jira.
The resources discovery-option and static-discovery are still preserved in the tree, although they are PlaceholderResource's now, all the actual data is kept in the newly introduced attribute and all the resource manipulation will be translated into the corresponding manipulation of the attribute.
discovery-options attribute is also preserved for now, although it's a read-only attribute now and the read-attribute handler will pull the data from the options attribute.

The second commit fixes value type initialization for complex types with map attributes during the generation of descriptions.

Thanks,
Alexey

@wildfly-ci
Copy link

Core - Full Integration Build 482 is now running using a merge of 66b4c4c

@wildfly-ci
Copy link

Windows Build 904 is now running using a merge of 66b4c4c

@wildfly-ci
Copy link

Linux Build 1215 is now running using a merge of 66b4c4c

@wildfly-ci
Copy link

Windows Build 904 outcome was SUCCESS using a merge of 66b4c4c
Summary: Tests passed: 3020, ignored: 95 Build time: 0:18:34

@wildfly-ci
Copy link

Linux Build 1215 outcome was SUCCESS using a merge of 66b4c4c
Summary: Tests passed: 3020, ignored: 95 Build time: 0:18:52

@wildfly-ci
Copy link

Core - Full Integration Build 482 outcome was SUCCESS using a merge of 66b4c4c
Summary: Tests passed: 2859, ignored: 378 Build time: 0:48:28

DiscoveryOptionsResource(Resource delegate) {
if (delegate == null) {
throw HostControllerLogger.ROOT_LOGGER.nullVar("delegate");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to change this; just an FYI.

We put in quite a few of these early in AS7 days, but they can be just an assert delegate != null; If this is null it's a programming error, not a mistake in user input.

@bstansberry
Copy link
Contributor

FYI, I found this while looking at what this branch does:

https://issues.jboss.org/browse/WFCORE-565

Not something that needs to be fixed in this PR or by you; just an FYI.

}
discoveryOptionsOrdering.add(type, Util.getNameFromAddress(operation.get(OP_ADDR)));
list.add(type, node);
Copy link
Contributor

Choose a reason for hiding this comment

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

This produces a list of ModelType.PROPERTY instead of the specified list of ModelType.OBJECT

ModelNode element = new ModelNode();
element.get(type).set(node);
list.add(element);

will produce the expected structure.

Alexey Loubyansky and others added 3 commits February 26, 2015 15:56
@wildfly-ci
Copy link

Windows Build 960 is now running using a merge of bb6db8b

@wildfly-ci
Copy link

Linux Build 1275 is now running using a merge of bb6db8b

@wildfly-ci
Copy link

Core - Full Integration Build 538 is now running using a merge of bb6db8b

@@ -52,6 +52,7 @@

/**
* Gets the host name of the remote domain controller.
* This method may return null.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was not sure about this. It looks to me it's not expected to return null though.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's messy. It can return null until the discover() method is invoked. I commented more on WFCORE-565.

I wanted to play with this yesterday so I could see what the read-resource and read-resource-description responses looked like, including with custom-discovery set up. I found a lot of problems, but not due to this patch.

https://github.com/bstansberry/wildfly-core/commits/WFCORE-565 had some quick changes just to get things so I could do my experiments.

@wildfly-ci
Copy link

Windows Build 960 outcome was FAILURE using a merge of bb6db8b
Summary: Tests failed: 2 (2 new), passed: 3045, ignored: 68 Build time: 0:19:24

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.integration.domain.AdminOnlyPolicyTestCase.testAllowNoConfigWithDiscovery: java.lang.RuntimeException: Could not start container
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.awaitHostController(DomainLifecycleUtil.java:464)
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.start(DomainLifecycleUtil.java:248)

org.jboss.as.test.integration.domain.AdminOnlyPolicyTestCase.testFetchFromMasterWithDiscovery: java.lang.RuntimeException: Could not start container
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.awaitHostController(DomainLifecycleUtil.java:464)
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.start(DomainLifecycleUtil.java:248)

@wildfly-ci
Copy link

Linux Build 1275 outcome was FAILURE using a merge of bb6db8b
Summary: Tests failed: 2 (2 new), passed: 3045, ignored: 68 Build time: 0:22:01

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.integration.domain.AdminOnlyPolicyTestCase.testAllowNoConfigWithDiscovery: java.lang.RuntimeException: Could not start container
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.awaitHostController(DomainLifecycleUtil.java:464)
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.start(DomainLifecycleUtil.java:248)

org.jboss.as.test.integration.domain.AdminOnlyPolicyTestCase.testFetchFromMasterWithDiscovery: java.lang.RuntimeException: Could not start container
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.awaitHostController(DomainLifecycleUtil.java:464)
    at org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil.start(DomainLifecycleUtil.java:248)

@wildfly-ci
Copy link

Core - Full Integration Build 538 outcome was SUCCESS using a merge of bb6db8b
Summary: Tests passed: 2827, ignored: 414 Build time: 0:47:26

…inition allows undefined values for its attributes
@wildfly-ci
Copy link

Windows Build 961 is now running using a merge of bc790f6

@wildfly-ci
Copy link

Linux Build 1276 is now running using a merge of bc790f6

@wildfly-ci
Copy link

Core - Full Integration Build 539 is now running using a merge of bc790f6

@wildfly-ci
Copy link

Linux Build 1276 outcome was FAILURE using a merge of bc790f6
Summary: Tests failed: 9 (9 new), passed: 3043, ignored: 68 Build time: 0:20:34

Build problems:

Failed tests detected

Failed tests

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPS: java.io.IOException: java.util.concurrent.CancellationException: Operation was cancelled
    at org.jboss.threads.AsyncFutureTask.operationCancelled(AsyncFutureTask.java:70)
    at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:267)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPS: java.io.IOException: org.jboss.remoting3.NotOpenException: Cannot open new channel because close was initiated
    at org.jboss.remoting3.remote.RemoteConnectionHandler.handleOutboundChannelOpen(RemoteConnectionHandler.java:190)
    at org.jboss.remoting3.remote.RemoteConnectionHandler.open(RemoteConnectionHandler.java:327)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTP: java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTP: java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPWithSecureInterface: java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPWithSecureInterface: java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPSWithSecureInterface: java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase.testHTTPSWithSecureInterface: java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)

org.jboss.as.test.integration.domain.HTTPSManagementInterfaceTestCase: java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)

@aloubyansky
Copy link
Contributor Author

retest this please

@wildfly-ci
Copy link

Windows Build 961 outcome was FAILURE using a merge of bc790f6
Summary: Execution timeout (new); tests passed: 3011, ignored: 68; org.wildfly.core:wildfly-core-testsuite-domain Build time: 0:45:06

Build problems:

Execution timeout
Process exited with code 1

@wildfly-ci
Copy link

Core - Full Integration Build 539 outcome was SUCCESS using a merge of bc790f6
Summary: Tests passed: 2827, ignored: 414 Build time: 0:47:18

@wildfly-ci
Copy link

Core - Full Integration Build 540 is now running using a merge of bc790f6

@wildfly-ci
Copy link

Linux Build 1277 is now running using a merge of bc790f6

@wildfly-ci
Copy link

Windows Build 962 is now running using a merge of bc790f6

@wildfly-ci
Copy link

Windows Build 962 outcome was SUCCESS using a merge of bc790f6
Summary: Tests passed: 3047, ignored: 68 Build time: 0:19:09

@wildfly-ci
Copy link

Linux Build 1277 outcome was SUCCESS using a merge of bc790f6
Summary: Tests passed: 3047, ignored: 68 Build time: 0:21:38

@wildfly-ci
Copy link

Core - Full Integration Build 540 outcome was SUCCESS using a merge of bc790f6
Summary: Tests passed: 2827, ignored: 414 Build time: 0:47:16

@bstansberry bstansberry added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Feb 26, 2015
bstansberry added a commit that referenced this pull request Feb 26, 2015
https://issues.jboss.org/browse/WFCORE-508 Remove need to maintain discovery-option ordering separately from the option
@bstansberry bstansberry merged commit 47a5e1d into wildfly:master Feb 26, 2015
iweiss pushed a commit to iweiss/wildfly-core that referenced this pull request Jun 14, 2018
[JBEAP-14276] upgrade picketbox to 5.0.3.Final
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
Development

Successfully merging this pull request may close these issues.

3 participants