You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by to...@apache.org on 2017/03/01 20:02:05 UTC
[1/2] kudu git commit: KUDU-1821. Noisy warning from catalog manager
Repository: kudu
Updated Branches:
refs/heads/branch-1.2.x 1af814b09 -> f5fa1827b
KUDU-1821. Noisy warning from catalog manager
This commit changes the LOG if the catalog manager is trying to start.
Add additional if statements for this case to show more details.
Change-Id: I6a9b8577e4d857c63df6e66c10d6cf20270cd41e
Reviewed-on: http://gerrit.cloudera.org:8080/5637
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <to...@apache.org>
Reviewed-by: Adar Dembo <ad...@cloudera.com>
(cherry picked from commit 217dfe475a4745a017cc9946455ffa01c95e1cad)
Reviewed-on: http://gerrit.cloudera.org:8080/6205
Reviewed-by: Jean-Daniel Cryans <jd...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/711916a0
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/711916a0
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/711916a0
Branch: refs/heads/branch-1.2.x
Commit: 711916a0b36cb4bee66e52f07ca28d9f8ef89244
Parents: 1af814b
Author: Jun He <ju...@gmail.com>
Authored: Thu Jan 5 22:22:09 2017 -0800
Committer: Jean-Daniel Cryans <jd...@apache.org>
Committed: Wed Mar 1 19:35:45 2017 +0000
----------------------------------------------------------------------
src/kudu/master/catalog_manager.cc | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kudu/blob/711916a0/src/kudu/master/catalog_manager.cc
----------------------------------------------------------------------
diff --git a/src/kudu/master/catalog_manager.cc b/src/kudu/master/catalog_manager.cc
index d2ea3c6..1afd3bb 100644
--- a/src/kudu/master/catalog_manager.cc
+++ b/src/kudu/master/catalog_manager.cc
@@ -389,8 +389,13 @@ void CatalogManagerBgTasks::Run() {
{
CatalogManager::ScopedLeaderSharedLock l(catalog_manager_);
if (!l.catalog_status().ok()) {
- LOG(WARNING) << "Catalog manager background task thread going to sleep: "
- << l.catalog_status().ToString();
+ if (l.catalog_status().IsServiceUnavailable()) {
+ LOG(INFO) << "Waiting for catalog manager background task thread to start: "
+ << l.catalog_status().ToString();
+ } else {
+ LOG(WARNING) << "Catalog manager background task thread going to sleep: "
+ << l.catalog_status().ToString();
+ }
} else if (l.leader_status().ok()) {
std::vector<scoped_refptr<TabletInfo>> to_process;
[2/2] kudu git commit: KUDU-1904 Don't seek on empty RLE blocks
Posted by to...@apache.org.
KUDU-1904 Don't seek on empty RLE blocks
Seeking in RLE blocks enforces that the seek position is less than
the number of elements in the block. If the number of elements is 0,
as it is when the entire set of cells is NULL, this check will always
result in a crash.
This patch enforces that the block only seeks if there are elements
in the block.
Test coverage will be added in an upcoming commit.
Change-Id: I6d6bd95099c9f30aa923a0da1e76f92ed90ebd99
Reviewed-on: http://gerrit.cloudera.org:8080/6201
Reviewed-by: Jean-Daniel Cryans <jd...@apache.org>
Tested-by: Jean-Daniel Cryans <jd...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/f5fa1827
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/f5fa1827
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/f5fa1827
Branch: refs/heads/branch-1.2.x
Commit: f5fa1827b3bc3c87f4ade67ce9dee2a7cb804cef
Parents: 711916a
Author: Andrew Wong <aw...@cloudera.com>
Authored: Tue Feb 28 14:13:05 2017 -0800
Committer: Jean-Daniel Cryans <jd...@apache.org>
Committed: Wed Mar 1 19:36:15 2017 +0000
----------------------------------------------------------------------
src/kudu/cfile/rle_block.h | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kudu/blob/f5fa1827/src/kudu/cfile/rle_block.h
----------------------------------------------------------------------
diff --git a/src/kudu/cfile/rle_block.h b/src/kudu/cfile/rle_block.h
index c7702f1..c8ed76b 100644
--- a/src/kudu/cfile/rle_block.h
+++ b/src/kudu/cfile/rle_block.h
@@ -330,6 +330,10 @@ class RleIntBlockDecoder final : public BlockDecoder {
virtual void SeekToPositionInBlock(uint pos) OVERRIDE {
CHECK(parsed_) << "Must call ParseHeader()";
+ // If the block is empty (e.g. the column is filled with nulls), there is no data to seek.
+ if (PREDICT_FALSE(num_elems_ == 0)) {
+ return;
+ }
CHECK_LT(pos, num_elems_)
<< "Tried to seek to " << pos << " which is >= number of elements ("
<< num_elems_ << ") in the block!.";