Package com.linkedin.venice.router.api
Class MetaStoreShadowReader
- java.lang.Object
-
- com.linkedin.venice.router.api.MetaStoreShadowReader
-
public class MetaStoreShadowReader extends java.lang.Object
This class serves as the shadow read handler of the meta system store.
-
-
Constructor Summary
Constructors Constructor Description MetaStoreShadowReader(ReadOnlySchemaRepository readOnlySchemaRepository)
-
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)
-
-
-
Constructor Detail
-
MetaStoreShadowReader
public MetaStoreShadowReader(ReadOnlySchemaRepository readOnlySchemaRepository)
-
-
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.
-
-