[JBoss JIRA] (WFLY-12098) Thread context class loader is wrong for ScheduledExecutorService threads
by Ivo Studensky (Jira)
[ https://issues.jboss.org/browse/WFLY-12098?page=com.atlassian.jira.plugin... ]
Ivo Studensky commented on WFLY-12098:
--------------------------------------
[~doublep_] Can I ask you for a reproducer of this? The ScheduledExecutorService should have the correct class loader set. It is covered by testcases on our side.
> Thread context class loader is wrong for ScheduledExecutorService threads
> -------------------------------------------------------------------------
>
> Key: WFLY-12098
> URL: https://issues.jboss.org/browse/WFLY-12098
> Project: WildFly
> Issue Type: Bug
> Components: Concurrency Utilities
> Affects Versions: 16.0.0.Final
> Reporter: Paul Pogonyshev
> Assignee: Ivo Studensky
> Priority: Major
>
> Tasks submitted to the standard ScheduledExecutorService (JNDI: java:comp/DefaultManagedScheduledExecutorService) are executed in threads with class loader that cannot find application classes. This is a regression in 16.0 compared to 14.0 (haven't tested 15). Tasks submitted to the simple ExecutorService (JNDI: java:comp/DefaultManagedExecutorService) see the correct class loader.
> I.e. if I submit something like
> () -> { System.out.println (Thread.currentThread ().getContextClassLoader (); }
> to both services (i.e. exactly the same task), I get the following output. For ScheduledExecutorService (wrong):
> ModuleClassLoader for Module "org.jboss.as.ee" version 16.0.0.Final from local module loader @275710fc (finder: local module finder @525f1e4e (roots: [...]/wildfly/modules,[...]/wildfly/modules/system/layers/base))
> For ExecutorService (as expected):
> ModuleClassLoader for Module "deployment.[...].war" from Service Module Loader
> Plain ExecutorService sees exactly the same class loader as normal threads in which HTTP request are processed. In version 14.0 this was also true for ScheduledExecutorService.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months
[JBoss JIRA] (WFWIP-202) Runtime changes to disableHTTPRoute are not reflected in Route object
by Martin Choma (Jira)
[ https://issues.jboss.org/browse/WFWIP-202?page=com.atlassian.jira.plugin.... ]
Martin Choma commented on WFWIP-202:
------------------------------------
[~jmesnil] Does it mean we need to introduced wildfly.org/wildfly-server-generation annotation on Route object as well similary to StatefulSet [1] ?
[1] https://github.com/wildfly/wildfly-operator/pull/67
> Runtime changes to disableHTTPRoute are not reflected in Route object
> ---------------------------------------------------------------------
>
> Key: WFWIP-202
> URL: https://issues.jboss.org/browse/WFWIP-202
> Project: WildFly WIP
> Issue Type: Bug
> Components: OpenShift
> Reporter: Martin Choma
> Assignee: Jeff Mesnil
> Priority: Blocker
>
> Any changes (adding, removing or updating) made to disableHTTPRoute attribute after WildFlyServer CR was created are not reflected in underlying Route object.
> Reproducer:
> # create CR
> {code}
> apiVersion: wildfly.org/v1alpha1
> kind: WildFlyServer
> metadata:
> generation: 1
> name: eap-cd
> namespace: default
> spec:
> applicationImage: >-
> brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
> size: 1
> disableHTTPRoute: false
> {code}
> # Edit CR with disableHTTPRoute: true. I would expect Route object will be deleted.
> {code}
> apiVersion: wildfly.org/v1alpha1
> kind: WildFlyServer
> metadata:
> generation: 1
> name: eap-cd
> namespace: default
> spec:
> applicationImage: >-
> brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
> size: 1
> disableHTTPRoute: true
> {code}
> # Route object eap-cd is not disabled/deleted
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months
[JBoss JIRA] (WFWIP-202) Runtime changes to disableHTTPRoute are not reflected in Route object
by Martin Choma (Jira)
Martin Choma created WFWIP-202:
----------------------------------
Summary: Runtime changes to disableHTTPRoute are not reflected in Route object
Key: WFWIP-202
URL: https://issues.jboss.org/browse/WFWIP-202
Project: WildFly WIP
Issue Type: Bug
Components: OpenShift
Reporter: Martin Choma
Assignee: Jeff Mesnil
Any changes (adding, removing or updating) made to disableHTTPRoute attribute after WildFlyServer CR was created are not reflected in underlying Route object.
Reproducer:
# create CR
{code}
apiVersion: wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
generation: 1
name: eap-cd
namespace: default
spec:
applicationImage: >-
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
size: 1
disableHTTPRoute: false
{code}
# Edit CR with disableHTTPRoute: true. I would expect Route object will be deleted.
{code}
apiVersion: wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
generation: 1
name: eap-cd
namespace: default
spec:
applicationImage: >-
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
size: 1
disableHTTPRoute: true
{code}
# Route object eap-cd is not disabled/deleted
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months
[JBoss JIRA] (WFWIP-200) Runtime changes to sessionAffinity are not reflected in underlying objects
by Martin Choma (Jira)
[ https://issues.jboss.org/browse/WFWIP-200?page=com.atlassian.jira.plugin.... ]
Martin Choma updated WFWIP-200:
-------------------------------
Description:
Any changes (adding, removing or updating) made to sessionAffinity attribute after WildFlyServer CR was created are not reflected in underlying Service kubernetes object.
Reproducer:
# create CR
{code}
apiVersion: wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
generation: 1
name: eap-cd
namespace: default
spec:
applicationImage: >-
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
size: 1
{code}
# Edit CR with sessionAffinity: true
{code}
apiVersion: wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
generation: 1
name: eap-cd
namespace: default
spec:
applicationImage: >-
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
size: 1
sessionAffinity: true
{code}
# Service object eap-cd-loadbalancer is not updated
was:
Any chnages (adding, removing or updating) made to sessionAffinity attribute after WildFlyServer CR was created are not reflected in underlying Service kubernetes object.
Reproducer:
# create CR
{code}
apiVersion: wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
generation: 1
name: eap-cd
namespace: default
spec:
applicationImage: >-
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
size: 1
{code}
# Edit CR with sessionAffinity: true
{code}
apiVersion: wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
generation: 1
name: eap-cd
namespace: default
spec:
applicationImage: >-
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
size: 1
sessionAffinity: true
{code}
# Service object eap-cd-loadbalancer is not updated
> Runtime changes to sessionAffinity are not reflected in underlying objects
> --------------------------------------------------------------------------
>
> Key: WFWIP-200
> URL: https://issues.jboss.org/browse/WFWIP-200
> Project: WildFly WIP
> Issue Type: Bug
> Components: OpenShift
> Reporter: Martin Choma
> Assignee: Jeff Mesnil
> Priority: Blocker
>
> Any changes (adding, removing or updating) made to sessionAffinity attribute after WildFlyServer CR was created are not reflected in underlying Service kubernetes object.
> Reproducer:
> # create CR
> {code}
> apiVersion: wildfly.org/v1alpha1
> kind: WildFlyServer
> metadata:
> generation: 1
> name: eap-cd
> namespace: default
> spec:
> applicationImage: >-
> brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
> size: 1
> {code}
> # Edit CR with sessionAffinity: true
> {code}
> apiVersion: wildfly.org/v1alpha1
> kind: WildFlyServer
> metadata:
> generation: 1
> name: eap-cd
> namespace: default
> spec:
> applicationImage: >-
> brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0-4
> size: 1
> sessionAffinity: true
> {code}
> # Service object eap-cd-loadbalancer is not updated
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months