Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ISPN-12273 Potential race condition during wiring of EncoderCache

Fix the race condition in factory auto-instantiation

by allowing all threads that see an EMPTY component wrapper

to create the instance (regardless of whether they registered

the component wrapper or not).

    • -1
    • +0
    ./impl/BasicComponentRegistryImplTest.java
    • -0
    • +97
    ./impl/FactoryAutoInstantiationTest.java
  1. … 2 more files in changeset.
ISPN-12273 Potential race condition during wiring of EncoderCache

Fix the race condition in factory auto-instantiation

by allowing all threads that see an EMPTY component wrapper

to create the instance (regardless of whether they registered

the component wrapper or not).

    • -1
    • +0
    ./impl/BasicComponentRegistryImplTest.java
    • -0
    • +97
    ./impl/FactoryAutoInstantiationTest.java
  1. … 2 more files in changeset.
TestModuleRepository relies on package-local stuff located in another java module

* refactor to avoid module access violations

* make TestModuleRepository final

* generify several usages of ComponentAccessor

  1. … 5 more files in changeset.
ISPN-11800 Convert BackupReceiver to component

    • -0
    • +5
    ./impl/MockBasicComponentRegistry.java
  1. … 18 more files in changeset.
ISPN-11370 Move some classes/methods to commons-test

* Move TestResourceTracker

* Move Exceptions, ThrowableSupplier and ExceptionRunnable

* Move some methods from TestingUtil

    • -1
    • +1
    ./impl/BasicComponentRegistryImplTest.java
  1. … 264 more files in changeset.
ISPN-11370 Move some classes/methods to commons-test

* Move TestResourceTracker

* Move Exceptions, ThrowableSupplier and ExceptionRunnable

* Move some methods from TestingUtil

    • -1
    • +1
    ./impl/BasicComponentRegistryImplTest.java
  1. … 264 more files in changeset.
ISPN-10904 CallerRunsRejectOnShutdownPolicy should throw IllegalLifecycleStateException

* Also refactored references of IllegalLifecycleStateException to use

commons

    • -1
    • +1
    ./impl/BasicComponentRegistryImplTest.java
  1. … 32 more files in changeset.
ISPN-10746 Remove data-segmentation feature

  1. … 12 more files in changeset.
ISPN-10592 Remove deprecated ComponentMetadata, ComponentMetadataRepo, ManageableComponentMetadata

* fossils of the old component registry must go: ComponentMetadata, ComponentMetadataRepo, ManageableComponentMetadata, ModuleMetadataFileFinder

  1. … 14 more files in changeset.
ISPN-10574 Off Heap iteration performance improvements

* Use fibonacci hash instead of murmur to prevent collisions

* Change iteration to return entries per bucket instead of lock region

* Add in resizing of OffHeapConcurrentMap

* Remove old addressCount from XML

* Deprecated addressCount from memory configs

  1. … 30 more files in changeset.
ISPN-9657 Change Scope retention to CLASS

  1. … 12 more files in changeset.
ISPN-10137 Change the annotation retention from RUNTIME to CLASS

    • -4
    • +2
    ./impl/MockBasicComponentRegistry.java
    • -0
    • +120
    ./impl/TestComponentAccessors.java
  1. … 27 more files in changeset.
ISPN-10137 Remove runtime dependency on component-annotations

    • -2
    • +2
    ./impl/BasicComponentRegistryImplTest.java
  1. … 13 more files in changeset.
ISPN-9599 Require ADMIN permission for getGlobalComponentRegistry

* Deprecate getGlobalComponentRegistry and getComponentRegistry

* Require ADMIN permission for both

* Require ADMIN permission for configuration getters

(getCacheManagerConfiguration, getDefaultCacheConfiguration,

getCacheConfiguration)

* Remove some internal usages of the configuration getters

* Trust org.jboss.as.clustering.infinispan.* packages

  1. … 128 more files in changeset.
ISPN-9599 Require ADMIN permission for getGlobalComponentRegistry

* Deprecate getGlobalComponentRegistry and getComponentRegistry

* Require ADMIN permission for both

* Require ADMIN permission for configuration getters

(getCacheManagerConfiguration, getDefaultCacheConfiguration,

getCacheConfiguration)

* Remove some internal usages of the configuration getters

* Trust org.jboss.as.clustering.infinispan.* packages

  1. … 131 more files in changeset.
ISPN-10137 Add missing @Scope and @SurvivesRestarts

* @Scope is required on each component class, except when inherited

from superclass (interfaces don't count)

* @SurvivesRestarts must be duplicated on all subclasses

or implementing classes

    • -0
    • +1
    ./impl/BasicComponentRegistryImplTest.java
  1. … 136 more files in changeset.
ISPN-10137 Make injected fields and methods package-private

  1. … 184 more files in changeset.
ISPN-10059 Off-heap clustered cache cannot start with segmentation disabled

* Implement addSegments/removeSegments in OffHeapDataContainer

and BoundedOffHeapDataContainer

* Use the InternalDataContainerAdapter implementation in all

non-segmented InternalDataContainer implementations

* Only retry the join request on failure

* Skip tests that require segmentation when the feature is disabled

  1. … 10 more files in changeset.
ISPN-10059 Off-heap clustered cache cannot start with segmentation disabled

* Implement addSegments/removeSegments in OffHeapDataContainer

and BoundedOffHeapDataContainer

* Use the InternalDataContainerAdapter implementation in all

non-segmented InternalDataContainer implementations

* Only retry the join request on failure

* Skip tests that require segmentation when the feature is disabled

  1. … 10 more files in changeset.
ISPN-9538 Allow for segmentation to be configurable via Features

* Add Test annotation for DataContainerFactoryTest

ISPN-9538 Unit testing DataContainerFactory

    • -0
    • +144
    ./DataContainerFactoryTest.java
  1. … 1 more file in changeset.
ISPN-9127 Component registry

Introduce BasicComponentRegistry, which handles dependency injection but

doesn't have any logic specific to caches or managers.

Each component has its own lifecycle status, and starting a component

also starts its dependencies. Components can start in parallel.

ComponentRegistry and GlobalComponentRegistry still need to maintain

their own lifecycle status, but it is now possible to start a cache

before all the global components have finished starting.

    • -0
    • +271
    ./impl/BasicComponentRegistryImplTest.java
  1. … 242 more files in changeset.
ISPN-9621 Marshallers separated into Persistence and Internal marshaller.

PersistenceMarshaller created based upon ProtoStream. Internal

persistence classes are marshalled using the protostream marshallers

and schema generated by protostream-processor.

The GlobalMarshaller still utilises the same IDs as before for

marshalling internal classes between nodes, but delegates to the

persistence marshaller for marshalling persistence and user classes.

ISPN-7409 user objects are marshalled via the marshaller specified in

SerializationConfiguration and the resulting bytes are wrapped in a

UserObject message. The default marshaller is the JBossMarshaller

with just the user configured external externalizers loaded.

ISPN-9624 StreamingMarshaller interface has been deprecated for external use and

has been replaced with the simplified StreamAwareMarshaller interface.

    • -0
    • +4
    ./impl/MockBasicComponentRegistry.java
  1. … 178 more files in changeset.
ISPN-10137 Replace component metadata files with generated classes

* Move component annotations to module component-annotations

* Generate accessor classes with annotation processor

* Deprecate ComponentMetadataRepo, replace with ModuleRepository

* Delete component metadata persister

* Require lifecycle with @InfinispanModule in each module

* ModuleLifecycle is no longer a service

* Require @Scope for injection and lifecycle

* Require @MBean for managed attributes or operations

* @Scope and @MBean are inherited (only from classes)

* Require duplicate @SurvivesRestarts on subclasses

* Annotated classes, fields, and methods must be package-private

* Anonymous classes are not supported

* Deprecate lifecycle method priorities

* Test module can register components via global configuration

    • -12
    • +11
    ./impl/BasicComponentRegistryImplTest.java
  1. … 189 more files in changeset.
ISPN-5683 Organized imports

  1. … 2826 more files in changeset.
ISPN-3514 Align XML configuration between Server and Embedded

* The objective is for server configuration to be readable by embedded

and viceversa.

* Those elements that are not relevant for embedded configuration are

ignored and highlighted with an INFO message.

* All configuration affecting test results has been adjusted.

* This commit does not include changes to demos, documentation or

schema files. This will come later, once the XML has been fully agreed.

* If there's any testing XML that has not been converted, it's because

it's not being tested at all, it should be removed in the cleanup phase.

* During the cleanup phase, all unused attributes/elements and parsers

will be removed.

* The XML in general follows the pattern used by server which means

that there are some noticeable changes to the way embedded XML is

configured:

* Cache mode is now part of the cache definition, i.e. local-cache,

distributed-cache...etc.

* Default cache is now specified at the cache container level, naming

it.

* Shutdown hook now configured as an attribute of cache instead of

a separate element.

* X-Site local site derived from transport's site-id, instead of adding

yet another xml configuration option.

* Compatibility mode drops enabled attribute, element being present

enables it.

* Same thing happens with versioning, element being present enables it.

* Deadlock detection's spin duration used to enable/disable it. If

configured with a value below 0, it's disabled.

* unsafe.unreliableReturnValues is now configured via an attribute

instead of a separate element.

* store-as-binary is disabled by making sure keys and values are both

set to false.

* L1 is disabled by making its lifespan -1.

* Replication queue configured via cache level attributes, and it's

disabled by making the queue size negative.

* Simplified thread pool configuration by avoiding to leak XML

configuration details into programmatic API. In the programmatic

version, just provide factories.

* Fixed thread pool injection in server.

    • -0
    • +22
    ./threads/ThreadNameInfoTest.java
  1. … 133 more files in changeset.
ISPN-3185 License and copyright header update

  1. … 3169 more files in changeset.
ISPN-3096 ComponentRegistryTest.testConcurrentLookupSameComponentRegistry intermittent failure

Use a latch to block the injection thread instead of an arbitrary timeout.

  1. … 1 more file in changeset.
ISPN-2796 ConcurrentCacheManagerTest.testConcurrentGetCacheCalls hangs the test suite (randomly)

* DefaultCacheManager.wireAndStartCache didn't open the cache latch if

it failed to inject all dependencies, blocking all other threads.

* ComponentRegistry.getOrCreateComponent was not atomic if the component

was cache-scoped and the factory was global-scoped.

    • -0
    • +109
    ./ComponentRegistryTest.java
  1. … 6 more files in changeset.
ISPN-2796 ConcurrentCacheManagerTest.testConcurrentGetCacheCalls hangs the test suite (randomly)

* DefaultCacheManager.wireAndStartCache didn't open the cache latch if

it failed to inject all dependencies, blocking all other threads.

* ComponentRegistry.getOrCreateComponent was not atomic if the component

was cache-scoped and the factory was global-scoped.

    • -0
    • +109
    ./ComponentRegistryTest.java
  1. … 6 more files in changeset.