Uploaded image for project: 'Java DCP Client'
  1. Java DCP Client
  2. JDCP-24

'State needs to be initialized or recovered first before starting' after initializing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Critical
    • None
    • 0.3.0

    Description

      Observed this on Jenkins:

      java.lang.IllegalStateException: State needs to be initialized or recovered first before starting
      	at com.couchbase.client.dcp.Client.sanityCheckSessionState(Client.java:370)
      	at com.couchbase.client.dcp.Client.startStreaming(Client.java:317)
      	at com.couchbase.analytics.adapter.CouchbaseConnector.<init>(CouchbaseConnector.java:73)
      

      startStreaming is only called after a successful await on initialize():

              LOGGER.info(feedName + " calling initializeState()...");
              if (!client.initializeState(StreamFrom.BEGINNING, StreamTo.INFINITY).await(TIMEOUT_SECS, TimeUnit.SECONDS)) {
                  throw new HyracksDataException("client.initializeStream().await() timed out after " + TIMEOUT_SECS
                          + " seconds");
              }
              LOGGER.info(feedName + " ...state initialized");
              LOGGER.info(feedName + " calling startStreaming().subscribe()...");
              // TODO (amoudi/mblow): any way to timeout for startStreaming().subscribe()?
              subscription = client.startStreaming(vbuckets).subscribe();
      

      Observed in this Jenkins log: http://analytics.jenkins.couchbase.com/job/couchsterix-test/1081/artifact/nc-nc1.log

      I will update wth a DCP debug log once available.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            david.nault David Nault
            michael.blow Michael Blow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty