Uploaded image for project: 'Tephra'
  1. Tephra
  2. TEPHRA-250

Create a way to trigger transaction pruning

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0-incubating
    • Fix Version/s: 0.13.0-incubating
    • Component/s: core, manager
    • Labels:
      None

      Description

      Currently, pruning can be configured to run at a certain frequency, say every hour. But especially when pruning does not work well, and one tries various things to address that, it is very tedious to have to wait for the next scheduled pruning run. It would be good to be able to trigger it immediately after a change was made, to see whether that change helped.

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/incubator-tephra/pull/52

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/incubator-tephra/pull/52
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user anew commented on a diff in the pull request:

          https://github.com/apache/incubator-tephra/pull/52#discussion_r137911192

          — Diff: tephra-core/src/main/java/org/apache/tephra/distributed/thrift/TTransactionServer.java —
          @@ -88,6 +88,8 @@

          public TTransaction checkpoint(TTransaction tx) throws TTransactionNotInProgressException, org.apache.thrift.TException;
          — End diff –

          do not review this file, it is generated by Thrift.

          Show
          githubbot ASF GitHub Bot added a comment - Github user anew commented on a diff in the pull request: https://github.com/apache/incubator-tephra/pull/52#discussion_r137911192 — Diff: tephra-core/src/main/java/org/apache/tephra/distributed/thrift/TTransactionServer.java — @@ -88,6 +88,8 @@ public TTransaction checkpoint(TTransaction tx) throws TTransactionNotInProgressException, org.apache.thrift.TException; — End diff – do not review this file, it is generated by Thrift.
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user anew opened a pull request:

          https://github.com/apache/incubator-tephra/pull/52

          (TEPHRA-250) Allow to trigger transaction pruning

          • adds a method to TransactionPruningService to trigger pruning now
          • exposes this method through Thrift and the Tx system client
          • exposes the pruning service so that systems embedding Tephra can call the new method

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/anew/incubator-tephra tephra-250=trigger-pruning

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/incubator-tephra/pull/52.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #52


          commit cdffa37676ca52e69869f6a513b2045e114b508c
          Author: anew <anew@apache.org>
          Date: 2017-09-08T23:36:29Z

          (TEPHRA-250) Allow to trigger transaction pruning


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user anew opened a pull request: https://github.com/apache/incubator-tephra/pull/52 ( TEPHRA-250 ) Allow to trigger transaction pruning adds a method to TransactionPruningService to trigger pruning now exposes this method through Thrift and the Tx system client exposes the pruning service so that systems embedding Tephra can call the new method You can merge this pull request into a Git repository by running: $ git pull https://github.com/anew/incubator-tephra tephra-250=trigger-pruning Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-tephra/pull/52.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #52 commit cdffa37676ca52e69869f6a513b2045e114b508c Author: anew <anew@apache.org> Date: 2017-09-08T23:36:29Z ( TEPHRA-250 ) Allow to trigger transaction pruning

            People

            • Assignee:
              anew Andreas Neumann
              Reporter:
              anew Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development