phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tulasi Paradarami <tulasi.krishn...@gmail.com>
Subject Re: Timeline consistency using PQS
Date Fri, 20 Jan 2017 00:33:11 GMT
Could someone clarify how this property is used by Phoenix:
phoenix.connection.consistency
If I set it in hbase-site.xml, does phoenix utilize it for every query
(even queries from PQS)?

It's not documented on the website but it's defined in QueryServices.java:
// consistency configuration setting
public static final String CONSISTENCY_ATTRIB =
"phoenix.connection.consistency";

And used in PhoenixConnection.java
this.consistency = JDBCUtil.getConsistencyLevel(url, this.info,
this.services.getProps().get("phoenix.connection.consistency",
QueryServicesOptions.DEFAULT_CONSISTENCY_LEVEL));



On Thu, Jan 19, 2017 at 2:35 PM, Tulasi Paradarami <
tulasi.krishna.p@gmail.com> wrote:

> Hi,
>
> Does PQS support HBase's timeline consistency (HBASE-10070)?
>
> Looking at the connection properties implementation within Avatica, I see
> that following are defined: ["transactionIsolation", "schema", "readOnly",
> "dirty", "autoCommit", "catalog"] but there's isn't a property defined for
> setting consistency.
>
> org.apache.calcite.avatica.ConnectionPropertiesImpl.java:
>   @JsonCreator
>   public ConnectionPropertiesImpl(
>       @JsonProperty("autoCommit") Boolean autoCommit,
>       @JsonProperty("readOnly") Boolean readOnly,
>       @JsonProperty("transactionIsolation") Integer transactionIsolation,
>       @JsonProperty("catalog") String catalog,
>       @JsonProperty("schema") String schema) {
>     this.autoCommit = autoCommit;
>     this.readOnly = readOnly;
>     this.transactionIsolation = transactionIsolation;
>     this.catalog = catalog;
>     this.schema = schema;
>   }
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message