[SERVER-33796] RecoveryUnit can get replicationMode from the GlobalServiceContext Created: 09/Mar/18  Updated: 06/Dec/22  Resolved: 16/Mar/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Participants:

 Description   

Currently, we pass the replicationMode to the recovery unit. This is not ideal because replicationMode, as part of the server configuration, should be retrieved from anywhere including the recovery unit.



 Comments   
Comment by Xiangyu Yao (Inactive) [ 12/Mar/18 ]

Got it. OperationContext contains a RecoveryUnit and has a setter setRecoveryUnit(). Maybe we could get and set the replicationMode of the RecoveryUnit there. But that won't improve the situation where we need to set this "global configuration constant".

Comment by Andy Schwerin [ 12/Mar/18 ]

Calls to getGlobalServiceContext are not preferred. Using an available OperationContext to get the ServiceContext is preferable. Is that an option here?

Generated at Thu Feb 08 04:34:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.