kangpinghuang opened a new issue #837: Meta should check the final status when 
iterator the rocksdb
URL: https://github.com/apache/incubator-doris/issues/837
 
 
   **Describe the bug**
   
   Iterator::status() returns the error of the iterating. The errors include 
I/O errors, checksum mismatch, unsupported operations, internal errors, or 
other errors.
   
   If there is no error, the status is Status::OK(). If the status is not OK, 
the iterator will be invalidated too. In another word, if Iterator::Valid() is 
true, status() is guaranteed to be OK() so it's safe to proceed other 
operations without checking status():
   
   Now in OlapMeta, this has not be checked

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to