[VOTE] Release 4.16.2, release candidate #1

2023-06-26 Thread Yong Zhang
Hi everyone,
Please review and vote on the release candidate #1 for the version 4.16.2,,
as follows:
[ ] +1, Approve the release
[ ] -1, Do not approve the release (please provide specific comments)

The complete staging area is available for your review, which includes:
* Release notes [1]
* The official Apache source and binary distributions to be deployed to
dist.apache.org [2]
* All artifacts to be deployed to the Maven Central Repository [3]
* Source code tag "release-4.5.0" [4] with git sha
0465f7e6ebc2289334cc97b06fbfb0a8f07e2e8b

BookKeeper's KEYS file contains PGP keys we used to sign this release:
https://dist.apache.org/repos/dist/release/bookkeeper/KEYS

Please download these packages and review this release candidate:

- Review release notes
- Download the source package (verify shasum, and asc) and follow the
instructions to build and run the bookkeeper service.
- Download the binary package (verify shasum, and asc) and follow the
instructions to run the bookkeeper service.
- Review maven repo, release tag, licenses, and any other things you think
it is important to a release.

The vote will be open for at least 72 hours. It is adopted by majority
approval, with at least 3 PMC affirmative votes.

Thanks,
Release Manager

[1]
https://github.com/apache/bookkeeper/pull/4002/files#diff-d361215d5d5abaa96ac3362e70a1d2f80f92d369a59c866e1976ff41ec435f53R4
[2] https://dist.apache.org/repos/dist/dev/bookkeeper/bookkeeper-4.16.2-rc1/
[3]
https://repository.apache.org/content/repositories/orgapachebookkeeper-1086/
[4] https://github.com/apache/bookkeeper/releases/tag/v4.16.2-rc1


Re: [DISCUSS] Upgrade RocksDB version to 6.29.4.1 for branch-4.14

2023-06-26 Thread Enrico Olivelli
Hang,

Il giorno dom 25 giu 2023 alle ore 09:47 Hang Chen
 ha scritto:
>
> Hi guys,
>
> More than one year ago, we had a discussion[1] about reverting the
> RocksDB version for branch-4.14, and the main concern is that RocksDB
> 6.17.3 breaks runtime compatibility with older versions and it
> requires the code to be recompiled. Lari did a great investigation and
> you can find more details in this Apache Pulsar pull
> https://github.com/apache/pulsar/pull/14962. In the discussion, we
> have two solutions, and we choose solution 1 in the end.
> 1) Do not upgrade RocksDB in BookKeeper 4.14.5 and give the user which
> uses RocksDB an easy path to upgrade from BK 4.14.4 to 4.14.5
> 2) Upgrade RocksDB and requires to all the BK users to pay attention
> to the RocksDB version they have in the classpath. The risk is to have
> runtime errors which will require them to rebuild the application and
> redeploy their services.
>
> However, we found two issues about the current RocksDB version
> (6.16.4) on branch-4.14
> - In our production environment, we found both RocksDB 6.10.2 and
> 6.16.4 has native memory leak issue[2] and after upgraded the RocksDB
> version to 6.29.4.1, the memory leak issue was fixed.
> - We have upgraded the RocksDB version to 7.9.2 since 4.16.0, and the
> RocksDB can only rollback to 6.27+. It means BookKeeper 4.16.0+ can
> rollback to 4.15.x (RocksDB 6.29.4.1) but can't rollback to 4.14.x
> (RocksDB 6.16.4) if we don't upgrade the RocksDB version to 6.29.4.1
> for branch-4.14
>
> The main reason for rolling back RocksDB version for branch-4.14 is
> that RocksDB 6.17.3 breaks runtime compatibility with older versions
> and it requires the code to be recompiled.

If this is the only reason then I think that it is not a problem, because
BookKeeper users don't use RocksDB directly, the RocksDB APIs are not part of
BK APIs.

So one question is:
if I am on BK 4.14.7 and I upgrade to 4.14.8 with the new RocksDB
version 6.29.4.1,
can I rollback to 4.14.7 if I have some problems ?

if the answer is "yes" then I am supportive of this upgrade

Thanks for pushing forward this initiative

Enrico

 In my opinion, if users
> upgrade BookKeeper 4.14.7 to 4.14.8, which upgraded the RocksDB
> version from 6.16.4 to 6.29.4.1, they need to use the new BookKeeper
> package which has been compiled with new RocksDB version instead of
> replace the BookKeeper-server library directly. So it is safe to
> upgrade the RocksDB version. I have pushed one PR[4] to upgrade the
> RocksDB version to 6.29.4.1 for branch-4.14.
>
> Any concerns?
>
> Thanks,
> Hang
>
> [1] https://lists.apache.org/thread/dsdltmoy5ggqx4oj7hrt13hqok80d4jf
> [2] https://github.com/apache/bookkeeper/issues/3507
> [3] https://github.com/apache/bookkeeper/issues/3734#issuecomment-1407626941
> [4] https://github.com/apache/bookkeeper/pull/3947