Class MetaStoreShadowReader


  • public class MetaStoreShadowReader
    extends java.lang.Object
    This class serves as the shadow read handler of the meta system store.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http.FullHttpResponse shadowReadMetaStore​(VenicePath path, io.netty.handler.codec.http.FullHttpResponse originalResponse)
      This method performs shadow read for meta system store request in Router.
      boolean shouldPerformShadowRead​(VenicePath path, io.netty.handler.codec.http.FullHttpResponse response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • shouldPerformShadowRead

        public boolean shouldPerformShadowRead​(VenicePath path,
                                               io.netty.handler.codec.http.FullHttpResponse response)
        Returns:
        True only if a meta store query request is indicated not found in the provided response returned from the storage replica.
      • shadowReadMetaStore

        public io.netty.handler.codec.http.FullHttpResponse shadowReadMetaStore​(VenicePath path,
                                                                                io.netty.handler.codec.http.FullHttpResponse originalResponse)
        This method performs shadow read for meta system store request in Router.
        Parameters:
        path - Request path for Meta Store metadata.
        originalResponse - Original response retrieved from storage replica.
        Returns:
        Updated FullHttpResponse with filled in content from metadata repository.