[jira] [Updated] (PHOENIX-4861) While adding a view column make a single RPC to update the encoded column qualifier counter and remove the table from the cache of the physical table
[ https://issues.apache.org/jira/browse/PHOENIX-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ankit Singhal updated PHOENIX-4861: --- Fix Version/s: (was: 5.1.2) > While adding a view column make a single RPC to update the encoded column > qualifier counter and remove the table from the cache of the physical table > -- > > Key: PHOENIX-4861 > URL: https://issues.apache.org/jira/browse/PHOENIX-4861 > Project: Phoenix > Issue Type: Sub-task >Affects Versions: 5.0.0, 4.15.0 >Reporter: Thomas D'Silva >Priority: Major > Fix For: 4.17.0, 5.2.0, 4.16.2 > > > For tables that use column encoding when we add a column to a view we need to > update the encoded column qualifier counter on the base table. Currently we > do this in two rpcs: > {code} > // there should only be remote mutations if we are > creating a view that uses > // encoded column qualifiers (the remote mutations are to > update the encoded > // column qualifier counter on the parent table) > if (parentTable != null && tableType == PTableType.VIEW > && parentTable > .getEncodingScheme() != > QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { > response = > processRemoteRegionMutations( > > PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, > remoteMutations, > MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); > clearParentTableFromCache(clientTimeStamp, > parentTable.getSchemaName() != null > ? parentTable.getSchemaName().getBytes() > : ByteUtil.EMPTY_BYTE_ARRAY, > parentTable.getName().getBytes()); > if (response != null) { > done.run(response); > return; > } > } > {code} > Move this code to MetadataClient -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (PHOENIX-4861) While adding a view column make a single RPC to update the encoded column qualifier counter and remove the table from the cache of the physical table
[ https://issues.apache.org/jira/browse/PHOENIX-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Viraj Jasani updated PHOENIX-4861: -- Fix Version/s: (was: 4.16.1) 4.16.2 5.1.2 5.2.0 > While adding a view column make a single RPC to update the encoded column > qualifier counter and remove the table from the cache of the physical table > -- > > Key: PHOENIX-4861 > URL: https://issues.apache.org/jira/browse/PHOENIX-4861 > Project: Phoenix > Issue Type: Sub-task >Affects Versions: 5.0.0, 4.15.0 >Reporter: Thomas D'Silva >Priority: Major > Fix For: 4.17.0, 5.2.0, 5.1.2, 4.16.2 > > > For tables that use column encoding when we add a column to a view we need to > update the encoded column qualifier counter on the base table. Currently we > do this in two rpcs: > {code} > // there should only be remote mutations if we are > creating a view that uses > // encoded column qualifiers (the remote mutations are to > update the encoded > // column qualifier counter on the parent table) > if (parentTable != null && tableType == PTableType.VIEW > && parentTable > .getEncodingScheme() != > QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { > response = > processRemoteRegionMutations( > > PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, > remoteMutations, > MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); > clearParentTableFromCache(clientTimeStamp, > parentTable.getSchemaName() != null > ? parentTable.getSchemaName().getBytes() > : ByteUtil.EMPTY_BYTE_ARRAY, > parentTable.getName().getBytes()); > if (response != null) { > done.run(response); > return; > } > } > {code} > Move this code to MetadataClient -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (PHOENIX-4861) While adding a view column make a single RPC to update the encoded column qualifier counter and remove the table from the cache of the physical table
[ https://issues.apache.org/jira/browse/PHOENIX-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xinyi Yan updated PHOENIX-4861: --- Fix Version/s: (was: 4.16.0) 4.17.0 4.16.1 > While adding a view column make a single RPC to update the encoded column > qualifier counter and remove the table from the cache of the physical table > -- > > Key: PHOENIX-4861 > URL: https://issues.apache.org/jira/browse/PHOENIX-4861 > Project: Phoenix > Issue Type: Sub-task >Affects Versions: 5.0.0, 4.15.0 >Reporter: Thomas D'Silva >Priority: Major > Fix For: 4.16.1, 4.17.0 > > > For tables that use column encoding when we add a column to a view we need to > update the encoded column qualifier counter on the base table. Currently we > do this in two rpcs: > {code} > // there should only be remote mutations if we are > creating a view that uses > // encoded column qualifiers (the remote mutations are to > update the encoded > // column qualifier counter on the parent table) > if (parentTable != null && tableType == PTableType.VIEW > && parentTable > .getEncodingScheme() != > QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { > response = > processRemoteRegionMutations( > > PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, > remoteMutations, > MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); > clearParentTableFromCache(clientTimeStamp, > parentTable.getSchemaName() != null > ? parentTable.getSchemaName().getBytes() > : ByteUtil.EMPTY_BYTE_ARRAY, > parentTable.getName().getBytes()); > if (response != null) { > done.run(response); > return; > } > } > {code} > Move this code to MetadataClient -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (PHOENIX-4861) While adding a view column make a single RPC to update the encoded column qualifier counter and remove the table from the cache of the physical table
[ https://issues.apache.org/jira/browse/PHOENIX-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chinmay Kulkarni updated PHOENIX-4861: -- Fix Version/s: (was: 4.16.1) 4.16.0 > While adding a view column make a single RPC to update the encoded column > qualifier counter and remove the table from the cache of the physical table > -- > > Key: PHOENIX-4861 > URL: https://issues.apache.org/jira/browse/PHOENIX-4861 > Project: Phoenix > Issue Type: Sub-task >Affects Versions: 5.0.0, 4.15.0 >Reporter: Thomas D'Silva >Priority: Major > Fix For: 4.16.0 > > > For tables that use column encoding when we add a column to a view we need to > update the encoded column qualifier counter on the base table. Currently we > do this in two rpcs: > {code} > // there should only be remote mutations if we are > creating a view that uses > // encoded column qualifiers (the remote mutations are to > update the encoded > // column qualifier counter on the parent table) > if (parentTable != null && tableType == PTableType.VIEW > && parentTable > .getEncodingScheme() != > QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { > response = > processRemoteRegionMutations( > > PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, > remoteMutations, > MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); > clearParentTableFromCache(clientTimeStamp, > parentTable.getSchemaName() != null > ? parentTable.getSchemaName().getBytes() > : ByteUtil.EMPTY_BYTE_ARRAY, > parentTable.getName().getBytes()); > if (response != null) { > done.run(response); > return; > } > } > {code} > Move this code to MetadataClient -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (PHOENIX-4861) While adding a view column make a single RPC to update the encoded column qualifier counter and remove the table from the cache of the physical table
[ https://issues.apache.org/jira/browse/PHOENIX-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chinmay Kulkarni updated PHOENIX-4861: -- Affects Version/s: 5.0.0 4.15.0 > While adding a view column make a single RPC to update the encoded column > qualifier counter and remove the table from the cache of the physical table > -- > > Key: PHOENIX-4861 > URL: https://issues.apache.org/jira/browse/PHOENIX-4861 > Project: Phoenix > Issue Type: Sub-task >Affects Versions: 5.0.0, 4.15.0 >Reporter: Thomas D'Silva >Priority: Major > Fix For: 4.16.1 > > > For tables that use column encoding when we add a column to a view we need to > update the encoded column qualifier counter on the base table. Currently we > do this in two rpcs: > {code} > // there should only be remote mutations if we are > creating a view that uses > // encoded column qualifiers (the remote mutations are to > update the encoded > // column qualifier counter on the parent table) > if (parentTable != null && tableType == PTableType.VIEW > && parentTable > .getEncodingScheme() != > QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { > response = > processRemoteRegionMutations( > > PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, > remoteMutations, > MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); > clearParentTableFromCache(clientTimeStamp, > parentTable.getSchemaName() != null > ? parentTable.getSchemaName().getBytes() > : ByteUtil.EMPTY_BYTE_ARRAY, > parentTable.getName().getBytes()); > if (response != null) { > done.run(response); > return; > } > } > {code} > Move this code to MetadataClient -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (PHOENIX-4861) While adding a view column make a single RPC to update the encoded column qualifier counter and remove the table from the cache of the physical table
[ https://issues.apache.org/jira/browse/PHOENIX-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chinmay Kulkarni updated PHOENIX-4861: -- Fix Version/s: 4.16.1 > While adding a view column make a single RPC to update the encoded column > qualifier counter and remove the table from the cache of the physical table > -- > > Key: PHOENIX-4861 > URL: https://issues.apache.org/jira/browse/PHOENIX-4861 > Project: Phoenix > Issue Type: Sub-task >Reporter: Thomas D'Silva >Priority: Major > Fix For: 4.16.1 > > > For tables that use column encoding when we add a column to a view we need to > update the encoded column qualifier counter on the base table. Currently we > do this in two rpcs: > {code} > // there should only be remote mutations if we are > creating a view that uses > // encoded column qualifiers (the remote mutations are to > update the encoded > // column qualifier counter on the parent table) > if (parentTable != null && tableType == PTableType.VIEW > && parentTable > .getEncodingScheme() != > QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { > response = > processRemoteRegionMutations( > > PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, > remoteMutations, > MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); > clearParentTableFromCache(clientTimeStamp, > parentTable.getSchemaName() != null > ? parentTable.getSchemaName().getBytes() > : ByteUtil.EMPTY_BYTE_ARRAY, > parentTable.getName().getBytes()); > if (response != null) { > done.run(response); > return; > } > } > {code} > Move this code to MetadataClient -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (PHOENIX-4861) While adding a view column make a single RPC to update the encoded column qualifier counter and remove the table from the cache of the physical table
[ https://issues.apache.org/jira/browse/PHOENIX-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas D'Silva updated PHOENIX-4861: Description: For tables that use column encoding when we add a column to a view we need to update the encoded column qualifier counter on the base table. Currently we do this in two rpcs: {code} // there should only be remote mutations if we are creating a view that uses // encoded column qualifiers (the remote mutations are to update the encoded // column qualifier counter on the parent table) if (parentTable != null && tableType == PTableType.VIEW && parentTable .getEncodingScheme() != QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { response = processRemoteRegionMutations( PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, remoteMutations, MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); clearParentTableFromCache(clientTimeStamp, parentTable.getSchemaName() != null ? parentTable.getSchemaName().getBytes() : ByteUtil.EMPTY_BYTE_ARRAY, parentTable.getName().getBytes()); if (response != null) { done.run(response); return; } } {code} Move this code to MetadataClient was: For tables that use column encoding when we add a column to a view we need to update the encoded column qualifier counter on the base table. Currently we do this in two rpcs: {code} // there should only be remote mutations if we are creating a view that uses // encoded column qualifiers (the remote mutations are to update the encoded // column qualifier counter on the parent table) if (parentTable != null && tableType == PTableType.VIEW && parentTable .getEncodingScheme() != QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { response = processRemoteRegionMutations( PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, remoteMutations, MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); clearParentTableFromCache(clientTimeStamp, parentTable.getSchemaName() != null ? parentTable.getSchemaName().getBytes() : ByteUtil.EMPTY_BYTE_ARRAY, parentTable.getName().getBytes()); if (response != null) { done.run(response); return; } } {code} > While adding a view column make a single RPC to update the encoded column > qualifier counter and remove the table from the cache of the physical table > -- > > Key: PHOENIX-4861 > URL: https://issues.apache.org/jira/browse/PHOENIX-4861 > Project: Phoenix > Issue Type: Sub-task >Reporter: Thomas D'Silva >Priority: Major > > For tables that use column encoding when we add a column to a view we need to > update the encoded column qualifier counter on the base table. Currently we > do this in two rpcs: > {code} > // there should only be remote mutations if we are > creating a view that uses > // encoded column qualifiers (the remote mutations are to > update the encoded > // column qualifier counter on the parent table) > if (parentTable != null && tableType == PTableType.VIEW > && parentTable > .getEncodingScheme() != > QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { > response = > processRemoteRegionMutations( > > PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, > remoteMutations, > MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); > clearParentTableFromCache(clientTimeStamp, > parentTable.getSchemaName() != null > ? parentTable.getSchemaName().getBytes() > :