[RESULT] [VOTE] Release of Apache Tephra-0.10.0-incubating [rc1]

2016-12-12 Thread Gokul Gunasekaran
Hi all,

After being open for over 72 hours, the vote for releasing Apache Tephra
0.10.0-incubating passed with 3 bindings +1s and no 0 or -1.


Binding +1s:
Alan Gates
Andreas Neumann
Gokul Gunasekaran


I am going to create a vote in the general@ list.


Thanks,
Gokul

On Mon, Dec 12, 2016 at 2:02 PM, Gokul Gunasekaran 
wrote:

> +1.
>
> Checked LICENSE, NOTICE and DISCLAIMER, validated checksums and signature,
> build passed.
>
> On Fri, Dec 9, 2016 at 6:02 PM, Andreas Neumann  wrote:
>
>> +1.
>>
>> - checked LICENSE, NOTICE and DISCLAIMER
>> - validated checksums and signature
>> - build passed.
>>
>> Cheers -Andreas
>>
>> On Fri, Dec 9, 2016 at 5:30 PM, Alan Gates  wrote:
>>
>> > +1.  Checked the LICENSE, NOTICE, and DISCLAIMER files.  Checked for any
>> > binary files.  Did a build with a fresh maven repo.
>> >
>> > Alan.
>> >
>> > > On Dec 9, 2016, at 14:36, Gokul Gunasekaran  wrote:
>> > >
>> > > Hi all,
>> > >
>> > > This is a call for a vote on releasing Apache Tephra
>> 0.10.0-incubating,
>> > > release candidate 1. This is the third release of Tephra.
>> > >
>> > > The source tarball, including signatures, digests, etc. can be found
>> at:
>> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/0.10
>> > > .0-incubating-rc1/src
>> > >
>> > > The tag to be voted upon is v0.10.0-incubating:
>> > > https://git-wip-us.apache.org/repos/asf?p=incubator-tephra.g
>> > > it;a=shortlog;h=refs/tags/v0.10.0-incubating
>> > >
>> > > The release hash is 601b070208f095cbebdc2a53dbefd0fedbb49dd1:
>> > > https://git-wip-us.apache.org/repos/asf?p=incubator-tephra.g
>> > > it;a=commit;h=601b070208f095cbebdc2a53dbefd0fedbb49dd1
>> > >
>> > > The Nexus Staging URL:
>> > > https://repository.apache.org/content/repositories/orgapache
>> tephra-1005
>> > >
>> > > Release artifacts are signed with the following key:
>> > > http://people.apache.org/keys/committer/gokul
>> > >
>> > > KEYS file available:
>> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/KEYS
>> > >
>> > > For information about the contents of this release, see:
>> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/0.10
>> > > .0-incubating-rc1/CHANGES.txt
>> > >
>> > > Please vote on releasing this package as Apache Tephra
>> 0.10.0-incubating
>> > >
>> > > The vote will be open for 72 hours.
>> > >
>> > > [ ] +1 Release this package as Apache Tephra 0.10.0-incubating
>> > > [ ] +0 no opinion
>> > > [ ] -1 Do not release this package because ...
>> > >
>> > > Thanks,
>> > > Gokul
>> >
>> >
>>
>
>


[RESULT] [VOTE] Release of Apache Tephra-0.10.0-incubating [rc1]

2016-12-12 Thread Gokul Gunasekaran
Hi all,

After being open for over 72 hours, the vote for releasing Apache Tephra
0.10.0-incubating passed with 3 bindings +1s and no 0 or -1.


Binding +1s:
Alan Gates
Andreas Neumann
Gokul Gunasekaran


I am going to create a vote in the general@ list.


Thanks,
Gokul

On Mon, Dec 12, 2016 at 2:02 PM, Gokul Gunasekaran 
wrote:

> +1.
>
> Checked LICENSE, NOTICE and DISCLAIMER, validated checksums and signature,
> build passed.
>
> On Fri, Dec 9, 2016 at 6:02 PM, Andreas Neumann  wrote:
>
>> +1.
>>
>> - checked LICENSE, NOTICE and DISCLAIMER
>> - validated checksums and signature
>> - build passed.
>>
>> Cheers -Andreas
>>
>> On Fri, Dec 9, 2016 at 5:30 PM, Alan Gates  wrote:
>>
>> > +1.  Checked the LICENSE, NOTICE, and DISCLAIMER files.  Checked for any
>> > binary files.  Did a build with a fresh maven repo.
>> >
>> > Alan.
>> >
>> > > On Dec 9, 2016, at 14:36, Gokul Gunasekaran  wrote:
>> > >
>> > > Hi all,
>> > >
>> > > This is a call for a vote on releasing Apache Tephra
>> 0.10.0-incubating,
>> > > release candidate 1. This is the third release of Tephra.
>> > >
>> > > The source tarball, including signatures, digests, etc. can be found
>> at:
>> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/0.10
>> > > .0-incubating-rc1/src
>> > >
>> > > The tag to be voted upon is v0.10.0-incubating:
>> > > https://git-wip-us.apache.org/repos/asf?p=incubator-tephra.g
>> > > it;a=shortlog;h=refs/tags/v0.10.0-incubating
>> > >
>> > > The release hash is 601b070208f095cbebdc2a53dbefd0fedbb49dd1:
>> > > https://git-wip-us.apache.org/repos/asf?p=incubator-tephra.g
>> > > it;a=commit;h=601b070208f095cbebdc2a53dbefd0fedbb49dd1
>> > >
>> > > The Nexus Staging URL:
>> > > https://repository.apache.org/content/repositories/orgapache
>> tephra-1005
>> > >
>> > > Release artifacts are signed with the following key:
>> > > http://people.apache.org/keys/committer/gokul
>> > >
>> > > KEYS file available:
>> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/KEYS
>> > >
>> > > For information about the contents of this release, see:
>> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/0.10
>> > > .0-incubating-rc1/CHANGES.txt
>> > >
>> > > Please vote on releasing this package as Apache Tephra
>> 0.10.0-incubating
>> > >
>> > > The vote will be open for 72 hours.
>> > >
>> > > [ ] +1 Release this package as Apache Tephra 0.10.0-incubating
>> > > [ ] +0 no opinion
>> > > [ ] -1 Do not release this package because ...
>> > >
>> > > Thanks,
>> > > Gokul
>> >
>> >
>>
>
>


Re: [VOTE] Release of Apache Tephra-0.10.0-incubating [rc1]

2016-12-12 Thread Gokul Gunasekaran
+1.

Checked LICENSE, NOTICE and DISCLAIMER, validated checksums and signature,
build passed.

On Fri, Dec 9, 2016 at 6:02 PM, Andreas Neumann  wrote:

> +1.
>
> - checked LICENSE, NOTICE and DISCLAIMER
> - validated checksums and signature
> - build passed.
>
> Cheers -Andreas
>
> On Fri, Dec 9, 2016 at 5:30 PM, Alan Gates  wrote:
>
> > +1.  Checked the LICENSE, NOTICE, and DISCLAIMER files.  Checked for any
> > binary files.  Did a build with a fresh maven repo.
> >
> > Alan.
> >
> > > On Dec 9, 2016, at 14:36, Gokul Gunasekaran  wrote:
> > >
> > > Hi all,
> > >
> > > This is a call for a vote on releasing Apache Tephra 0.10.0-incubating,
> > > release candidate 1. This is the third release of Tephra.
> > >
> > > The source tarball, including signatures, digests, etc. can be found
> at:
> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/0.10
> > > .0-incubating-rc1/src
> > >
> > > The tag to be voted upon is v0.10.0-incubating:
> > > https://git-wip-us.apache.org/repos/asf?p=incubator-tephra.g
> > > it;a=shortlog;h=refs/tags/v0.10.0-incubating
> > >
> > > The release hash is 601b070208f095cbebdc2a53dbefd0fedbb49dd1:
> > > https://git-wip-us.apache.org/repos/asf?p=incubator-tephra.g
> > > it;a=commit;h=601b070208f095cbebdc2a53dbefd0fedbb49dd1
> > >
> > > The Nexus Staging URL:
> > > https://repository.apache.org/content/repositories/
> orgapachetephra-1005
> > >
> > > Release artifacts are signed with the following key:
> > > http://people.apache.org/keys/committer/gokul
> > >
> > > KEYS file available:
> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/KEYS
> > >
> > > For information about the contents of this release, see:
> > > https://dist.apache.org/repos/dist/dev/incubator/tephra/0.10
> > > .0-incubating-rc1/CHANGES.txt
> > >
> > > Please vote on releasing this package as Apache Tephra
> 0.10.0-incubating
> > >
> > > The vote will be open for 72 hours.
> > >
> > > [ ] +1 Release this package as Apache Tephra 0.10.0-incubating
> > > [ ] +0 no opinion
> > > [ ] -1 Do not release this package because ...
> > >
> > > Thanks,
> > > Gokul
> >
> >
>


[GitHub] incubator-tephra pull request #22: Transaction pruning service

2016-12-12 Thread anew
Github user anew commented on a diff in the pull request:

https://github.com/apache/incubator-tephra/pull/22#discussion_r91990644
  
--- Diff: tephra-core/src/main/java/org/apache/tephra/util/TxUtils.java ---
@@ -163,8 +167,22 @@ public static long getPruneUpperBound(Transaction tx) {
 
 long maxInvalidTx =
   tx.getInvalids().length > 0 ? 
tx.getInvalids()[tx.getInvalids().length - 1] : Transaction.NO_TX_IN_PROGRESS;
+
+// An invalid transaction can be used up to its max lifetime for data 
writes, hence we cannot prune an invalid
+// transaction until it exhausts its max lifetime.
+long elapsedTime = currentTimeMillis - 
TxUtils.getTimestamp(maxInvalidTx);
+long invalidTxBound;
+if (elapsedTime > txMaxLifetimeMillis) {
+  // maxInvalidTx is past its max lifetime
+  invalidTxBound = maxInvalidTx;
+} else {
+  // Reduce the lifetime of maxInvalidTx, so that it cannot be used 
for any more writes
+  long remainingTime = txMaxLifetimeMillis - elapsedTime;
+  invalidTxBound = maxInvalidTx - remainingTime * 
TxConstants.MAX_TX_PER_MS - 1;
--- End diff --

agreed. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---