Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6494

We do not sync pipeline with server at bundle end, only during teardown

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.9.0
    • 2.11.0
    • io-java-redis
    • None

    Description

      The redis pipeline object only sends executed commands to the redis server when sync() or close() are called. If these are not called, the calls stay inside the buffer. As teardown is not guaranteed to be called, we should call pipeline.sync() inside finishBundle, after pipeline.exec(). docs

       

      @FinishBundle
      public void finishBundle() {
      if (pipeline.isInMulti())

      { pipeline.exec(); }

      batchCount = 0;
      }

      @Teardown
      public void teardown()

      { jedis.close(); }

      Attachments

        Issue Links

          Activity

            People

              robert@fluidly.com Robert Collins
              robert@fluidly.com Robert Collins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m