[SERVER-29694] Read-only shards should not try to persist the collection routing information locally Created: 16/Jun/17  Updated: 30/Oct/23  Resolved: 09/Aug/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.5.8
Fix Version/s: 3.5.12

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2017-08-21
Participants:

 Description   

With the changes to support chunk filtering on shard secondaries, the primary nodes now persist the collection routing information locally. In the case of read-only shards, these writes are failing benignly, but are polluting the logs with messages like this:

[js_test:count] 2017-06-14T15:34:12.651+0000 d20262| 2017-06-14T15:34:12.415+0000 I SHARDING [ShardServerCatalogCacheLoader-0] OperationFailed: Failed to update the persisted chunk metadata for collection 'test.count' from '4|1||5941576905d04677f27f055f' to '4|1||5941576905d04677f27f055f' due to 'IllegalOperation: Cannot execute a write operation in read-only mode'. Will be retried.
[js_test:count] 2017-06-14T15:34:12.652+0000 d20262| 2017-06-14T15:34:12.415+0000 I SHARDING [ShardServerCatalogCacheLoader-0] OperationFailed: Failed to update the persisted chunk metadata for collection 'test.count' from '4|1||5941576905d04677f27f055f' to '4|1||5941576905d04677f27f055f' due to 'IllegalOperation: Cannot execute a write operation in read-only mode'. Will be retried.

This ticket is to come up with a solution to prevent read-only shard primaries from writing the chunk routing table.



 Comments   
Comment by Githook User [ 09/Aug/17 ]

Author:

{'username': 'DiannaHohensee', 'email': 'dianna.hohensee@10gen.com', 'name': 'Dianna Hohensee'}

Message: SERVER-29694 Read-only shards should not try to persist the collection routing information locally
Branch: master
https://github.com/mongodb/mongo/commit/aa102021070c10f802b9be8877870400cc27ed07

Comment by Dianna Hohensee (Inactive) [ 07/Aug/17 ]

New proposal. Make a new readOnly implementation of the CatalogCacheLoader that contains a ConfigServerCatalogCacheLoader and does not invariant on the unused functions. Then swap out the shard loader for the new readOnly loader as originally proposed.

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