All notable end-user facing changes are documented in this file.
Here are all the changes in master
branch, and will be moved to the appropriate release once they are included in a published nuget package.
The idea is to track end-user facing changes as they occur.
- Several major performance improvements
- Add streaming support for types that are serialized using IExternalSerializers
- Improvements
- Support for grains with generic methods #2670
- IL-based fallback serializer #2162
- IncomingMessageAcceptor sockets change from APM to EAP #2275
- Show clearer error when ADO.NET provider fails to init #2303, #2306
- In client, when a gateway connection close reroute not yet sent message to another gateway #2298
- MySQL Script: Minor syntax tweak to support previous server versions #2342
- Azure Queue provider message visibility config #2401
- Propagate exceptions during message body deserialization #2364
- Check IAddressable before DeepCopy #2383
- Modified stream types to not use fallback serializer and allow external #2330
- Add "Custom/" prefix for NewRelic metrics #2453
- Ignore named EventWaitHandle when not available in platform #2462
- Heterogenous silos support #2443
- Update to Consul 0.7.0.3 nuget package, because of breaking change in Consul API. #2498
- Grain Services by @jamescarter-le #2531
- Expose IMembershipOracle & related interfaces #2557
- Trigger registration of clients connected to the gateways in the directory when a silo is dead #2587
- Log Consistency Providers #1854
- In XML config, if SystemStoreType set to Custom but no ReminderTableAssembly are specified, assume that ReminderServiceProviderType is set to Disabled #2589
- In config XML, when SystemStoreType is set to MembershipTableGrain, set ReminderServiceType to ReminderTableGrain #2590
- Service Fabric cluster membership providers #2542
- Adds optional native JSON support to MySQL #2288
- Azure table storage throws InconsistentStateException #2630
- Allow serializers to have multiple [Serializer(...)] attributes #2611
- Removed GrainStateStorageBridge from GrainCreator to allow better control of the IStorage used when using non-silo unit tests. #2243
- Failsafe Exception serialization #2633
- Added a data adapter to azure queue stream provider #2658
- Client cluster disconnection #2628
- Performance
- Several major performance improvements: #2220, #2221, #2170, #2218, #2312, #2524, #2510, #2481, #2579
- Replace CallContext.LogicalSetData with AsyncLocal #2200
- Release BinaryTokenStreamWriter buffers after use in more cases. #2326
- Bug fixes
- Empty deployment Id in Azure #2230
- Remove zero length check in Protobuf serializer #2251
- Make PreferLocalPlacement activate in other silos when shutting down #2276
- Reset GrainClient.ClientInvokeCallback when uninitializing GrainClient #2299
- Fix ObjectDisposedException in networking layer #2302
- Reset client gateway reciever buffer on socket reset. #2316
- Removed calling Trace.Close() from TelemetryConsumer.Close() #2396
- Removes deadlocking and corrupted hashing in SQL storage provider #2395
- Fix #2358: Invoke interceptor broken for generic grains #2502
- Only a hard coded set of statistics were going to telemetry consumers. Now all non-string statistics are tracked. #2513
- Fix invocation interception for grain extensions #2514
- Fix type assertion in AdaptiveDirectoryCacheMaintainer #2525
- MembershipTableFactory should call InitializeMembershipTable on membership table. #2537
- CodeGen: fix check on parameters to generic types with serializers #2575
- EventHubQueueCache failing to write checkpoints on purge #2613
- Fix code copy-paste errors discovered by Coverity #2639
- GrainServices are now Started by the Silo on Startup #2642
- Improvements
- Ability to specify interleaving per message type (was needed for Orleankka) #2246
- Support serialization of enums backed by non-Int32 fields #2237
- Add TGrainState constraints to document clearly what is needed by folks implementing stateful grains. #1923
- Serialization fixes #2295
- Update OrleansConfiguration.xsd with DI info #2314
- Reroute client messages via a different gateway upon a gateway disconnection #2298
- Add helper methods to ease ADO.NET configuration #2291
- EventHubStreamProvider improvements #2377
- Add queue flow controller that is triggered by silo load shedding. #2378
- Modify JenkinsHash to be stateless. #2403
- EventHub flow control customization knobs #2408
- Performance
- Invoker codegen: methods returning Task do not need Box() calls #2221
- CodeGen: Avoid wrapping IGrainMethodInvoker.Invoke body in try/catch #2220
- Remove contention point in GrainDirectoryPartition #2170
- Optimize the scheduler, remove redundant semaphore and interlocked exchange. #2218
- Remove delegate allocation #2312
- Release BinaryTokenStreamWriter buffers after use in more cases. #2326
- Provide better handling in Grain when the GrainRuntime or GrainIdentity is null #2338
- Bug fixes
- Reset client gateway reciever buffer on socket reset. #2316
- Removes potential deadlocking and corrupted hashing in ADO.NET storage provider #2395
- LoadShedQueueFlowControl cast fix #2405
- Bug fixes:
- Ignore empty deployment Id in Azure #2230
- Remove zero length check in Protobuf serializer #2251
- Make PreferLocalPlacement revert to RandomPlacement on non-active silos #2276
- Updated MemoryStreamProvider to support custom message serialization #2271
- Support for geo-distributed multi-cluster deployments #1108 #1109 #1800
- Providers
- Remove confusing parameter from AzureSilo.Start #2109
- Minimal Service Fabric integration #2120
- Update blob storage provider to throw on storage exceptions #1902
- Decode protobuf using MessageParser, not dynamic #2136
- Service Provider is no longer required by EventHubAdapter #2044
- Preliminary relational persistence queries #1682
- Add a function that checks the connection string for use during initialization #1987
- Added new Amazon AWS basic Orleans providers #2006
- A new ADO.NET storage provider that is significantly easier to setup, which replaces the the previous one. This change is not backwards compatible and does not support sharding (likely be replaced later with Orleans sharding provider). The most straightforward migration plan is likely to persist the state classes from Orleans application code. More information in #1682 and in #1682 (comment).
- Support for PostgreSql #2113
- Memory Storage eTag enforcement less strict. #1885
- Added option to perform provider commands quietly #1762
- CreateOrleansTables_SqlServer.sql: Removed support for SQL Server 2000 and 2005 #1779
- Streaming
- EventHub stream provider made more extensible #1861 1714
- EventHub stream provider with improved monitoring logging #1857 #2146
- EventHub stream provider time based message purge #2093
- Add Memory Stream Provider #2063
- Persistent stream pulling agent now uses exponential backoff #2078
- Add dynamic adding / removing stream providers functionality. #1966
- Consistent implicit subscription Id generation. #1828
- Event hub stream provider EventData to cached data mapping #1727
- Bug fixes
- CodeGen: fix generated DeepCopy method to call RecordObject earlier #2135
- Fix support for serializing SByte[] #2140
- Fix synchronization bug in Orleans/Async/BatchWorker #2133
- Fix #2119 by allowing full uninitialization in SiloHost #2127
- Persistent Stream Provider initialization timeout fix. #2065
- Some EventHub stream provider bug fixes #1760 #1935 #1921 #1922
- Allow comments in configuration XML #1994
- Fixed null MethodInfo in Interceptors #1938
- Object Pools not pooling fix. #1937
- Harden explicit subscription pubsub system #1884
- Fix #1869. Grain Extensions + method interception should function correctly #1874
- Fix bug with generic state parameter caused by inconsistent use of grainClassName / genericArgument / genericInterface #1897
- Throw meaningful exception if grain timer is created outside grain context #1858
- Do not deactivate Stateless Workers upon grain directory partition shutdown. #1838
- Fixed a NullReferenceException bug in ClientObserverRegistrar. #1823
- Test
- Allow liveness config in TestCluster #1818
- Fix for strange bug in BondSerializer #1790
- Some improvements for unit testing #1792 #1802
- Other
- Move JSON serialization methods into OrleansJsonSerializer #2206
- Updated package dependencies for Azure Storage, ServiceBus, ZooKeeperNetEx, Protobuf and codegen related
- Remove UseStandardSerializer and UseJsonFallbackSerializer options #2193 #2204
- Make IGrainFactory injectable #2192
- Recover types from ReflectionTypeLoadException #2164
- Moved Orleans Performance Counters into its own Telemetry Consumer. Now you need to explicitly register the
OrleansPerfCounterTelemetryConsumer
either by code or XML. More information in #2122 and docs will come later.Microsoft.Orleans.CounterControl
can still be used to install the performance counters or you can useInstallUtil.exe OrleansTelemetryConsumers.Counters.dll
to install it without depending onOrleansCounterControl.exe
- New PowerShell client Module #1990
- Expose property IsLongKey for IAddressable #1939
- Removed OrleansDependencyInjection package and instead Orleans references Microsoft.Extensions.DepedencyInjection #1911 #1901 #1878
- Now using Microsoft.Extensions.DepedencyInjection.ServiceProvider as the default service provider if the user does not override it. Grains are still not being injected automatically unless the user opts in by specifying his own Startup configuration that returns a service provider.
- Do not require explicitly registering grains in ServiceCollection #1901
- Support cancellation tokens in grain method signatures #1599
- ClusterConfiguration extension for setting Startup class #1842
- Log more runtime statistics on the client. #1778
- Added ManagementGrain.GetDetailedHosts() #1794
- Can get a list of active grains in Orleans for monitoring #1772
- Rename InstanceName to SiloName. #1740
- Reworked documentation to use DocFX #1970
- Bug fix: Prevent null reference exception after clearing PubSubRendezvousGrain state #2040
- Ability to force creation of Orleans serializers for types not marked with [Serializable] by using GenerateSerializer, KnownType or KnownAssembly.TreatTypesAsSerializable #1888 #1864 #1855
- Troubleshooting improvements:
- Fixed stacktrace preservation in exceptions from grain calls (bug introduced in 1.2.0) #1879 #1808
- Better messaging when silo fails to join due to initial connectivity problems #1866
- Throw meaningful exception if grain timer is created outside grain context #1858
- Bug fixes:
- Do not deactivate Stateless Workers upon grain directory partition shutdown #1838
- interception works with Streams and grain extensions #1874
- Memory Storage provider properly enforces etags for any state that has been added or removed, but does not enforce etags for newly added state. #1885
- Other minor bug fixes #1823
- Known issues:
- It is not advisable for your Orleans application to depend on WindowsAzure.Storage >= 7.0 due to #1912. This new constraint applies to previously released Orleans versions too. Will be fixed in 1.3.0.
- Bugfix: Memory Storage provider no longer throws NullReferenceException after the grain state is cleared. #1804
- Microsoft.Orleans.OrleansCodeGenerator.Build package updated to not add the empty orleans.codegen.cs content file at install time, and instead create it at build time (should be more compatible with NuGet Transitive Restore). #1720
- Added GrainCreator abstraction to enable some unit testing scenarios. #1802 #1792
- ServiceBus package dependency upgraded to 3.2.2 #1758
- Bug fixes:
- SupressDuplicateDeads: Use SiloAddress.Endpoint instead of InstanceName. #1728
- Added support for complex generic grain parameters #1732
- Fix race condition bugs in LocalReminderService #1757
- Major improvements
- Added an EventHub stream provider based on the same code that is used in Halo 5.
- Increased throughput by between 5% and 26% depending on the scenario. #1586
- Improved propagation of exception, so that the caller gets the originally thrown exception instead of an AggregateException wrapping it. #1356
- Grain state doesn't have to extend GrainState anymore (marked as [Obsolete]) and can be a simple POCO class.
- Added support for per-grain-class and global server-side interceptors. #965 #963
- Added support for using Consul as a Membership Provider. #1267
- Azure storage 7.0 compatibility #1704.
- Codegen & serialization
- Added support for generic type constraints in codegen. #1137
- Added support for Newtonsoft.Json as a fallback serializer. #1047
- Added generation of serializers for type arguments of IAsyncObserver. #1319
- Improved support for F# interfaces. #1369
- Consolidated two compile time codegen NuGet packages into one Microsoft.Orleans.OrleansCodeGenerator.Build. Microsoft.Orleans.Templates.Interfaces and Microsoft.Orleans.Templates.Grains are now meta-packages for backward compatibility only. #1501
- Moved to Newtonsoft.Json 7.0.1. #1302
- Programmatic config
- Added helper methods for programmatic test configuration. #1411
- Added helper methods to AzureClient and AzureSilo for easier programmatic config. #1622
- Added extension methods for using programmatic config. #1623
- Remove config filed from Server and Client NuGet packages. #1629
- Other
- Improved support for SQL membership, reminders, and grain storage. #1060
- Added a storage provider for Azure Blob (graduated from OrleansContrib). #1376
- Start Reminder Service initial load in the background. #1520
- Added automatic cleanup of dead client stream producers and consumers. #1429 #1669
- Added GetPrimaryKeyString extension method for IAddressable. #1675
- Added support for additional application directories. #1674
- Migrated all but 30 functional tests to GitHub.
- Support C# 6. #1479
- Switched to xUnit for testing as a step towards CoreCLR compatibility. #1455
- Added ability to throw exceptions that occur when starting silo #1711.
- Many other fixes and improvements.
- Bug fixes:
- #1345 Initialize SerializationManager before CodeGeneratorManager
- #1348 Avoid unnecessary table scan when finding reminder entries to delete
- #1351 Stop a stuck BlockingCollection.Take operation that caused thread leak on the client.
- #1381 Fixed Azure table property being not sanitized.
- #1384 Fixed String.Format arguments in DetailedGrainReport.ToString()
- #1405 Increment and DecrementMetric methods in Orleans.TraceLogger had same body
- #1414 Update the custom serializer warning message to adequately reflect the OSS status of Orleans
- #1503 Fix retry timeout when running under debugger
- #1478 Networking bug fix: Reset receive buffer on error.
- #1518 Fixed performance regression in networking
- #1520 Start ReminderService initial load in the background
- #1534 Safe load of types from failing assemblies in TypeUtils.GetTypes
- Bug fixes (primarily for codegen and serializer corner cases):
- #1137 Add support for generic type constraints in codegen
- #1178 Correctly specify struct type constraint in generated code
- #1182 fix issue:GetReminder throws exception when reminder don't exists #1167
- #1240 Cleanup/fix usage of IsNested vs. IsNestedXXX & serialize nested types.
- #1241 Correctly serialize [Obsolete] fields and properties.
- #1249 Nested serialization of Guid with Json serializer.
- #1261 Fix a race in StreamConsumer.SubscribeAsync.
- #1280 fix deepcopy issue #1278
- #1284 Check declaring types when performing accessibility checks for code gen.
- #1285 Allow to configure PubSub for SMS.
- #1270 Make Namespace access modifier public in ImplicitStreamSubscriptionAttribute. Add Provider property.
- Bug fixes:
- #1134 Missing argument to trace format in TraceLogger.Initialize
- #1195 Make ConsoleText resilient to ObjectDisposedExceptions
- New Roslyn-based codegen, compile time and run time
- Public APIs:
- Core API for Event Sourcing
- Most methods of Grain class are now virtual
- ASP.NET vNext style Dependency Injection for grains
- New telemetry API
- Portability:
- Support for C# 6.0
- Improved support for F# and VB
- Code adjustments towards CoreCLR compliance
- Orleans assemblies are not strong-named anymore
- SQL:
- OrleansSQLUtils.dll for SQL-related functionality
- MySQL is now supported as a cluster membership store
- Storage provider for SQL Server
- Serialization:
- Support for pluggable external serializers
- Bond serializer plugin
- Support for Json.Net as a fallback serializer
- Added [KnownType] attribute for generating serializers for arbitrary types
- Upgraded to Azure Storage 5.0
- Upgraded to .NET 4.5.1
- Other fixes and improvements