You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2021/04/24 03:04:45 UTC

[kudu] branch master updated (a9f0547 -> b9d144a)

This is an automated email from the ASF dual-hosted git repository.

alexey pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git.


    from a9f0547  [tools] fix build on macOS
     new 37cb2b3  [master] Clarify comment in SysCatalogTable::WaitUntilRunning().
     new b9d144a  [client] fix typos on metacache lookup timing

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/kudu/client/meta_cache.cc  | 4 ++--
 src/kudu/master/sys_catalog.cc | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

[kudu] 01/02: [master] Clarify comment in SysCatalogTable::WaitUntilRunning().

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit 37cb2b378807e2025fbcab41d08f4eb5fa87a86a
Author: Mahesh Reddy <mr...@cloudera.com>
AuthorDate: Fri Apr 23 17:11:47 2021 -0700

    [master] Clarify comment in SysCatalogTable::WaitUntilRunning().
    
    This change clarifies the comment detailing the return behavior of
    the status in SysCatalogTable::WaitUntilRunning().
    
    Change-Id: I6d46d6797d112db8f45c714c3ba49c4b3c3315a7
    Reviewed-on: http://gerrit.cloudera.org:8080/17337
    Reviewed-by: Andrew Wong <aw...@cloudera.com>
    Tested-by: Andrew Wong <aw...@cloudera.com>
---
 src/kudu/master/sys_catalog.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kudu/master/sys_catalog.cc b/src/kudu/master/sys_catalog.cc
index 54cee49..63aec50 100644
--- a/src/kudu/master/sys_catalog.cc
+++ b/src/kudu/master/sys_catalog.cc
@@ -541,7 +541,7 @@ Status SysCatalogTable::WaitUntilRunning() {
                                << seconds_waited << " seconds)";
       continue;
     }
-    // if the status is not OK or TimedOut return it.
+    // If the status is not OK or not TimedOut, then return it.
     return status;
   }
   return Status::OK();

[kudu] 02/02: [client] fix typos on metacache lookup timing

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit b9d144abd4b6becc7d2f0b64ea8b5f90871a54f0
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Fri Apr 23 16:42:01 2021 -0700

    [client] fix typos on metacache lookup timing
    
    Before this patch, the logs on slow metacache lookup looked like
    the following:
      Time spent slow lookup of entry by key:  ...
    
    Now it's
      Time spent looking up entry by key: ...
    
    This patch doesn't contain any functional changes.
    
    This is a follow-up to 44d687caf3633d75b0cc64f1a25f444484ce43ad.
    
    Change-Id: I0699337b25a702c86a780e0b42ebd3ab0e15b1ef
    Reviewed-on: http://gerrit.cloudera.org:8080/17336
    Tested-by: Kudu Jenkins
    Reviewed-by: Andrew Wong <aw...@cloudera.com>
---
 src/kudu/client/meta_cache.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/kudu/client/meta_cache.cc b/src/kudu/client/meta_cache.cc
index 6f3d839..fdbfe08 100644
--- a/src/kudu/client/meta_cache.cc
+++ b/src/kudu/client/meta_cache.cc
@@ -1181,7 +1181,7 @@ Status MetaCache::ProcessGetTableLocationsResponse(const KuduTable* table,
 bool MetaCache::LookupEntryByKeyFastPath(const KuduTable* table,
                                          const string& partition_key,
                                          MetaCacheEntry* entry) {
-  SCOPED_LOG_SLOW_EXECUTION(WARNING, 50, "slow lookup of entry by key");
+  SCOPED_LOG_SLOW_EXECUTION(WARNING, 50, "looking up entry by key");
   shared_lock<rw_spinlock> l(lock_.get_lock());
   const TabletMap* tablets = FindOrNull(tablets_by_table_and_key_, table->id());
   if (PREDICT_FALSE(!tablets)) {
@@ -1234,7 +1234,7 @@ Status MetaCache::DoFastPathLookup(const KuduTable* table,
 
 bool MetaCache::LookupEntryByIdFastPath(const string& tablet_id,
                                         MetaCacheEntry* entry) {
-  SCOPED_LOG_SLOW_EXECUTION(WARNING, 50, "slow lookup of entry by ID");
+  SCOPED_LOG_SLOW_EXECUTION(WARNING, 50, "looking up entry by ID");
   shared_lock<rw_spinlock> l(lock_.get_lock());
   const auto* cache_entry = FindOrNull(entry_by_tablet_id_, tablet_id);
   if (PREDICT_FALSE(!cache_entry)) {