i3wangyi commented on a change in pull request #516: Implement the 
propertyStore read endpoint
URL: https://github.com/apache/helix/pull/516#discussion_r352762988
 
 

 ##########
 File path: 
helix-rest/src/main/java/org/apache/helix/rest/server/ServerContext.java
 ##########
 @@ -118,6 +120,29 @@ public HelixDataAccessor getDataAccssor(String 
clusterName) {
     }
   }
 
+  public ZkBaseDataAccessor<byte[]> getByteArrayBaseDataAccessor() {
+    if (_byteArrayBaseDataAccessor == null) {
+      synchronized (this) {
+        if (_byteArrayBaseDataAccessor == null) {
+          _byteArrayBaseDataAccessor = new ZkBaseDataAccessor<>(_zkAddr, new 
ZkSerializer() {
+            @Override
+            public byte[] serialize(Object o)
+                throws ZkMarshallingError {
+              return (byte[]) o;
 
 Review comment:
   done.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@helix.apache.org
For additional commands, e-mail: reviews-h...@helix.apache.org

Reply via email to