You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by mp...@apache.org on 2016/05/27 20:01:37 UTC

incubator-kudu git commit: Disable tracing for tablet bootstrap during remote bootstrap

Repository: incubator-kudu
Updated Branches:
  refs/heads/master 0e7c257f9 -> 6fff1b2a2


Disable tracing for tablet bootstrap during remote bootstrap

The StartRemoteBootstrap RPC currently actually runs the whole download
and startup inline (see KUDU-921). One side effect of this is that
/rpcz will show the entire trace of this RPC, and that trace includes
every operation that was replayed during startup of the newly copied
tablet (many MB worth of trace data).

This simply disables tracing during the bootstrap itself.

Change-Id: I684524ca8d45d04a67d2823c3edbcfa4a7d7989b
Reviewed-on: http://gerrit.cloudera.org:8080/3236
Tested-by: Kudu Jenkins
Reviewed-by: Mike Percy <mp...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/6fff1b2a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/6fff1b2a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/6fff1b2a

Branch: refs/heads/master
Commit: 6fff1b2a2e0927e738bea5216352d14f73ac182e
Parents: 0e7c257
Author: Todd Lipcon <to...@apache.org>
Authored: Fri May 27 00:18:17 2016 -0700
Committer: Mike Percy <mp...@apache.org>
Committed: Fri May 27 19:57:40 2016 +0000

----------------------------------------------------------------------
 src/kudu/tserver/ts_tablet_manager.cc | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/6fff1b2a/src/kudu/tserver/ts_tablet_manager.cc
----------------------------------------------------------------------
diff --git a/src/kudu/tserver/ts_tablet_manager.cc b/src/kudu/tserver/ts_tablet_manager.cc
index 3d72686..1276135 100644
--- a/src/kudu/tserver/ts_tablet_manager.cc
+++ b/src/kudu/tserver/ts_tablet_manager.cc
@@ -637,6 +637,10 @@ void TSTabletManager::OpenTablet(const scoped_refptr<TabletMetadata>& meta,
   consensus::ConsensusBootstrapInfo bootstrap_info;
   Status s;
   LOG_TIMING_PREFIX(INFO, LogPrefix(tablet_id), "bootstrapping tablet") {
+    // Disable tracing for the bootstrap, since this would result in
+    // potentially millions of transaction traces being attached to the
+    // RemoteBootstrap trace.
+    ADOPT_TRACE(nullptr);
     // TODO: handle crash mid-creation of tablet? do we ever end up with a
     // partially created tablet here?
     tablet_peer->SetBootstrapping();