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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.11.0
    • Component/s: io-java-redis
    • Labels:
      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

              • Assignee:
                robert@fluidly.com Robert Collins
                Reporter:
                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