[rhq-project/rhq] f4d09f: Bug 1077744 - statement timeout during drift purge...
by Thomas Segismont
Branch: refs/heads/release/jon3.3.x
Home: https://github.com/rhq-project/rhq
Commit: f4d09f5c229d6d69ad556e4ae7fcba03a24ee513
https://github.com/rhq-project/rhq/commit/f4d09f5c229d6d69ad556e4ae7fcba0...
Author: Thomas Segismont <tsegismo(a)redhat.com>
Date: 2014-09-26 (Fri, 26 Sep 2014)
Changed paths:
M modules/core/domain/src/main/java/org/rhq/core/domain/drift/JPADriftFile.java
M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/drift/JPADriftServerBean.java
M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/drift/JPADriftServerLocal.java
A modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/purge/JPADriftFilePurge.java
M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/purge/PurgeManagerBean.java
M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/purge/PurgeManagerLocal.java
M modules/enterprise/server/plugins/drift-rhq/src/main/java/org/rhq/enterprise/server/plugins/drift/JPADriftServerPluginComponent.java
Log Message:
-----------
Bug 1077744 - statement timeout during drift purge job
Changed the query WHERE clause: don't use NOT IN because NOT IN(NULL) will always return false.
See http://stackoverflow.com/questions/17150208/sql-query-with-not-in-returni...
In other words, if any row in RHQ_DRIFT as a NULL value in OLD_DRIFT_FILE or NEW_DRIFT_FILE columns, we'll never purge anything.
Besides, the NOT EXISTS variant has a better execution plan.
Use PurgeTemplate to delete rows in batches and select the keys of the rows to delete without locking the drift files table.
Also, some code cleanup.
(cherry picked from commit 3251090d63f58f0da3d604f30cc8f819533e0fcc)
Signed-off-by: Libor Zoubek <lzoubek(a)redhat.com>
9 years, 7 months
[rhq-project/rhq] 1101df: Bug 1140676 - Exception logged while inventorying ...
by Thomas Segismont
Branch: refs/heads/release/jon3.3.x
Home: https://github.com/rhq-project/rhq
Commit: 1101df820b973198d4026d7cfd8402ee9797540b
https://github.com/rhq-project/rhq/commit/1101df820b973198d4026d7cfd8402e...
Author: Thomas Segismont <tsegismo(a)redhat.com>
Date: 2014-09-26 (Fri, 26 Sep 2014)
Changed paths:
M modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/BaseComponent.java
M modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/BaseServerComponent.java
A modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/json/SecurityRealmNotReadyException.java
Log Message:
-----------
Bug 1140676 - Exception logged while inventorying EAP 6 host controller after setting http-interface
Throw IPCE when security realm is not ready so that a proper resource
error shows up in the GUI.
(cherry picked from commit 9c1d53de54065ac9240df9c5d526fef04b09419c)
Signed-off-by: Libor Zoubek <lzoubek(a)redhat.com>
9 years, 7 months
[rhq-project/rhq] 145944: Bug 1125423 - Fuse Fabric Groups Plugin cannot be ...
by Libor Zoubek
Branch: refs/heads/release/jon3.3.x
Home: https://github.com/rhq-project/rhq
Commit: 1459445b51a2214b674262dfd657a88866ae691a
https://github.com/rhq-project/rhq/commit/1459445b51a2214b674262dfd657a88...
Author: Libor Zoubek <lzoubek(a)redhat.com>
Date: 2014-09-26 (Fri, 26 Sep 2014)
Changed paths:
A modules/core/domain/src/main/java/org/rhq/core/domain/plugin/PluginConfigurationRequiredException.java
M modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/server/gwt/PluginGWTServiceImpl.java
M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/plugin/ServerPluginManagerBean.java
Log Message:
-----------
Bug 1125423 - Fuse Fabric Groups Plugin cannot be enabled
Generally when there is an attempt to enable server plugins we now first
check it's configuration by looking for required properties (in ConfigDef)
and making sure there's valid value in configuration. If something is
missing, it means plugin is not configured and cannot be enabled.
ServerPluginManagerBean thows this using
PluginConfigurationRequiredException that is then presented to user.
(cherry picked from commit bd1095fa5ac2f55544d5f8c4b45033b4050b94d9)
Signed-off-by: Thomas Segismont <tsegismo(a)redhat.com>
Commit: b223cef6f2fb9af6db5d2030a0a8e61ac399eea3
https://github.com/rhq-project/rhq/commit/b223cef6f2fb9af6db5d2030a0a8e61...
Author: Libor Zoubek <lzoubek(a)redhat.com>
Date: 2014-09-26 (Fri, 26 Sep 2014)
Changed paths:
M modules/enterprise/server/itests-2/src/test/java/org/rhq/enterprise/server/plugin/ServerPluginsBeanTest.java
M modules/enterprise/server/itests-2/src/test/java/org/rhq/enterprise/server/plugin/pc/generic/TestGenericServerPluginService.java
Log Message:
-----------
Bug 1125423 - Fuse Fabric Groups Plugin cannot be enabled
Fixed failing itest and also added test
(cherry picked from commit c4fc397e59325e17fca9a06af93acd2d79015f20)
Signed-off-by: Thomas Segismont <tsegismo(a)redhat.com>
Compare: https://github.com/rhq-project/rhq/compare/b18999965418...b223cef6f2fb
9 years, 7 months
[rhq-project/rhq] b18999: [BZ 1133947] - Unregistered LDAP user without role...
by Jiri Kremser
Branch: refs/heads/release/jon3.3.x
Home: https://github.com/rhq-project/rhq
Commit: b1899996541837efbeeb1895d7e4d730cb9124fd
https://github.com/rhq-project/rhq/commit/b1899996541837efbeeb1895d7e4d73...
Author: Jirka Kremser <jkremser(a)redhat.com>
Date: 2014-09-26 (Fri, 26 Sep 2014)
Changed paths:
M modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/server/gwt/SubjectGWTServiceImpl.java
M modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/admin/user/EditPasswordAction.java
M modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/admin/user/RegisterAction.java
M modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/authentication/AuthenticateUserAction.java
M modules/enterprise/server/itests-2/src/test/java/org/rhq/enterprise/server/auth/test/SubjectManagerBeanTest.java
M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/auth/SubjectManagerBean.java
M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/auth/SubjectManagerLocal.java
Log Message:
-----------
[BZ 1133947] - Unregistered LDAP user without role can login to CLI - introducing loginLocal() method to be able to find out that user is comming from CLI (the case when SubjectManagerRemote.login() is called) and let him fail if it is LDAP user and is not registered in the system. This is now consistent with the REST endpoint, where we assume the registered LDAP user as well.
(cherry picked from commit 61bc3cebe032ac1bcdb8906d302d976d73ab3cdf)
Signed-off-by: Libor Zoubek <lzoubek(a)redhat.com>
9 years, 7 months