From 84e7ab51cff4d4cf0c0394f9c34bf415e0b62613 Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Tue, 24 Mar 2020 16:57:56 +0530 Subject: [PATCH 1/6] Update changelog for v2.0.3 (cherry picked from commit b551699e4ccd7a9cc70d3230b664a2ac0ecb18b4) --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12cf544fa..1ef2ce9ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Serialization Versioning](VERSIONING.md). +## [2.0.3] - 2020-03-24 + +### Fixed + +- Add support for watching nil prefix in subscribe API (#1246) + +### Performance + +- Compress/Encrypt Blocks in the background (#1227) +- Disable cache by default (#1257) + +### Features + +- Add BypassDirLock option (#1243) +- Add separate cache for bloomfilters (#1260) + +### New APIs +- badger.DB + - BfCacheMetrics (#1260) + - DataCacheMetrics (#1260) +- badger.Options + - WithBypassLockGuard (#1243) + - WithLoadBloomsOnOpen (#1260) + - WithMaxBfCacheSize (#1260) + ## [2.0.2] - 2020-03-02 ### Fixed @@ -293,6 +318,8 @@ Bug fix: ## [1.0.1] - 2017-11-06 * Fix an uint16 overflow when resizing key slice +[Unreleased]: https://github.com/dgraph-io/badger/compare/v2.0.3...HEAD +[2.0.3]: https://github.com/dgraph-io/badger/compare/v2.0.2...v2.0.3 [2.0.2]: https://github.com/dgraph-io/badger/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/dgraph-io/badger/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/dgraph-io/badger/compare/v1.6.0...v2.0.0 From fea4729fa2eda778c374c9025bd43b4902b5e297 Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Fri, 10 Jul 2020 21:37:44 +0530 Subject: [PATCH 2/6] Add changelog for v20.07 release --- CHANGELOG.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ef2ce9ec..578f44252 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,68 @@ # Changelog All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Serialization Versioning](VERSIONING.md). +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). + +## [20.07-rc1] - 2020-07-10 + +### Fixed + - Fix Sequence generates duplicate values (#1281) + - Fix race condition in DoesNotHave (#1287) + - Fail fast if cgo is disabled and compression is ZSTD (#1284) + - Proto: make badger/v2 compatible with v1 (#1293) + - Proto: Rename dgraph.badger.v2.pb to badgerpb2 (#1314) + - Handle duplicates in ManagedWriteBatch (#1315) + - Ensure `bitValuePointer` flag is cleared for LSM entry values written to LSM (#1313) + - DropPrefix: Return error on blocked writes (#1329) + - Confirm `badgerMove` entry required before rewrite (#1302) + - Drop move keys when its key prefix is dropped (#1331) + - Iterator: Always add key to txn.reads (#1328) + - Restore: Account for value size as well (#1358) + - Compaction: Expired keys and delete markers are never purged (#1354) + - GC: Consider size of value while rewriting (#1357) + - Force KeepL0InMemory to be true when InMemory is true (#1375) + - Rework DB.DropPrefix (#1381) + - Update head while replaying value log (#1372) + - Avoid panic on multiple closer.Signal calls (#1401) + - Return error if the vlog writes exceeds more that 4GB. (#1400) + +### Performance + - Clean up transaction oracle as we go (#1275) + - Use cache for storing block offsets (#1336) + +### Features + - Support disabling conflict detection (#1344) + - Add leveled logging (#1249) + - Support entry version in Write batch (#1310) + - Add Write method to batch write (#1321) + - Support multiple iterators in read-write transactions. (#1286) + +### New APIs +- Badger.DB + - NewManagedWriteBatch - Write Batch with individual commitTs per entry. (#1310) + - DropPrefix - The API now supports dropping multiple prefixes in one call. (#1381) +- Badger.Option + - WithDetectConflicts - When true, disables conflict detection in Badger. (#1344) + - WithKeepBlockIndicesInCache - When true, stores block index in cache (requires cache enabled). (#1336) + - WithKeepBlocksInCache - When true, stores blocks in cache (requires cache enabled). (#1336) +- Badger.WriteBatch + - DeleteAt - DeleteAt allows deleting key at specific commitTs. (#1310) + - SetEntryAt - SetEntry allows inserting an entry at specific commitTs. (#1310) + - Write - Write allows inserting a pb.KvList (generated by stream writer). (#1321) + +### Changes to Default Options + - DefaultOptions: Set KeepL0InMemory to false (#1345) + - Increase default valueThreshold from 32B to 1KB (#1346) + +### Deprecated +- Badger.Option + - WithEventLogging (#1203) + +### Reverts +This sections lists the changes which were reverted because of non-reproducible crashes + +- Compress/Encrypt Blocks in the background (#1227) + ## [2.0.3] - 2020-03-24 From 0c60e67f20c21424b9c83cc1ab980e54fd338a61 Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Fri, 10 Jul 2020 21:42:43 +0530 Subject: [PATCH 3/6] minor changes --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 578f44252..c58c6540c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). -## [20.07-rc1] - 2020-07-10 +## [20.07.0-rc1] - 2020-07-10 ### Fixed - Fix Sequence generates duplicate values (#1281) @@ -378,7 +378,8 @@ Bug fix: ## [1.0.1] - 2017-11-06 * Fix an uint16 overflow when resizing key slice -[Unreleased]: https://github.com/dgraph-io/badger/compare/v2.0.3...HEAD +[Unreleased]: https://github.com/dgraph-io/badger/compare/v20.07.0-rc1...HEAD +[20.07.0-rc1]: https://github.com/dgraph-io/badger/compare/v2.0.3...v20.07.0-rc1 [2.0.3]: https://github.com/dgraph-io/badger/compare/v2.0.2...v2.0.3 [2.0.2]: https://github.com/dgraph-io/badger/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/dgraph-io/badger/compare/v2.0.0...v2.0.1 From a6f70473f8d6881eacf92f1dd18cae6d669314eb Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Sat, 11 Jul 2020 12:44:06 +0530 Subject: [PATCH 4/6] cleanup changelog --- CHANGELOG.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecb5a6d04..713fc4174 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Rework DB.DropPrefix (#1381) - Update head while replaying value log (#1372) - Avoid panic on multiple closer.Signal calls (#1401) - - Return error if the vlog writes exceeds more that 4GB. (#1400) + - Return error if the vlog writes exceeds more that 4GB (#1400) ### Performance - Clean up transaction oracle as we go (#1275) @@ -35,20 +35,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Add leveled logging (#1249) - Support entry version in Write batch (#1310) - Add Write method to batch write (#1321) - - Support multiple iterators in read-write transactions. (#1286) + - Support multiple iterators in read-write transactions (#1286) ### New APIs - Badger.DB - - NewManagedWriteBatch - Write Batch with individual commitTs per entry. (#1310) - - DropPrefix - The API now supports dropping multiple prefixes in one call. (#1381) + - NewManagedWriteBatch (#1310) + - DropPrefix (#1381) - Badger.Option - - WithDetectConflicts - When true, disables conflict detection in Badger. (#1344) - - WithKeepBlockIndicesInCache - When true, stores block index in cache (requires cache enabled). (#1336) - - WithKeepBlocksInCache - When true, stores blocks in cache (requires cache enabled). (#1336) + - WithDetectConflicts (#1344) + - WithKeepBlockIndicesInCache (#1336) + - WithKeepBlocksInCache (#1336) - Badger.WriteBatch - - DeleteAt - DeleteAt allows deleting key at specific commitTs. (#1310) - - SetEntryAt - SetEntry allows inserting an entry at specific commitTs. (#1310) - - Write - Write allows inserting a pb.KvList (generated by stream writer). (#1321) + - DeleteAt (#1310) + - SetEntryAt (#1310) + - Write (#1321) ### Changes to Default Options - DefaultOptions: Set KeepL0InMemory to false (#1345) @@ -59,8 +59,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - WithEventLogging (#1203) ### Reverts -This sections lists the changes which were reverted because of non-reproducible crashes - +This sections lists the changes which were reverted because of non-reproducible crashes. - Compress/Encrypt Blocks in the background (#1227) From dd31374014da89e7ca49d45b08bad83325912c72 Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Sat, 11 Jul 2020 12:45:17 +0530 Subject: [PATCH 5/6] fix typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 713fc4174..751d9409b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Rework DB.DropPrefix (#1381) - Update head while replaying value log (#1372) - Avoid panic on multiple closer.Signal calls (#1401) - - Return error if the vlog writes exceeds more that 4GB (#1400) + - Return error if the vlog writes exceeds more than 4GB (#1400) ### Performance - Clean up transaction oracle as we go (#1275) From bd97a2b73fd11d3aa8e7dab5c9bd9a6d9574317e Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Sat, 11 Jul 2020 13:52:11 +0530 Subject: [PATCH 6/6] fix tabs --- CHANGELOG.md | 76 ++++++++++++++++++++++++++-------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 751d9409b..9f4200b38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,60 +3,60 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). -## [20.07.0-rc1] - 2020-07-10 +## [20.07.0-rc1] - 2020-07-11 ### Fixed - - Fix Sequence generates duplicate values (#1281) - - Fix race condition in DoesNotHave (#1287) - - Fail fast if cgo is disabled and compression is ZSTD (#1284) - - Proto: make badger/v2 compatible with v1 (#1293) - - Proto: Rename dgraph.badger.v2.pb to badgerpb2 (#1314) - - Handle duplicates in ManagedWriteBatch (#1315) - - Ensure `bitValuePointer` flag is cleared for LSM entry values written to LSM (#1313) - - DropPrefix: Return error on blocked writes (#1329) - - Confirm `badgerMove` entry required before rewrite (#1302) - - Drop move keys when its key prefix is dropped (#1331) - - Iterator: Always add key to txn.reads (#1328) - - Restore: Account for value size as well (#1358) - - Compaction: Expired keys and delete markers are never purged (#1354) - - GC: Consider size of value while rewriting (#1357) - - Force KeepL0InMemory to be true when InMemory is true (#1375) - - Rework DB.DropPrefix (#1381) - - Update head while replaying value log (#1372) - - Avoid panic on multiple closer.Signal calls (#1401) - - Return error if the vlog writes exceeds more than 4GB (#1400) + - Fix Sequence generates duplicate values (#1281) + - Fix race condition in DoesNotHave (#1287) + - Fail fast if cgo is disabled and compression is ZSTD (#1284) + - Proto: make badger/v2 compatible with v1 (#1293) + - Proto: Rename dgraph.badger.v2.pb to badgerpb2 (#1314) + - Handle duplicates in ManagedWriteBatch (#1315) + - Ensure `bitValuePointer` flag is cleared for LSM entry values written to LSM (#1313) + - DropPrefix: Return error on blocked writes (#1329) + - Confirm `badgerMove` entry required before rewrite (#1302) + - Drop move keys when its key prefix is dropped (#1331) + - Iterator: Always add key to txn.reads (#1328) + - Restore: Account for value size as well (#1358) + - Compaction: Expired keys and delete markers are never purged (#1354) + - GC: Consider size of value while rewriting (#1357) + - Force KeepL0InMemory to be true when InMemory is true (#1375) + - Rework DB.DropPrefix (#1381) + - Update head while replaying value log (#1372) + - Avoid panic on multiple closer.Signal calls (#1401) + - Return error if the vlog writes exceeds more than 4GB (#1400) ### Performance - - Clean up transaction oracle as we go (#1275) - - Use cache for storing block offsets (#1336) + - Clean up transaction oracle as we go (#1275) + - Use cache for storing block offsets (#1336) ### Features - - Support disabling conflict detection (#1344) - - Add leveled logging (#1249) - - Support entry version in Write batch (#1310) - - Add Write method to batch write (#1321) - - Support multiple iterators in read-write transactions (#1286) + - Support disabling conflict detection (#1344) + - Add leveled logging (#1249) + - Support entry version in Write batch (#1310) + - Add Write method to batch write (#1321) + - Support multiple iterators in read-write transactions (#1286) ### New APIs - Badger.DB - - NewManagedWriteBatch (#1310) - - DropPrefix (#1381) + - NewManagedWriteBatch (#1310) + - DropPrefix (#1381) - Badger.Option - - WithDetectConflicts (#1344) - - WithKeepBlockIndicesInCache (#1336) - - WithKeepBlocksInCache (#1336) + - WithDetectConflicts (#1344) + - WithKeepBlockIndicesInCache (#1336) + - WithKeepBlocksInCache (#1336) - Badger.WriteBatch - - DeleteAt (#1310) - - SetEntryAt (#1310) - - Write (#1321) + - DeleteAt (#1310) + - SetEntryAt (#1310) + - Write (#1321) ### Changes to Default Options - - DefaultOptions: Set KeepL0InMemory to false (#1345) - - Increase default valueThreshold from 32B to 1KB (#1346) + - DefaultOptions: Set KeepL0InMemory to false (#1345) + - Increase default valueThreshold from 32B to 1KB (#1346) ### Deprecated - Badger.Option - - WithEventLogging (#1203) + - WithEventLogging (#1203) ### Reverts This sections lists the changes which were reverted because of non-reproducible crashes.