Session 07 scope (5 features, 17 tests, ~1165 Go LOC): - Protocol/ParserTypes.cs: ParserState enum (79 states), PublishArgument, ParseContext - Protocol/IProtocolHandler.cs: handler interface decoupling parser from client - Protocol/ProtocolParser.cs: Parse(), ProtoSnippet(), OverMaxControlLineLimit(), ProcessPub/HeaderPub/RoutedMsgArgs/RoutedHeaderMsgArgs, ClonePubArg(), GetHeader() - tests/Protocol/ProtocolParserTests.cs: 17 tests via TestProtocolHandler stub Auth extras from session 06 (committed separately): - Auth/TpmKeyProvider.cs, Auth/CertificateIdentityProvider/, Auth/CertificateStore/ Internal utilities & data structures (session 06 overflow): - Internal/AccessTimeService.cs, ElasticPointer.cs, SystemMemory.cs, ProcessStatsProvider.cs - Internal/DataStructures/GenericSublist.cs, HashWheel.cs - Internal/DataStructures/SubjectTree.cs, SubjectTreeNode.cs, SubjectTreeParts.cs All 461 tests pass (460 unit + 1 integration). DB updated for features 2588-2592 and tests 2598-2614.
40 lines
1.1 KiB
Markdown
40 lines
1.1 KiB
Markdown
# Session 13: Configuration Reload
|
||
|
||
## Summary
|
||
|
||
Hot-reload system for server configuration. Detects config changes and applies them without restarting the server. Each option type has a reload handler.
|
||
|
||
## Scope
|
||
|
||
| Go File | Features | Feature IDs | Go LOC |
|
||
|---------|----------|-------------|--------|
|
||
| server/reload.go | 89 | 2800–2888 | 2,085 |
|
||
| **Total** | **89** | | **2,085** |
|
||
|
||
## .NET Classes
|
||
|
||
- `ConfigReloader` — reload orchestrator
|
||
- 50+ individual option reload types (e.g., `AuthOption`, `TlsOption`, `ClusterOption`, `JetStreamOption`, etc.)
|
||
|
||
## Test Files
|
||
|
||
| Test File | Tests | Test IDs |
|
||
|-----------|-------|----------|
|
||
| server/reload_test.go | 73 | 2721–2793 |
|
||
| **Total** | **73** | |
|
||
|
||
## Dependencies
|
||
|
||
- Session 03 (Configuration — ServerOptions)
|
||
- Session 09 (Server Core Part 1)
|
||
|
||
## .NET Target Location
|
||
|
||
- `dotnet/src/ZB.MOM.NatsNet.Server/ConfigReloader.cs`
|
||
|
||
## Notes
|
||
|
||
- Many small reload option types — consider using a single file with nested classes or a separate `Reload/` folder
|
||
- Each option type implements a common interface for diff/apply pattern
|
||
- 73 tests cover each option type's reload behavior
|