Jibing-Li opened a new pull request, #24212:
URL: https://github.com/apache/doris/pull/24212

   In this case, forward to master will throw catalog or db not found exception:
   Connect to a follower:
   1. create database test
   2. use test
   3. drop database test
   4. create database test
   This is because after step 2, the default db in follower has been set to 
`test`, drop database will not change the default db. In step 4, the default db 
`test` is set and forwarded to master, and master will fail to find it because 
it is already dropped.
   
   This pr is to set the default catalog and db only when they exist.
   
   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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