yagagagaga opened a new pull request, #40831:
URL: https://github.com/apache/doris/pull/40831

   ## Proposed changes
   
   Add a http action which can calculate its hash value based on the path you 
input. It's useful when you debug.
   
   ### API
   ```http
   GET /api/file_cache
   ```
   
   ### request parameter
   
   |param|type|desc|require|
   |:---|:---|:---|:---|
   |op|string|the value must be `hash`, other value you can refer to #37484 
|yes|
   |segment_path|string|the name of segment file|yes|
   
   ### response
   
   if success
   |param|type|desc|
   |:---|:---|:---|
   |hash|string|the hash value of your input|
   
   if fail
   |param|type|desc|
   |:---|:---|:---|
   |status|string|error status|
   |msg|string|error message|
   
   ### example
   
   ```bash
   curl  
'172.100.0.4:8040/api/file_cache?op=hash&segment_path=0200000000000001bf42c14374fff491ffb7c89a1a65c5bb_0.dat'
   ```
   
   return
   ```json
   {"hash":"c6a599f453f67f0949f80ad9990fa3dd"}
   ```
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to