* Use spotless to format the code
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
* Support develop with JDK 21
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
---------
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
* Fix hashCode change in 2.6 DIY ConsistentHashLoadBalance
When using 2.6.x DIY ConsistentHashLoadBalance, Invoker will wrap to CompatibleInvoker. Then invokers.hashCode() will return different hashCode event original Invokers not change. This will cause many duplicate Object like ConsistentHashSelector in jvm Eden space, and young gc will be very frequently.
* add override equals
* Add object and class check equals
* fix ClassCastException caused by 2.x's filter in some condition
* compatible of RpcResult in dubbo version 2.x
* extends AppResponse to make code better
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
* Add whenCompleteWithContext empty implement to compatible of FilterChainBuilder's invoke
* Add license
* Update compact
* Fix 2.6's Filter return RpcResult handle as AsyncRpcResult
When DubboProtocol.CompletableFuture running result.thenApply and FilterChainBuilder.CallbackRegistrationInvoker running asyncResult.whenCompleteWithContext. All Result handle as AsyncRpcResult, so RpcResult add some methods implements seems like AsyncRpcResult does.
* revert last commit
---------
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
* speed up maven building, disable update snapshot, remove unnecessary repositories
* reduce shutdown wait time
* update maven version to fix build error such as "java.lang.IllegalStateException: Entry [id:..][route:{s}->...][state:null] has not been leased from this pool", see
https://issues.apache.org/jira/browse/HTTPCORE-634 (httpcore 4.4.14)
* add shutdown timeout for netty4
* fix scope model
* read server shutdown wait time before destroy
* Add shutdown timeout for triple protocol
* Improve register center of tests
* set shutdown wait time as attribute of ProtocolServer
* Fix reconnect and close
* fix closePromise
* Add ExtensionDirector and Models
* Fix access static getter method of ApplicationModel
* Replace ExtensionFactory with ExtensionInjector
* specify scope of some SPIs
* Support scoped injection for extension
* improve create extension loader logic
* Add ScopeModel and ScopeBeanFactory, fix extension initialization of XxxConfig
* polish doc of scope model
* Extract FrameworkStatusReportService from FrameworkStatusReporter
* Fix application model of default bootstrap instance
* Pass scope model through URL
* Fix scope model of registry, metadata, cluster and so on
* exact ServiceModel from ProviderModel and ConsumerModel
* Add ASF license header for ScopeBeanFactoryInitializer
* Remove unused import
* Remove unused import
* Fix ut in ConfigManagerTest
* Change default Scope Behave
* Resolve recursive creation of Scope Model
* Fix inject default model when scope is parent
* Fix inject default model when scope is parent
* Compact with url without ScopeModel
* Change HttpBinder Scope
* Change some SPIs' scope
* Fix setApplicationModel override issue of MetadataServiceNameMapping
* Default inject ScopeModel in ConfigManager
* Add default Scope for AbstractConfig when init
* Fix field override & Fix ut env
* Fix zk not startup in DubboBootstrapMultiInstanceTest
* Fix ExtensionAccessor not inject in UT of MetricsFilterTest
* Compact old style getName
* Fix UT in DNSServiceDiscoveryTest
* Compact old style ApplicationModel
* Fix UT in DNSServiceDiscoveryTest
* Fix repository changed after ApplicationModel destroyed
* Fix SpringExtensionInjector pollution in UT
* Pass ApplicationModel in ServiceInstance
* reintroduce metadata delay key
* Add Transient on ApplicationModel getter of DefaultServiceInstance
* Fix Configurator Listener in Singleton mode override issue
* Fix Configurator Listener in Singleton mode override issue
* Compact old style getApplication
* Invocation pass ServiceModel
* Compact old style registerConsumer
* Fix NPE in RpcInvocation
* Add ServiceModel pass when init
* Fix ServiceModel cast error
* Add ServiceModel pass when invoke
* Fix NPE when simplify registry url
* Revert "Resolve recursive creation of Scope Model"
This reverts commit 37a99957
* Improve scope model aware
* polish scope model
* Cleanup ApplicationModel.defaultModel usage
* Fix ut
* Compatible with 2.6 Registry
* Fix ut
* Add Callback Service build ProviderModel
* improve scope model of config bean
* Fix scope model of reference/service model
* Revert CallbackServiceCodec for dev
* Fix scope model NPE
* Fix consumer url NPE
* Add Callback Service build ProviderModel
* Fix NPE when destroy
* Fix ut
* pick from Add Callback Service build ProviderModel (b47b2777f9)
* add failback logic for ut
* Fix ut
* Add Scope Model check
* Fix adaptive spi extension loading
* update adaptive classes
* Split ServiceRepository
* Fix apache license
* Fix UT
* Fix uts
* Fix DubboCodec
* Fix ut in DubboBootstrapTest
* Fix ut in DubboBootstrapTest
* Suspend register duplicate providers error
* Improve get unwrapped extension
* Fix GenericServiceTest
* Destroy all protocols in DubboBootstrap.reset()
* Add --no-snapshot-updates and -fae for test fail safe
* Fix uts
* Reset ApplicationModel Before Test
* Improve scope model initialization
* Support instantiating spi/bean constructor with scope model parameters
* change to fail never mode (-fn)
* get unwrapped instance of DubboProtocol
* Change referenced config's scope model after scope model changed
* Change referenced config's scope model after scope model changed
* Fix NPE of setScopeMode
* change to fail-at-end (-fae) mode
* Fix change scope model error
* Avoid duplicate destroy model
* Fix LocalCallMultipleReferenceAnnotationsTest
* Avoid injection bean type of java.lang.Object
* change to fail fast mode
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>