Package com.linkedin.venice.router.api
Class MetaStoreShadowReader
java.lang.Object
com.linkedin.venice.router.api.MetaStoreShadowReader
This class serves as the shadow read handler of the meta system store.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.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 Details
-
MetaStoreShadowReader
-
-
Method Details
-
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.
-