[midPoint-git] [Evolveum/midpoint] 20cbf3: Add TestManyThreads story test

mederly noreply at github.com
Fri Dec 20 15:41:09 UTC 2019


  Branch: refs/heads/feature/resource-manager-thread-safety
  Home:   https://github.com/Evolveum/midpoint
  Commit: 20cbf34c041d7d14e03e480e82a47eea6bfe5f3a
      https://github.com/Evolveum/midpoint/commit/20cbf34c041d7d14e03e480e82a47eea6bfe5f3a
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-12-16 (Mon, 16 Dec 2019)

  Changed paths:
    A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/ThreadTestExecutor.java
    A testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestManyThreads.java
    A testing/story/src/test/resources/threads/resource-dummy.xml

  Log Message:
  -----------
  Add TestManyThreads story test

(Also adding experimental TestThreadExecutor for testing executions
in multiple threads.)


  Commit: 77b0eb73b3f1751969609c9cae4e3d469578ab21
      https://github.com/Evolveum/midpoint/commit/77b0eb73b3f1751969609c9cae4e3d469578ab21
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-12-19 (Thu, 19 Dec 2019)

  Changed paths:
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestManyThreads.java

  Log Message:
  -----------
  Adapt TestManyThreads story test

It still founds no issues, though.


  Commit: 3b7247b32ed3859a3f9815b40d0950b0267f996d
      https://github.com/Evolveum/midpoint/commit/3b7247b32ed3859a3f9815b40d0950b0267f996d
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-12-19 (Thu, 19 Dec 2019)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebComponentUtil.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/DescriptorLoader.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/application/PageDescriptor.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/boot/actuator/ActuatorWebSecurityConfig.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/data/LinkedReferencePanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/prism/show/SceneItemValuePanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/wf/ApprovalProcessExecutionInformationPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/login/PageLogin.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/login/PageSamlSelect.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/BasicWebSecurityConfig.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/MidpointRestAuthenticationEntryPoint.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/filter/MidpointAnonymousAuthenticationFilter.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/filter/MidpointAuthFilter.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/filter/TranslateExeption.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/filter/configurers/AuthFilterConfigurer.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/HttpBasicModuleWebSecurityConfig.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/HttpHeaderModuleWebConfig.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/LoginFormModuleWebSecurityConfig.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/ModuleWebSecurityConfig.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/SamlModuleWebSecurityConfig.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/authentication/HttpHeaderModuleAuthentication.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/authentication/LoginFormModuleAuthentication.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/authentication/PasswordModuleAuthentication.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/authentication/Saml2ModuleAuthentication.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/configuration/ModuleWebSecurityConfigurationImpl.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/configuration/SamlModuleWebSecurityConfiguration.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/factory/AbstractPasswordModuleFactory.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/factory/HttpBasicModuleFactory.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/factory/HttpHeaderModuleFactory.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/factory/LoginFormModuleFactory.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/module/factory/Saml2ModuleFactory.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/provider/InternalPasswordProvider.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/provider/MidPointAbstractAuthenticationProvider.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/provider/PasswordProvider.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/security/util/SecurityUtils.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ObjectTypeUtil.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/SecurityPolicyUtil.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ValueDisplayUtil.java
    M model/model-api/pom.xml
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/authentication/MidpointAuthentication.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/authentication/ModuleAuthentication.java
    A model/model-api/src/main/java/com/evolveum/midpoint/model/api/authentication/NameOfModuleType.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    M repo/security-impl/pom.xml
    M repo/security-impl/src/main/java/com/evolveum/midpoint/security/impl/SecurityContextManagerImpl.java

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master'


  Commit: 4a773f1d6c11d9cab712fdd409baad524e8d02fb
      https://github.com/Evolveum/midpoint/commit/4a773f1d6c11d9cab712fdd409baad524e8d02fb
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-12-19 (Thu, 19 Dec 2019)

  Changed paths:
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismObjectImpl.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ProvisioningServiceImpl.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceCache.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceManager.java

  Log Message:
  -----------
  Improve thread safety of ResourceManager

This is the first step in the process of making ResourceManager
and ConnectorManager more thread-safe (MID-5954).

Here we only change ResourceCache to implement Cacheable, in order
to receive invalidation requests. Also some minor refactorings in
ResourceManager were done, mainly regarding (im)mutability of resource
objects being worked with.


  Commit: 0462088822e156fa81588904ff56121283a65602
      https://github.com/Evolveum/midpoint/commit/0462088822e156fa81588904ff56121283a65602
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-12-20 (Fri, 20 Dec 2019)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/wizard/resource/SchemaStep.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/resources/PageResource.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/resources/PageResourceWizard.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/resources/ResourceContentPanel.java
    M infra/common/src/main/java/com/evolveum/midpoint/common/refinery/RefinedConnectorSchemaImpl.java
    M infra/common/src/main/java/com/evolveum/midpoint/common/refinery/RefinedResourceSchemaImpl.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Item.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismContainer.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismContainerValue.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismObject.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismProperty.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismReference.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismReferenceValue.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismValue.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/ItemDelta.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/ObjectDelta.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/ItemImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismContainerImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismContainerValueImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismObjectImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismPropertyImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismReferenceImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismReferenceValueImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismValueImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/ItemDeltaImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/ObjectDeltaImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/item/DummyContainerImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/item/DummyPropertyImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/item/DummyReferenceImpl.java
    M infra/schema/src/main/resources/default-caching-profile.xml
    M infra/schema/src/test/java/com/evolveum/midpoint/schema/TestImmutable.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/Clockwork.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ContextLoader.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/VariablesUtil.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ConfiguredConnectorCacheKey.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ConnectorManager.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceCache.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceManager.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ShadowCache.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/errorhandling/CommunicationExceptionHandler.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/errorhandling/ErrorHandler.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/AbstractProvisioningIntegrationTest.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/AbstractBasicDummyTest.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummy.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummyResourceAndSchemaCaching.java
    M provisioning/ucf-api/src/main/java/com/evolveum/midpoint/provisioning/ucf/api/connectors/AbstractManagedConnectorInstance.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/RepositoryCache.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java

  Log Message:
  -----------
  Remove all immutable->mutable transitions

This is to ensure "once immutable, always immutable" policy.

Specifically:
1) Removed modifyUnfrozen methods (used for resources and connectors)
2) Changed setImmutable(true/false) to one-way setImmutable().

Induced and related changes:
- Setting resource availability state does NOT change in-memory resource
  object any more.
- Cleaned up and simplified caching of connector objects (also improving
  invalidation code).
- Enabled global repo caching of resources and connectors by default.
- Removed expansion of resource objects to resourceRefs in model preview
  operations.


Compare: https://github.com/Evolveum/midpoint/compare/20cbf34c041d%5E...0462088822e1


More information about the midPoint-svn mailing list