Skip to content

Releases: apache/bookkeeper

Release 4.14.7

20 Feb 08:34
Compare
Choose a tag to compare

Release 4.14.7 includes multiple bug fixes.

Apache BookKeeper users are encouraged to upgrade to 4.14.7.
The technical details of this release are summarized below.

Highlights

Bugs

  • Revert PR#3653 and make delete entries batch size configurable PR #3768
  • Fix memory leak when the Bookie is in read only mode PR #3746
  • Fix QueueEntry recycle problem. PR #3747
  • Expose registrationClient in DefaultBookieAddressResolver. PR #3724
  • Added api/v1/bookie/cluster_info REST API PR #3714
  • Check if channel closed before processing read request PR #3486
  • Add missed call to onReadRequestFinish() when read request rejected PR #3482
  • Avoid extra buffer to prepend frame size PR #3560

Details

https://github.com/apache/bookkeeper/pulls?q=is%3Apr+label%3Arelease%2F4.14.7+is%3Aclosed

Release 4.14.6

09 Jan 13:02
Compare
Choose a tag to compare

Release 4.14.6 includes multiple bug fixes and some dependencies CVE fixes.

Apache BookKeeper users are encouraged to upgrade to 4.14.6.
The technical details of this release are summarized below.

Highlights

Bugs

  • Fix memory leak when reading entry but the connection disconnected. PR #3528
  • When call openLedgerOp, make the timeout ex is a separate error code PR #3562
  • Apply recycle logic during add entry creation but ledger close to LedgerHandleAdv PR #3621
  • Fix autoRecovery memory leak. PR #3361
  • Fix potential memory leak. PR #3530
  • Fix the V2 AddRequest object leak issue PR #3323
  • Fix ByteBuf memory leak problem when setExplicitLac PR #3617
  • Fix the problem that the abnormal file causes the bookie GC fail PR #3611
  • Fix the deadlock when only using io thread to handle request PR #3480
  • Fix memory leak when closeRecovered,failed on clearing newEnsemblesFromRecovery PR #3672
  • Fix memory leak when operating ledger metadata PR #3662
  • LedgerHandle: do not complete metadata operation on the ZookKeeper/Metadata callback thread PR #3516
  • Ledger replicate supports throttle PR #2778
  • CheckAllLedgers in Auditor supports read throttle PR #2973
  • Rename success with writableResult and update final writableResult about wait writeSet PR #3505
  • LedgerFragment check and results keep order PR #3504
  • Improve the throttle function PR #2991
  • Fix close ledgerAuditorManager repeatedly PR #3503
  • AutoRecovery - Do not call shutdown() on the main ZookKeeper client thread PR #3487
  • WriteLacResponse should be processed in the same thread as other requests for the same ledgerId PR #3452
  • Shutdown ReplicationWorker and Auditor on non-recoverable ZK error PR #3374
  • Enhance future sync wait. PR #3336
  • Pre break loop when self create layoutZNode succeed. PR #3335
  • Fix the PendingAddOp is not recycled when LedgerHandler closed PR #3321
  • Fix autorecovery does not process underreplicated empty ledgers PR #3239
  • Fix RegionAwareEnsemblePlacementPolicy update rack info problem. PR #3666
  • Fix bug where checkAllLedgers gets stuck when read throttling is enabled PR #3214
  • Fix checkAllLedgersDuration compute PR #2970
  • Zk client config update and bugfix for ZKMetadataClientDriver PR #2958
  • Make sure the LedgerHandle close callback can be completed when encounter exception PR #2913
  • Make jvm_memory_direct_bytes_used metrics compatible with jdk8. PR #3677
  • Reorder the sequence of the bookkeeper server shutdown so that there are no read/ write ops while shutting down the bookie PR #2888
  • Fix readlogmetadata failed bug and export entrylog file usage to output PR #2349
  • MinorCompactionInterval should be greater than gcWaitTime PR #2116
  • Skipping placementPolicyCheck when ledger replication disabled PR #3561
  • Skip replicasCheck when replication disabled PR #3563
  • Fix GetBookieInfo failed event stats PR #3622
  • Add journal file path that caused failure in multi-journal config PR #3634
  • Include bkperf into bk all package PR #3632
  • Fix maven javadoc generate issues PR #3615
  • Switch to rely on SslEngine for Hostname Verification PR #3310
  • Simplified No network topology script is found default log stack output PR #3496
  • Fix jvm_memory_direct_bytes_used metrics when using jdk11+ PR #3252
  • Fix the 3144 revert issue PR #3283
  • Avoid init WriteSet when waitForWriteSetMs < 0. PR #3325
  • Tuning PendingReadOp.java seq PR #3330
  • Optimize log for failed to write entry PR #3463
  • Reduce unnecessary loop in removeIf if map is empty PR #3512
  • Deduplicate error log for SSLException PR #3320
  • Fix underReplicatedLedgerTotalSize calculate problem. PR #3337
  • Fix wrong ledger id parse radix for index relocation file in IndexPersistenceMgr PR #2944
  • Fix bookie CI test not run PR #3367
  • Update doc about flushInterval config PR #3601
  • Show content of map PR #3538
  • Add example for multiple server list in metadataServiceUri configuration PR #3580
  • Replace sleep with await to avoid flaky test in SlowBookieTest PR #3581
  • Add javadoc comments for test classes PR #3587
  • Correct link class name PR #3594
  • Fix typo in bk_server.conf PR #3574
  • Fix flaky test testAutoRecoverySessionLoss PR #3576
  • Fix flaky tests in AuditorReplicasCheckTest PR #3551
  • Fix the tls failed test PR #3448
  • Backport BookieBackpressureForV2Test to branch-4.14 PR #3443
  • Fix Flaky-test: testBookieContinueWritingIfMultipleLedgersPresent PR #3421
  • BookieAutoRecoveryTest.testEmptyLedgerLosesQuorumEventually fix flaky test, ensure that the Auditor is alive PR #3149
  • Close journal channel in testJunkEndedJournal PR #3307
  • Fix stream storage flaky tests, statelib test times out PR #2883
  • Fix flaky AutoRecoveryMainTest PR #2881
  • Support apple m1 build PR #3175
  • Refactor ByteBuf release method in module distributedlog-core/distributedlog-protocol PR #3693
  • Refactor ByteBuf release method in module distributedlog-core PR #3691
  • Refactor ByteBuf release method in tools PR #3687
  • Refactor ByteBuf release method in stream/statelib PR #3689
  • Refactor ByteBuf release method in DefaultEntryLogger PR #3673
  • Refactor ByteBuf release method in InterleavedLedgerStorage PR #3674

Improvements

  • Bring back deleteRange for RocksDB to improve location delete performance PR #3653
  • Consolidate Netty channel flushes to mitigate syscall overhead PR #3383
  • Using a separate thread pool to execute openWithMetadata PR #3548
  • Replace unsafe NoEntryException with IOException PR #2909
  • Update default value of allocatorPoolingConcurrency PR #3001
  • Apply the backpressure changes on the V2 requests PR #3324
  • LedgerOpenOp: Do not call blocking close() in the callback PR #3513

Metrics changes

  • Add rocksDB read latency and read from storage latency for entry reading PR #3647
  • Add latency s...
Read more

Release 4.15.3

15 Nov 02:18
release-4.15.3
Compare
Choose a tag to compare

Release 4.15.3 includes multiple bug fixes and some dependencies CVE fixes.

Apache BookKeeper users are encouraged to upgrade to 4.15.3.
The technical details of this release are summarized below.

Notice

Highlights

Dependency updates

Bugs

  • Fix ByteBuf memory leak problem when setExplicitLac. PR #3557
  • Flush time started moved to after lock. PR #3570
  • Skip replicasCheck when replication disabled. PR #3563
  • Skipping placementPolicyCheck when ledger replication disabled. PR #3561
  • Fix the deadlock when only using io thread to handle request. PR #3480
  • Fix memory leak when reading entry but the connection disconnected. PR #3528
  • Fix byteBuf potential memory leak problem. PR #3525
  • LedgerOpenOp: Do not call blocking close() in the callback. PR #3513
  • Rename success with writableResult and update final writableResult about wait writeSet. PR #3505
  • Avoid closing the ledgerAuditorManager twice in the close method. PR #3503

Improvements

  • When call openLedgerOp, make the timeout ex is a separate error code. PR #3562
  • Make the rocksDB configuration compatible with previous versions. PR #3523
  • Reduce unnecessary loop in removeIf if map is empty. PR #3512
  • Update default value of allocatorPoolingConcurrency. PR #3001

Release 4.15.2

09 Oct 02:25
release-4.15.2
Compare
Choose a tag to compare

Highlights

Dependency updates

Bugs

  • AutoRecovery - Do not call shutdown() on the main ZookKeeper client thread. PR #3487
  • Check if channel closed before processing read request. PR #3486
  • Add missed call to onReadRequestFinish() when read request rejected. PR #3482
  • Fix the deadlock when only using io thread to handle request. PR #3480

Metrics changes

  • Add latency stats for entry location index lookup so that possible RocksDB bottleneck can be detected. PR #3444

Release 4.15.1

02 Sep 01:58
release-4.15.1
Compare
Choose a tag to compare

Highlights

Bugs

  • Fix AutoRecovery memory leak. PR #3361
  • Fix: NPE in RackawareEnsemblePlacementPolicyImpl logged by AutoRecovery. PR #3350
  • Fix underReplicatedLedgerTotalSize calculate problem. PR #3337
  • Fix JVM exited when running localbookie with jdk17. PR #3334
  • Fix the V2 AddRequest object leak issue. PR #3323
  • Fix the PendingAddOp is not recycled when LedgerHandler closed. PR #3321
  • Bookie can't start after rebooting due the cookie mistmatch. PR #3308
  • Close journal channel in testJunkEndedJournal. PR #3307
  • Fix jvm_memory_direct_bytes_used metrics when using jdk11+. PR #3252
  • AutoRecovery does not process underreplicated empty ledgers. PR #3239
  • Fix wrong ledger id parse radix for index relocation file in IndexPersistenceMgr. PR #2944
  • Fix the infinite waiting for shutdown due to throttler limit. PR #2942
  • Make sure the LedgerHandle close callback can be completed when encounter exception. PR #2913

Improvements

  • If ensembleList is empty, return PlacementPolicyAdherence.FAIL. PR #3369
  • reduce unnecessary checkpoints. PR #3341
  • Pre break loop when self create layoutZNode succeed. PR #3335
  • Avoid init WriteSet when waitForWriteSetMs < 0. PR #3325
  • Tuning PendingReadOp.java seq. PR #3330
  • Apply the backpressure changes on the V2 requests. PR #3324
  • Deduplicate error log for SSLException. PR #3320
  • Switch to rely on SslEngine for Hostname Verification. PR #3310
  • Try to use Java9 CRC32C when JNI based CRC is not available. PR #3309
  • Enhance future sync wait. PR #3336
  • validate diskUsageThreshold and diskUsageLwmThreshold. PR #3285
  • Replace unsafe NoEntryException with IOException. PR #2909
  • let bookie quit if journal thread exit. PR #2887
  • Ledger replicate supports throttle. PR #2778
  • minorCompactionInterval should be greater than gcWaitTime. PR #2116
  • Optimize concurrent collection's shrink logic. PR #3417
  • Make BookieFileChannel interface public. PR #3396
  • Prioritize compaction of entry logs with the lowest amount of remaining usable data. PR #3390
  • Switch back ordered executor to LinkedBlockingQueue. PR #3384
  • Consolidate Netty channel flushes to mitigate syscall overhead. PR #3383
  • Shut down ReplicationWorker and Auditor on non-recoverable ZK error. PR #3374
  • BP-41 Add flag to enable/disable BookieAddressResolver. PR #3356
  • release the bookie from QuarantinedBookies when health check is disabled. PR #3349

Metrics changes

Dependency updates

Details

https://github.com/apache/bookkeeper/pulls?q=is%3Apr+label%3Arelease%2F4.15.1+is%3Aclosed+is%3Amerged

Release 4.14.5

13 May 08:23
Compare
Choose a tag to compare

Release 4.15.0

09 May 21:06
Compare
Choose a tag to compare

Apache Bookkeeper release 4.15.0

Release 4.15 includes many upgrades to third party libraries marked with CVEs, adds more configuration options, extends REST API, adds an option to run without journal, improves memory utilization and stability, and more!

Apache BookKeeper users are encouraged to upgrade to 4.15.0. The technical details of this release are summarized below.

Breaking Changes

  • BookieServer API changed and the code that creates its instances will require addition of the UncleanShutdownDetection parameter. See PR 2936 for details and examples.

  • Bookie class now is an interface with implementation in BookieImpl. Code that uses it may need changes. For details please refer to PR 2717.

  • LedgerUnderreplicationManager interface added a new method. Code that implements the interface will need changes. See PR 2805 for details.

  • MetadataBookieDriver interface added a new method and removed an old one. RegistrationManager interface added a new method. ByteBufAllocatorWithOomHandler interface is added and used instead of the ByteBufAllocator in multiple places. Code that implements the interfaces will need changes. See PR 2901 for details.

Highlights

Configuration

Features

  • Running without journal. See BP-46 for details.
  • A REST API to get or update bookie readOnly state. Details
  • Separate config files for Rocks DB. Details

Improvements

  • Build and tests work on JDK 17
  • CLI: listunderreplicated command has an option to return count without printing all ledgers #3228
  • Stream Storage: support an optional time to live (TTL) on a per table basis #2775
  • Added dDb ledger index rebuild operation and CLI commands #2774
  • Support multi ledger directories for rocksdb backend entryMetadataMap #2965
  • Improved memory utilization
    • support shrink for ConcurrentLong map or set #3074
    • reduce unnecessary expansions for ConcurrentLong map and set #3072
  • Read speed rate limiter for scanning entry log file in entryMetadataMap rebuild #2963
  • Other improvements in areas such as test, documentation, CI, metrics, logging, and CLI tools.

Notable fixes

  • Bookkeeper client might not close the channel for several minutes after a Bookie crashes #2482
  • Stream storage: Ensure progress while restoring from checkpoint. #2764
  • Entry Log GC may get blocked when using entryLogPerLedgerEnabled option #2779
  • Fix region aware placement policy use disk weight #2981
  • Some cases that could cause RocksDB segfault
  • DistributedLogManager can skip over a segment on read. #3064
  • Backpressure: check all bookies of writeset are writable #3055
  • Fix Journal.ForceWriteThread.forceWriteRequests.put deadlock #2962
  • PendingReadOp: Fix ledgerEntryImpl reuse problem #3110
  • Region/rack aware placement policy: replace bookie bug #2642
  • ReplicationWorker: numLedgersReplicated metric does not update #3218
  • Force GC doesn't work under forceAllowCompaction when disk is full #3205

Dependencies changes

Upgraded dependencies to address CVEs include:

  • vertx
  • freebuilder
  • libthrift
  • netty
  • bouncycastle
  • commonsIO
  • jetty
  • log4j
  • grpc
  • protobuf
  • snakeyaml
  • RocksDB
  • jackson
  • jackson-databind
  • Zookeeper
  • http-core
  • dropwizard metrics

Dependency on log4j v.1 is removed.

Details

https://github.com/apache/bookkeeper/issues?q=+label%3Arelease%2F4.15.0

Release 4.14.3

11 Nov 01:19
release-4.14.3
Compare
Choose a tag to compare
release-4.14.3

release-4.14.3

Release 4.14.2

30 Aug 09:38
release-4.14.2
Compare
Choose a tag to compare
release-4.14.2

Release 4.14.2

Release 4.14.1

31 May 23:50
Compare
Choose a tag to compare

#2718 -- Fix prometheus metric provider bug and add test to cover label scope