Disable live tracing feature
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 24 Mar 2016 21:46:42 +0000 (17:46 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 29 Mar 2016 23:05:02 +0000 (19:05 -0400)
The Live Tracing feature is quite limited and error prone. Some
of the shortcomings are documented in bug 486728. Since there are no
short term plans to improve this in Neon, perhaps it is better to
disable this for now.

Change-Id: Iaf6cab29ce55fde58296aab9935d220eee29a297
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/69285
Reviewed-by: Hudson CI
Reviewed-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
doc/org.eclipse.tracecompass.doc.user/doc/User-Guide.mediawiki
lttng/org.eclipse.tracecompass.lttng2.control.core.tests/src/org/eclipse/tracecompass/lttng2/control/core/tests/relayd/LttngRelayd24TestApplication.java
lttng/org.eclipse.tracecompass.lttng2.control.core/src/org/eclipse/tracecompass/internal/lttng2/control/core/model/impl/SessionInfo.java
lttng/org.eclipse.tracecompass.lttng2.control.ui.tests/src/org/eclipse/tracecompass/lttng2/control/ui/tests/service/LTTngControlServiceMiTest.java
lttng/org.eclipse.tracecompass.lttng2.control.ui.tests/src/org/eclipse/tracecompass/lttng2/control/ui/tests/service/LTTngControlServiceTest.java
lttng/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/model/impl/TargetNodeComponent.java

index 8c79eef4c3d382b9555b95b982c361c0cfef18fb..83b02e3bb0297b7f427b4b69d1453fc8fb9f0424 100644 (file)
@@ -1142,7 +1142,7 @@ Fill in all necessary information, select the radio button for '''Snapshot Mode'
 
 Refer to chapter [[#Recording a Snapshot | Recording a Snapshot]] for how to create a snapshot.
 
-=== Creating a Live Tracing Session ===
+<!--=== Creating a Live Tracing Session ===
 LTTng Tools version v2.4.0 introduces the possibility to create live tracing sessions. The live mode allows you to stream the trace and view it while it's being recorded. To create such a live session, open the trace session dialog as described in chapter [[#Creating a Tracing Session | Creating a Tracing Session]].
 
 [[Image:images/LTTng2CreateSessionDialog_Live.png]]
@@ -1152,7 +1152,7 @@ In the advanced options, it is possible to set the '''Live Delay'''. The '''Live
 [[Image:images/LTTng2CreateSessionDialog_Live_Advanced.png]]
 
 Fill in all necessary information, select the radio button for '''Live Mode''' and press '''Ok'''.
-
+-->
 === Enabling Channels - General ===
 
 Enabling channels can be done using a session tree node when the domain hasn't be created in the session or, alternatively on a domain tree node of a session in case the domain is already available.
index be5c10ad5721e0f809865f707e3a2be3e5fa498f..f37ef2eb82bcf911e791474db730459667f7cf57 100644 (file)
@@ -36,6 +36,7 @@ import org.eclipse.tracecompass.internal.lttng2.control.core.relayd.commands.Ses
 import org.eclipse.tracecompass.internal.lttng2.control.core.relayd.commands.StreamResponse;
 import org.eclipse.tracecompass.internal.lttng2.control.core.relayd.commands.ViewerCommand;
 import org.eclipse.tracecompass.internal.lttng2.control.core.relayd.impl.LttngRelaydConnectorFactory;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -87,6 +88,7 @@ public class LttngRelayd24TestApplication {
      *             network timeout?
      */
     @Test
+    @Ignore
     public void testViewerConnection() throws IOException {
         InetAddress addr = InetAddress.getByName(ADDRESS);
         try (Socket connection = new Socket(addr, PORT);
index 53a78fa2e5984b4f0adb0b5abba1fda1b5799de9..d6bb3903dcbe2a35c89432f8c915ab39f24eb7fc 100644 (file)
@@ -223,7 +223,8 @@ public class SessionInfo extends TraceInfo implements ISessionInfo {
 
     @Override
     public boolean isLive() {
-        return fIsLive;
+        // FIXME: Disable Live support until we have a better implementation
+        return fIsLive && false;
     }
 
     @Override
index ce11fba59ad03819b804d7d729096afa7a196cad..488a18c528649151a006b23d1868a771b34de610 100644 (file)
@@ -36,6 +36,7 @@ import org.eclipse.tracecompass.internal.lttng2.control.core.model.impl.SessionI
 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.ILttngControlService;
 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.LTTngControlServiceConstants;
 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.LTTngControlServiceMI;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -72,6 +73,7 @@ public class LTTngControlServiceMiTest extends LTTngControlServiceTest {
     }
 
     @Override
+    @Ignore
     public void testCreateLiveSession() throws ExecutionException {
         fShell.setScenario(SCEN_CREATE_LIVE_SESSION);
 
index 6e1f4a81fd6002bee06cfba55b613aa190e7e99f..07194ef60aba97cc2293ee2ee3890be5b0de619a 100644 (file)
@@ -58,6 +58,7 @@ import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.LTTngCo
 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.LTTngControlServiceFactory;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.osgi.framework.FrameworkUtil;
 
@@ -470,6 +471,7 @@ public class LTTngControlServiceTest {
     }
 
     @Test
+    @Ignore
     public void testGetSessionWithLive() {
         try {
             fShell.setScenario(SCEN_GET_SESSION_WITH_LIVE);
@@ -1505,6 +1507,7 @@ public class LTTngControlServiceTest {
     }
 
     @Test
+    @Ignore
     public void testCreateLiveSession() throws ExecutionException {
         fShell.setScenario(SCEN_CREATE_LIVE_SESSION);
 
@@ -1525,6 +1528,7 @@ public class LTTngControlServiceTest {
     }
 
     @Test
+    @Ignore
     public void testCreateLiveSessionErrors() {
         try {
             fShell.setScenario(SCEN_CREATE_LIVE_SESSION_ERRORS);
index 8a09dd96157b45f3bb76d9bf7e97f3d7a8a6b789..37da60e5aa6545a2627b194a32c3fa7931933f47 100644 (file)
@@ -278,7 +278,9 @@ public class TargetNodeComponent extends TraceControlComponent implements IRemot
      *
      */
     public boolean isLiveSupported() {
-        return getControlService().isVersionSupported("2.4.0"); //$NON-NLS-1$;
+        return false;
+        // FIXME: Disable Live support until we have a better implementation
+        //return getControlService().isVersionSupported("2.4.0"); //$NON-NLS-1$;
     }
     /**
      * Returns if node supports adding contexts on event
This page took 0.033016 seconds and 5 git commands to generate.