[SERVER-85419] Balancer pollutes logs in case no suitable recipient is found during draining Created: 18/Jan/24  Updated: 01/Feb/24  Resolved: 30/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.0, 4.4.0, 5.0.0, 6.0.0, 7.0.0, 7.3.0-rc0
Fix Version/s: 7.0.6, 5.0.25, 4.4.29, 6.0.14, 8.0.0-rc0, 7.3.0-rc2

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Silvia Surroca
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3, v7.2, v7.0, v6.0, v5.0, v4.4
Sprint: CAR Team 2024-02-05
Participants:

 Description   

The balancer emit a log message every time it fails to find a destination shard to move out chunks from a draining shard.

The problem is that the balancer emits this log warning for every chunk to be drained. This means that potentially in one balnacer round (few secs) we could emit millions of logs leading the machine out of disk space.

Another issue is that we should emit a warning only if we actually have some shard still available in this round (not already used in this balancing round) to receive chunks.
If all the shards available are already in draining mode, it is expected that we can't find a recipient.

I believe the same happens also in case no recipient can be found while enforcing zones.



 Comments   
Comment by Githook User [ 01/Feb/24 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-85419 Balancer pollutes logs in case no suitable recipient is found during draining (#18286)

GitOrigin-RevId: 216e7d8a782af1f2ec47895311f289cc5b9883eb
Branch: v4.4
https://github.com/mongodb/mongo/commit/bd4a4713ba6ef85ccf2cbad693e925f411b1758b

Comment by Githook User [ 31/Jan/24 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-85419 Balancer pollutes logs in case no suitable recipient is found during draining (#18286)

GitOrigin-RevId: 37263288a924f45e4f50fa843f81fe67c037a418
Branch: v5.0
https://github.com/mongodb/mongo/commit/a3f118cfd995cd2b8c2360c41ec2b3bdf952d807

Comment by Githook User [ 31/Jan/24 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-85419 Balancer pollutes logs in case no suitable recipient is found during draining (#18286)

GitOrigin-RevId: 451fc5b9cd1ae93b0f54a485388c8e7f9541a1f2
Branch: v6.0
https://github.com/mongodb/mongo/commit/c0deac1c96d49c2f0f66aa91f90c93c0d6716bb1

Comment by Githook User [ 31/Jan/24 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-85419 Balancer pollutes logs in case no suitable recipient is found during draining (#18286)

(cherry picked from commit 8aba060e45e9d5f752992252fb1894c12356d7f1)

GitOrigin-RevId: 9efa9c85d478fccacb5e4b157b0b556b9853de69
Branch: v7.3
https://github.com/mongodb/mongo/commit/18f923e6adb609580351b2f14e5a72601658e6cf

Comment by Githook User [ 31/Jan/24 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-85419 Balancer pollutes logs in case no suitable recipient is found during draining (#18286)

GitOrigin-RevId: 1458e1c229c6dc36c63eb57bd7c5d2e618e9ab0f
Branch: v7.0
https://github.com/mongodb/mongo/commit/491aed068c0474fa407899b1d1468c89f4812bca

Comment by Githook User [ 30/Jan/24 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-85419 Balancer pollutes logs in case no suitable recipient is found during draining (#18286)

GitOrigin-RevId: 8aba060e45e9d5f752992252fb1894c12356d7f1
Branch: master
https://github.com/mongodb/mongo/commit/9579e342cf6039b1392d4cce2597d391a84c04e7

Generated at Thu Feb 08 06:57:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.