You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2021/01/15 20:56:27 UTC

[incubator-pinot] branch master updated: Fixing the issue that raw table name extracts from segment metadata might contain _OFFLINE suffix (#6445)

This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new e8c4636  Fixing the issue that raw table name extracts from segment metadata might contain _OFFLINE suffix (#6445)
e8c4636 is described below

commit e8c46363d9810e71648b32c38436dea7a9f21a06
Author: Xiang Fu <fx...@gmail.com>
AuthorDate: Fri Jan 15 12:56:08 2021 -0800

    Fixing the issue that raw table name extracts from segment metadata might contain _OFFLINE suffix (#6445)
---
 .../api/resources/PinotSegmentUploadDownloadRestletResource.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
index 2ae966d..251fb6a 100644
--- a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
+++ b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
@@ -241,7 +241,7 @@ public class PinotSegmentUploadDownloadRestletResource {
         LOGGER.info("Uploading a segment {} to table: {}, push type {}, (Derived from API parameter)", segmentName, tableName, uploadType);
       } else {
         // TODO: remove this when we completely deprecate the table name from segment metadata
-        rawTableName = segmentMetadata.getTableName();
+        rawTableName = TableNameBuilder.extractRawTableName(segmentMetadata.getTableName());
         LOGGER.info("Uploading a segment {} to table: {}, push type {}, (Derived from segment metadata)", segmentName, tableName, uploadType);
       }
 


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