[ 
https://issues.apache.org/jira/browse/KYLIN-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kun Liu updated KYLIN-4921:
---------------------------
    Description: 
In project A, I have created a stream table test_table.

When I create the table test_table in project B, the table can't be created, 
but the source config of table in project A lost. 

 

The reason: 

In the `saveStreamingConfig` function, if creating table failed, the config 
will be dropped in finally phase.

 

 

By design: 

In order to identity one stream table `StreamingSourceConfig` in the metastore, 
kylin use the key

`ResourceStore.STREAMING_V2_RESOURCE_ROOT + "/" + name + ".json"` as the 
identifier.

But this design can't work in multi-project.

[~hit_lacus] PTAL

 

[Design 
Doc|https://docs.google.com/document/u/1/d/1QfTn5dBcHeY2EAnMUS2V0sqj9dpFQwmVuAZon7wCtns/edit#]

 

 

  was:
In project A, I have created a stream table test_table.

When I create the table test_table in project B, the table can't be created, 
but the source config of table in project A lost. 

 

The reason: 

In the `saveStreamingConfig` function, if creating table failed, the config 
will be dropped in finally phase.

 

 

By design: 

In order to identity one stream table `StreamingSourceConfig` in the metastore, 
kylin use the key

`ResourceStore.STREAMING_V2_RESOURCE_ROOT + "/" + name + ".json"` as the 
identifier.

But this design can't work in multi-project.

[~hit_lacus] PTAL

 

 


> stream config lost when create table with same table_name in diff project.
> --------------------------------------------------------------------------
>
>                 Key: KYLIN-4921
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4921
>             Project: Kylin
>          Issue Type: Bug
>          Components: Real-time Streaming
>            Reporter: Kun Liu
>            Assignee: Kun Liu
>            Priority: Major
>             Fix For: v3.1.2
>
>
> In project A, I have created a stream table test_table.
> When I create the table test_table in project B, the table can't be created, 
> but the source config of table in project A lost. 
>  
> The reason: 
> In the `saveStreamingConfig` function, if creating table failed, the config 
> will be dropped in finally phase.
>  
>  
> By design: 
> In order to identity one stream table `StreamingSourceConfig` in the 
> metastore, kylin use the key
> `ResourceStore.STREAMING_V2_RESOURCE_ROOT + "/" + name + ".json"` as the 
> identifier.
> But this design can't work in multi-project.
> [~hit_lacus] PTAL
>  
> [Design 
> Doc|https://docs.google.com/document/u/1/d/1QfTn5dBcHeY2EAnMUS2V0sqj9dpFQwmVuAZon7wCtns/edit#]
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to