jayakasadev opened a new issue, #67458:
URL: https://github.com/apache/doris/issues/67458

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   Writes to a tablet are rejected once its version count passes 
`max_tablet_version_num`, and it fails with `TOO_MANY_VERSION` (E235). The 
check reads a counter called 
[_approximate_num_rowsets](https://github.com/apache/doris/blob/master/be/src/cloud/cloud_rowset_builder.cpp#L204).
 
   The only related metric, `tablet_version_num_distribution`, reads a 
different counter that updates less frequently and skips tablets that are 
currently being written to. This hides potential issues until there is a 
failure. 
   There's no Prometheus metric for `tablet_version_num_distribution`. The only 
way to read it is via admin HTTP GET to /api/hotspot/tablet?metrics=num_rowsets.
   
   ### Solution
   
   1. Add a metric fed from `_approximate_num_rowsets` on 
]https://github.com/apache/doris/blob/master/be/src/cloud/cloud_rowset_builder.cpp#L204
 using the same pattern as the existing histogram in doris_metrics.{h,cpp}.
   2. Report it for all tablets, including ones under active load
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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