Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5579

Vitess: Handle VStream close unepectedly

XMLWordPrintable

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      vitess-connector

      What is the connector configuration?

      Not relevant

      What is the captured database version and mode of depoyment?

      Vitess V11

      What behaviour do you expect?

      When there is Vitess host restart (VtTable or VtGate), we saw the below exception on Vitess Connector side.  This error should be retriable:

       

      2022-08-31 20:39:36,039 INFO  Vitess|dev|streaming VStream streaming onError. Status: Status{code=UNKNOWN, description=vstream ended unexpectedly, cause=null}  [io.debezium.connector.vitess.connection.VitessReplicationConnection]
      io.grpc.StatusRuntimeException: UNKNOWN: vstream ended unexpectedly
          at io.grpc.Status.asRuntimeException(Status.java:533)
          at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:478)
          at io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:463)
          at io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:427)
          at io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:460)
          at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:616)
          at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:69)
          at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:802)
          at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:781)
          at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
          at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
      2022-08-31 20:39:36,849 ERROR Vitess|dev|streaming Error during streaming  [io.debezium.connector.vitess.VitessStreamingChangeEventSource]
      io.grpc.StatusRuntimeException: UNKNOWN: vstream ended unexpectedly

      What behaviour do you see?

      Vitess Connector shuts down

      Do you see the same behaviour using the latest relesead Debezium version?

      Yes

      Do you have the connector logs, ideally from start till finish?

      See Above

      How to reproduce the issue using our tutorial deployment?

      Restart some hosts on Vitess side

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      <Your answer>

      Implementation ideas (optional)

      Add more error handling in VitessErrorHandler.java

            Unassigned Unassigned
            haiyingcai Henry Haiying Cai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: