wolfstudy opened a new issue #4593: [Start Standalone Error] In the case of 
wifi connection, /bin/pulsar standalone is not working properly
URL: https://github.com/apache/pulsar/issues/4593
 
 
   **Describe the bug**
   In the case of a **WI-FI** connection, when I use `./bin/pulsar standalone` 
to start pulsar, I get the following error:
   
   ```
   10:57:29.260 [DLM-/stream/storage-OrderedScheduler-4-0] INFO  
org.apache.bookkeeper.stream.storage.impl.store.MVCCStoreFactoryImpl - 
Successfully initialize stream(1)/range(0) at storage container (1)
   10:57:29.260 [DLM-/stream/storage-OrderedScheduler-4-0] INFO  
org.apache.bookkeeper.stream.storage.impl.store.MVCCStoreFactoryImpl - Add 
store (scId = 1, streamId = 1, rangeId = 0) at storage container (1)
   10:57:29.260 [DLM-/stream/storage-OrderedScheduler-4-0] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.StorageContainerImpl - 
Successfully started storage container (1).
   10:57:29.260 [DLM-/stream/storage-OrderedScheduler-4-0] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.StorageContainerRegistryImpl - 
Successfully started registered StorageContainer ('1').
   10:57:29.260 [DLM-/stream/storage-OrderedScheduler-4-0] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.ZkStorageContainerManager - 
Successfully started storage container (1)
   10:57:29.260 [DLM-/stream/storage-OrderedScheduler-4-0] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.ZkStorageContainerManager - 
Storage container 
(org.apache.bookkeeper.stream.storage.impl.sc.StorageContainerImpl@4f52c8b) is 
added to live set.
   ^C10:57:51.115 [Curator-LeaderSelector-0] WARN  
org.apache.bookkeeper.stream.storage.impl.cluster.ClusterControllerLeaderImpl - 
Controller leader is interrupted, giving up leadership
   10:57:51.118 [ProcessThread(sid:0 cport:2181):] INFO  
org.apache.zookeeper.server.PrepRequestProcessor - Got user-level 
KeeperException when processing sessionid:0x1001157fce30004 type:delete 
cxid:0xd zxid:0x2dc txntype:-1 reqpath:n/a Error 
Path:/stream/controller/_c_a0c46f44-3df2-4456-a1cf-2925c284121c-lock-0000000006 
Error:KeeperErrorCode = NoNode for 
/stream/controller/_c_a0c46f44-3df2-4456-a1cf-2925c284121c-lock-0000000006
   10:57:51.120 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.ZkStorageContainerManager - 
Stopping storage container (0)
   10:57:51.120 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.StorageContainerRegistryImpl - 
Unregistered StorageContainer ('0').
   10:57:51.120 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.StorageContainerImpl - Stopping 
storage container (0) ...
   10:57:51.120 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.store.MVCCStoreFactoryImpl - Closing 
000000000000000000/000000000000000001/000000000000000000 of sc 0
   10:57:51.121 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.store.MVCCStoreFactoryImpl - Closing 
000000000000000000/000000000000000000/000000000000000000 of sc 0
   10:57:51.121 [io-write-scheduler-OrderedScheduler-1-0] INFO  
org.apache.bookkeeper.statelib.impl.journal.AbstractStateStoreWithJournal - 
closing async state store 
000000000000000000/000000000000000001/000000000000000000
   10:57:51.121 [io-write-scheduler-OrderedScheduler-0-0] INFO  
org.apache.bookkeeper.statelib.impl.journal.AbstractStateStoreWithJournal - 
closing async state store 
000000000000000000/000000000000000000/000000000000000000
   10:57:51.121 [io-read-scheduler-OrderedScheduler-1-0] INFO  
org.apache.distributedlog.BKLogSegmentWriter - Flushing before closing log 
segment 
streams_000000000000000000_000000000000000001_000000000000000000:<default>:inprogress_000000000000000007
   10:57:51.121 [io-read-scheduler-OrderedScheduler-0-0] INFO  
org.apache.distributedlog.BKLogSegmentWriter - Flushing before closing log 
segment 
streams_000000000000000000_000000000000000000_000000000000000000:<default>:inprogress_000000000000000007
   10:57:51.122 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.ZkStorageContainerManager - 
Stopping storage container (1)
   10:57:51.122 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.StorageContainerRegistryImpl - 
Unregistered StorageContainer ('1').
   10:57:51.123 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.sc.StorageContainerImpl - Stopping 
storage container (1) ...
   10:57:51.123 [Thread-1] INFO  
org.apache.bookkeeper.stream.storage.impl.store.MVCCStoreFactoryImpl - Closing 
000000000000000001/000000000000000001/000000000000000000 of sc 1
   10:57:51.123 [io-write-scheduler-OrderedScheduler-1-0] INFO  
org.apache.bookkeeper.statelib.impl.journal.AbstractStateStoreWithJournal - 
closing async state store 
000000000000000001/000000000000000001/000000000000000000
   10:57:51.118 [Curator-LeaderSelector-0] ERROR 
org.apache.curator.framework.recipes.leader.LeaderSelector - The leader threw 
an exception
   java.lang.InterruptedException: null
        at java.lang.Object.wait(Native Method) ~[?:1.8.0_201]
        at java.lang.Object.wait(Object.java:502) ~[?:1.8.0_201]
        at org.apache.zookeeper.ClientCnxn.submitRequest(ClientCnxn.java:1411) 
~[org.apache.pulsar-pulsar-zookeeper-2.4.0.jar:2.4.0]
        at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:880) 
~[org.apache.pulsar-pulsar-zookeeper-2.4.0.jar:2.4.0]
        at 
org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:274)
 ~[org.apache.curator-curator-framework-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:268)
 ~[org.apache.curator-curator-framework-4.0.1.jar:4.0.1]
        at 
org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:64)
 ~[org.apache.curator-curator-client-4.0.1.jar:?]
        at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:100) 
~[org.apache.curator-curator-client-4.0.1.jar:?]
        at 
org.apache.curator.framework.imps.DeleteBuilderImpl.pathInForeground(DeleteBuilderImpl.java:265)
 ~[org.apache.curator-curator-framework-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.imps.DeleteBuilderImpl.forPath(DeleteBuilderImpl.java:249)
 ~[org.apache.curator-curator-framework-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.imps.DeleteBuilderImpl.forPath(DeleteBuilderImpl.java:34)
 ~[org.apache.curator-curator-framework-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.locks.LockInternals.deleteOurPath(LockInternals.java:347)
 ~[org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.locks.LockInternals.releaseLock(LockInternals.java:124)
 ~[org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.locks.InterProcessMutex.release(InterProcessMutex.java:154)
 ~[org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:449)
 [org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:466)
 [org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:65)
 [org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:246)
 [org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at 
org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:240)
 [org.apache.curator-curator-recipes-4.0.1.jar:4.0.1]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_201]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[?:1.8.0_201]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_201]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_201]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_201]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
   ```
   
   Then i tried to solve this problem with  `./bin/pulsar standalone -a 
127.0.0.1`, unfortunately, I still encountered the same error.
   
   However, this problem will not occur when you disconnect all connected 
networks (eg: wifi)
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   **Expected behavior**
   
   This problem is not a bug that can be reliably reproduced. Some people will 
encounter this problem, but some people will not encounter it.
   
   **Screenshots**
   
   
![image](https://user-images.githubusercontent.com/20965307/60066973-654e3680-973b-11e9-886e-be22b4f499b3.png)
   
   **Desktop (please complete the following information):**
    - OS: mac
    - pulsar: apache-pulsar-2.4.0
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to