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

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   Based on the bug https://github.com/apache/doris/pull/32489 , reviewed 
master code.
   
   After iterator returned by using find must be validated with map.end() 
before use.
    CloudTxnDeleteBitmapCache::remove_expired_tablet_txn_info
              auto txn_iter = _txn_map.find(iter->second);
           if (iter->first == txn_iter->second.txn_expiration) {
   
   
   
   ### What You Expected?
   
   code should not have a access of iterator without checking map.end()
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   fixed similar problems.
   
   ### 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