[SERVER-49050] Cannot differentiate logs from different shards with python fixtures Created: 23/Jun/20  Updated: 29/Oct/23  Resolved: 24/Jun/20

Status: Closed
Project: Core Server
Component/s: Sharding, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Critical - P2
Reporter: Judah Schvimer Assignee: Raiden Worley (Inactive)
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-48150 Streamline resmoke loggers Closed
Backwards Compatibility: Fully Compatible
Sprint: STM 2020-06-29
Participants:

 Description   

A log line looks like:

[ReplicaSetFixture:job3:primary] 2020-06-23T20:45:36.852+0000 | 2020-06-23T20:45:36.852+00:00 D2 REPL_HB  24096   [conn10] "Processing heartbeat request","attr":{"from":"localhost:20752","cmdObj":{"replSetHeartbeat":"shard-rs0","configVersion":2,"configTerm":1,"hbv":1,"from":"localhost:20752","fromId":1,"term":1,"primaryId":0,"$replData":1,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1592945134,"i":10006}},"signature":{"hash":{"$binary":{"base64":"y8JOMcj9Fb52irp9PYt2OwlEJ5I=","subType":"0"}},"keyId":6841647160363057000}},"$configTime":{"$timestamp":{"t":1592945134,"i":2}},"$db":"admin"}}

But I do not think there's a way to really know which shard/csrs it belongs to. We just know it's a primary on in some replica set. The test fixture knows its replica set name, so we just need to include it in the log.



 Comments   
Comment by Githook User [ 24/Jun/20 ]

Author:

{'name': 'Carl Raiden Worley', 'email': 'carl.worley@10gen.com', 'username': 'aggrand'}

Message: SERVER-49050 Cannot differentiate logs from different shards with python fixtures
Branch: master
https://github.com/mongodb/mongo/commit/f275428ee2632b120247d437552c08aefa871c31

Comment by Max Hirschhorn [ 23/Jun/20 ]

The log format for sharded clusters spawned by resmoke.py prior to the changes from c81a9f3 as part of SERVER-48150 looked like:

[ShardedClusterFixture:job0:shard0:primary] Waiting to connect to mongod on port 20001.

https://logkeeper.mongodb.org/lobster/build/64473a9d232ae54938bf4c599b3a491a/test/5ee93856c2ab686429eb2fdb#bookmarks=0%2C2245

Generated at Thu Feb 08 05:18:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.