[SERVER-50965] `Set failpoint` server log doesn't contain configureFailPoint mode.times value. Created: 16/Sep/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Dmitry Lukyanov (Inactive) Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: sa-remove-fv-backlog-22
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Participants:

 Description   

When I configure the below failpoint on driver side:

 

{
    "configureFailPoint": "failCommand",
    "mode": {
        "times": 1   // pay attention here
    },
    "data": {
        "failCommands": ["ping"],
        "appName": "app",
        "blockConnection": true,
        "blockTimeMS": 1000
    }
}

with times : 1, I would expect this value in the server log too, but it doesn't happen.

 

The actual log content is:

 

{
    "t": {
        "$date": "2020-09-16T02:38:33.175+03:00"
    },
    "s": "W",
    "c": "CONTROL",
    "id": 23829,
    "ctx": "conn3",
    "msg": "Set failpoint",
    "attr": {
        "failPointName": "failCommand",
        "failPoint": {
            "mode": 3,
            "data": {
                "failCommands": ["ping"],
                "appName": "app",
                "blockConnection": true,
                "blockTimeMS": 1000
            },
            "timesEntered": 0
        }
    }
} 

Is it a expected?

 



 Comments   
Comment by Dmitry Lukyanov (Inactive) [ 16/Sep/20 ]

In more detail, the idea of this suggestion is to make a better experience in log analysis. I spent some time to prove that the logline which I found in the server logs was the same with the line which I was looking for, because I specified on the driver side:

 

  "mode": { "times": 1 },

but the logline contained just:

"mode": 3,

 

 

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