You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "klsince (via GitHub)" <gi...@apache.org> on 2023/07/18 18:49:02 UTC

[GitHub] [pinot] klsince commented on a diff in pull request #11129: Bug fix: TableUpsertMetadataManager is null

klsince commented on code in PR #11129:
URL: https://github.com/apache/pinot/pull/11129#discussion_r1267178494


##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/RealtimeTableDataManager.java:
##########
@@ -210,8 +210,9 @@ protected void doInit() {
       // this status with a boolean, instead of relying on if _tableUpsertMetadataManager is null or not.
       _isUpsertEnabled = true;
       _tableUpsertMetadataManager =
-          TableUpsertMetadataManagerFactory.create(tableConfig, schema, this, _serverMetrics, _helixManager,
-              _segmentPreloadExecutor);
+          TableUpsertMetadataManagerFactory.create(tableConfig);

Review Comment:
   good catch. I think you can also remove `_isUpsertEnabled` bool flag and the comments about it on L209-L211 above. That bool flag was introduced to allow the blocking create() method.



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org