Adelina Marian created OAK-11973:
------------------------------------

             Summary: Extend error handling with new mongo exception types 
                 Key: OAK-11973
                 URL: https://issues.apache.org/jira/browse/OAK-11973
             Project: Jackrabbit Oak
          Issue Type: Task
          Components: mongomk
    Affects Versions: 1.86.0
            Reporter: Adelina Marian


In MongoUtils.java we check for mongo related exceptions for when nodes are 
being restarted or we face some connectivity issues. 
Since the mongo java driver upgrade to 5.x (from 3.x) there were some new type 
of exceptions added by mongo which are not handled in our code, such as 
MongoServerUnavailableException 
[https://github.com/mongodb/mongo-java-driver/blob/main/driver-core/src/main/com/mongodb/MongoServerUnavailableException.java#L27]
 added in driver version 4.4. 

We need to update our code to handle these exceptions - check for others that 
were introduced or older ones deprecated as well. 

The effect is that we might get errors like: 
{code:java}
org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore 
findUncachedWithRetry : read fails with an 
exceptioncom.mongodb.MongoServerUnavailableException: The server at 
[obfuscated]-shard-00-02.tpynd.mongodb.net:27017 is no longer available {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to