You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[server] Restore data partition in isolated process in Venice Server (#810)
This PR tries to address the issue of cleaning up data correctly for ingestion isolation enabled server.
Originally, we observed that certain data partition is not deleted when a OFFLINE -> DROPPED message is issued for stale version upon server restart. The message is not executed as we did not restore all the data partitions upon server start in any of the processes.
The first fix we implemented is in #617 , where we added a clean up service in isolated process. However, it is not correct, as the clean up service tries to remove partitions opened in the forked process, which is metadata partition only. This leaves the data partitions still unopened and lingering forever.
This PR tries to fix it thoroughly by adjusting the data restore logic for II. It will by default restore everything in II process. For those partitions to receive OFFLINE->DROPPED message, it will be sent to isolated process and get executed. For old storage engines, it shall also be opened and should be cleaned up eventually, as restore metadata partition will recreate the metadata partition, even if it is deleted before.
Copy file name to clipboardExpand all lines: clients/da-vinci-client/src/main/java/com/linkedin/davinci/ingestion/isolated/IsolatedIngestionServer.java
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -472,7 +472,7 @@ public boolean isResourceSubscribed(String topicName, int partition) {
Copy file name to clipboardExpand all lines: clients/da-vinci-client/src/main/java/com/linkedin/davinci/ingestion/isolated/IsolatedIngestionServerHandler.java
0 commit comments