masaori335 opened a new pull request, #12856:
URL: https://github.com/apache/trafficserver/pull/12856

   To clarify HostDB records by `traffic_ctl hostdb status` cmd. 
   
   Prior to the change, port is one of key to calculate hash. However, 
HostDBRecord doesn't store it, so in the list of HostDBRecored, it was unclear 
which entry is which.
   
   New `traffic_ctl hostdb status` result is below. `port` and `hash_key` is 
the new fields.
   ```
   $ traffic_ctl hostdb status | jq .
   {
     "metadata": {
       "timestamp": "1770159540",
       "version": "Apache Traffic Server - traffic_server - 10.2.0 - (build # 0 
on Feb  3 2026 at 14:35:43)"
     },
     "partitions": [
       {
         "id": "53",
         "records": [
           {
             "metadata": {
               "name": "example.com",
               "port": "80", ///< new field
               "type": "ADDR",
               "af_familiy": "AF_INET",
               "failed": "false",
               "ip_timestamp": "1770159530936784",
               "hash_key": "1577356654191421173" ///< new field
             },
             "info": [
               {
                 "ip": "127.0.0.1",
                 "health": {
                   "last_failure": "0",
                   "fail_count": "0"
                 }
               }
             ]
           }
         ]
       },
       {
         "id": "59",
         "records": [
           {
             "metadata": {
               "name": "example.com",
               "port": "443", ///< new field
               "type": "ADDR",
               "af_familiy": "AF_INET",
               "failed": "false",
               "ip_timestamp": "1770159532935310",
               "hash_key": "16495443420271430523" ///< new field
             },
             "info": [
               {
                 "ip": "127.0.0.1",
                 "health": {
                   "last_failure": "0",
                   "fail_count": "0"
                 }
               }
             ]
           }
         ]
       }
     ]
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to