isHuangXin opened a new issue, #24869:
URL: https://github.com/apache/shardingsphere/issues/24869
- When I try to start
`org/apache/shardingsphere/data/pipeline/cdc/client/example/Bootstrap.java`
i.e. when using CDC (Change Data Capture) function. I found that CDC could not
start normally because the code reported the following error message
`[ERROR] 2023-03-28 00:15:02.559 [nioEventLoopGroup-4-5]
o.a.s.p.f.n.CDCChannelInboundHandler - caught CDC resolution error
java.lang.NullPointerException: Cannot invoke
"org.apache.shardingsphere.mode.manager.ContextManager.getMetaDataContexts()"
because the return value of
"org.apache.shardingsphere.data.pipeline.core.context.PipelineContext.getContextManager()"
is null
at
org.apache.shardingsphere.proxy.backend.handler.cdc.CDCBackendHandler.streamData(CDCBackendHandler.java:85)
at
org.apache.shardingsphere.proxy.frontend.netty.CDCChannelInboundHandler.processStreamDataRequest(CDCChannelInboundHandler.java:181)
at
org.apache.shardingsphere.proxy.frontend.netty.CDCChannelInboundHandler.channelRead(CDCChannelInboundHandler.java:120)`
- I found that the cause of the error is
`org.apache.shardingsphere.data.pipeline.core.context.PipelineContext.getContextManager()`
is null
- So I debug the code in the idea
I find that the `contextManager` always returns empty, which makes me very
confused
<img width="1868" alt="Screenshot 2023-03-28 at 00 29 16"
src="https://user-images.githubusercontent.com/57054352/228004764-dcedb76e-1e88-4660-91e5-40d8fb020b3e.png">
<img width="1868" alt="Screenshot 2023-03-28 at 00 25 24"
src="https://user-images.githubusercontent.com/57054352/228003788-4d27ab7f-528c-4de8-b486-6f8c970e9e2d.png">
<img width="1868" alt="Screenshot 2023-03-28 at 00 26 10"
src="https://user-images.githubusercontent.com/57054352/228003971-5b42e913-bf73-4568-b397-cfed7a256961.png">
--
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.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]