leesf commented on a change in pull request #3041:
URL: https://github.com/apache/hudi/pull/3041#discussion_r646629033



##########
File path: 
hudi-timeline-service/src/main/java/org/apache/hudi/timeline/service/RequestHandler.java
##########
@@ -132,15 +132,13 @@ private boolean syncIfLocalViewBehind(Context ctx) {
       String lastKnownInstantFromClient =
           ctx.queryParam(RemoteHoodieTableFileSystemView.LAST_INSTANT_TS, 
HoodieTimeline.INVALID_INSTANT_TS);
       SyncableFileSystemView view = viewManager.getFileSystemView(basePath);
-      synchronized (view) {

Review comment:
       hi, @chaplinthink I think it is necessary to use synchronization to sync 
view locally since the handler would handle different request from clients 
concurrently. cc @bvaradar 




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


Reply via email to