HONEYCOMB-9: Disable polling thread for former pipeline
authorMaros Marsalek <[email protected]>
Tue, 12 Apr 2016 14:40:35 +0000 (16:40 +0200)
committerMaros Marsalek <[email protected]>
Wed, 13 Apr 2016 06:19:56 +0000 (06:19 +0000)
The poll causes deadlocks on vppJapi in combination
with Initializers or any other read/write operations

Change-Id: I623642e42780b5174956f7859c0192c925900c19
Signed-off-by: Maros Marsalek <[email protected]>
v3po/impl/src/main/java/io/fd/honeycomb/v3po/impl/V3poProvider.java

index 8ed83d5..5dcf586 100644 (file)
@@ -25,7 +25,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Timer;
-import java.util.TimerTask;
 import javax.annotation.Nonnull;
 import javax.annotation.concurrent.NotThreadSafe;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
@@ -171,12 +170,12 @@ public class V3poProvider implements BindingAwareProvider, AutoCloseable, Broker
         Timer timer = new Timer();
 
         // fire task after 1 second and then repeat each 10 seconds
-        timer.scheduleAtFixedRate(new TimerTask() {
-                @Override
-                public void run() {
-                    vppPollOperData.updateOperational();
-                }
-            }, 1000, 10000);
+//        timer.scheduleAtFixedRate(new TimerTask() {
+//                @Override
+//                public void run() {
+//                    vppPollOperData.updateOperational();
+//                }
+//            }, 1000, 10000);
     }
 
     @Override