You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/14 13:25:41 UTC

[GitHub] [pulsar] thiagohernandes opened a new issue #13294: Pulsar does not run after the first time - standalone mode

thiagohernandes opened a new issue #13294:
URL: https://github.com/apache/pulsar/issues/13294


   **Describe the bug**
   I've downloaded version 2.8.1 and started once with success on mode standalone. But, when a tried to producer and consumer on Java this not work. There seems not connect on Java locking my app without any logs. Still, when stopping Apache and trying to run again, some exceptions occur and it doesn't run.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1 start Pulsar standalone mode
   2 try to connect, produce and consume any messages in any topic (here doesn't work the consumer)
   3 stop Pulsar standalone
   4 try to start Pulsar standalone mode (exceptions bellow)
   
   **Expected behavior**
   - after stops, achieve to run Pulsar again
   - on simple Java test classes, connect, produce and consume messages
   
   **Screenshots**
   ![Captura de tela de 2021-12-14 10-20-15](https://user-images.githubusercontent.com/2352110/146006793-8c562381-7b1c-4c0f-bdef-4fb0f676808a.png)
   ![Captura de tela de 2021-12-14 10-20-21](https://user-images.githubusercontent.com/2352110/146006803-5a842b1d-d3a2-4ad8-aab7-2355aa84e471.png)
   ![Captura de tela de 2021-12-14 10-20-38](https://user-images.githubusercontent.com/2352110/146006811-12eddd92-580c-4eec-af09-b7d4570c40ea.png)
   ![Captura de tela de 2021-12-14 10-20-47](https://user-images.githubusercontent.com/2352110/146006815-953429f6-45ab-4a5e-b3cb-634ff072e177.png)
   ![Captura de tela de 2021-12-14 10-20-57](https://user-images.githubusercontent.com/2352110/146006819-f3565fd5-9174-47bc-9a9d-174418ae6618.png)
   ![Captura de tela de 2021-12-14 10-21-08](https://user-images.githubusercontent.com/2352110/146006829-856059fc-f42d-4d39-86df-4a426e26af1f.png)
   ![Captura de tela de 2021-12-14 10-21-14](https://user-images.githubusercontent.com/2352110/146006832-cc633a56-7d40-4889-be05-0de9b2b3fe5a.png)
   ![Captura de tela de 2021-12-14 10-21-20](https://user-images.githubusercontent.com/2352110/146006835-03f11970-3910-462f-969e-5f3135847212.png)
   ![Captura de tela de 2021-12-14 10-21-30](https://user-images.githubusercontent.com/2352110/146006841-4ac46f5d-b395-4b70-aa24-f40fe790a0f7.png)
   ![error-1](https://user-images.githubusercontent.com/2352110/146006847-0e231922-76f8-4898-b044-92ae28b7050a.png)
   
   
   **Desktop (please complete the following information):**
   - SO: Distributor ID: Ubuntu 20.04.3 LTS
   - Java 11
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] hangc0276 commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
hangc0276 commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-993656341


   @thiagohernandes I can't reproduce your exception, did you changed other configurations?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] KryukovaLidiya commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
KryukovaLidiya commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-993869542


   @thiagohernandes  I'm not sure, but maybe I can help you. Tell me, after the first start and a complete stop after the server, Do you have the logs and data directories?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] thiagohernandes commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
thiagohernandes commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-993663989


   > @thiagohernandes I can't reproduce your exception, did you changed other configurations?
   
   No! Local machine only instructions before.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] thiagohernandes commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
thiagohernandes commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-994788814


   @KryukovaLidiya Take a look the log when the consumer get receive the producer's data.
   ![Captura de tela de 2021-12-15 10-23-16](https://user-images.githubusercontent.com/2352110/146194507-d89fb260-5c2a-4d2b-91b8-281776a91b04.png)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] KryukovaLidiya commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
KryukovaLidiya commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-994429391


   @thiagohernandes In fact, just during the testing of Pulsar-Perf, we had something similar, and the point is not in emptiness, but in their presence, if you delete both the logs folder and the data folder, then you may be able to start. Not guaranteed, but worth a try. Actually, having turned gray a bit in the code, we switched to github and not to the release builds.
   If you have time, try to erase these directories between launches or try to run a non-release version, maybe this will solve your problem. 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] KryukovaLidiya edited a comment on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
KryukovaLidiya edited a comment on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-995887385


   @thiagohernandes 
   To be honest, I'm not a committer to this repository and I'm not sure I have rights, but you can offer a patch here (If you have).
   I just faced the same problem and "delete" works for us.
   
   I am just involved in the analysis of the performance of the pulsar, so when faced with a problem I solve it on our side as it would be convenient for us and I report here.
   
   Thank you for reporting this (I forgot about it just by deleting).
   I could probably look and maybe suggest a patch, but not now. Unfortunately, until the new year I am overloaded.
   
   Perhaps someone can earlier and will pay attention to the problem, if not, I will try to help you, but not earlier than in a month. 
   
   But since I myself have been looking at this code for only a month, I would be glad if you dropped the launch commands directly. 
   Like this:
   `Run server
   bin/pulsar standalone &`
   `Run test
   bin/pulsar-perf produce --rate 100000 --warmup-time 60 --test-duration 120 my-topic`
   `We are waiting for the end of the program, the duration is 2 minutes - you can reduce it in the parameters above, this does not affect.`
   `See error`
   
   Maybe it would be possible to give this task a label that needs help?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] github-actions[bot] commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-1051439131


   The issue had no activity for 30 days, mark with Stale label.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] thiagohernandes commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
thiagohernandes commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-994079209


   @KryukovaLidiya Logs is empty in logs folder. Above the screenshots. 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] thiagohernandes edited a comment on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
thiagohernandes edited a comment on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-994722470


   > @thiagohernandes In fact, just during the testing of Pulsar-Perf, we had something similar, and the point is not in emptiness, but in their presence, if you delete both the logs folder and the data folder, then you may be able to start. Not guaranteed, but worth a try. Actually, having turned gray a bit in the code, we switched to github and not to the release builds. If you have time, try to erase these directories between launches or try to run a non-release version, maybe this will solve your problem.
   
   Really work after **delete "data" folde**r. I believe it's a bug. Yet, after creating a simple producer and consumer occur a **lock** on my consumer and not receive a value. _Bellow the screenshots of Java code_:
   
   **Ps**: the lock happens on Java class PlayingConsumer1.java - code line -> **consumer.receive().getValue()**
   
   ![Captura de tela de 2021-12-15 08-54-06](https://user-images.githubusercontent.com/2352110/146182670-35c24a89-bae3-491f-b68c-ace2406d8a2d.png)
   ![Captura de tela de 2021-12-15 08-54-59](https://user-images.githubusercontent.com/2352110/146182673-d2410e52-80f6-45b2-8124-3bf463df0903.png)
   ![Captura de tela de 2021-12-15 08-55-06](https://user-images.githubusercontent.com/2352110/146182676-4411715c-5ee8-48ca-9c38-4a810367b4e9.png)
   ![Captura de tela de 2021-12-15 08-55-26](https://user-images.githubusercontent.com/2352110/146182678-7e596b2d-2118-4071-ad5a-61a7ee4cbdbc.png)
   ![Captura de tela de 2021-12-15 08-55-38](https://user-images.githubusercontent.com/2352110/146182679-d80e4fa3-597f-44bf-a9db-1a9f9e695f20.png)
   ![Captura de tela de 2021-12-15 08-58-43](https://user-images.githubusercontent.com/2352110/146182681-c2677046-cf05-45ef-b5f2-745346f8879d.png)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] thiagohernandes commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
thiagohernandes commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-994722470


   > @thiagohernandes In fact, just during the testing of Pulsar-Perf, we had something similar, and the point is not in emptiness, but in their presence, if you delete both the logs folder and the data folder, then you may be able to start. Not guaranteed, but worth a try. Actually, having turned gray a bit in the code, we switched to github and not to the release builds. If you have time, try to erase these directories between launches or try to run a non-release version, maybe this will solve your problem.
   
   Really work after delete "data" folder. I believe it's a bug. Yet, after creating a simple producer and consumer occur a lock on my consumer and not receive a value. Bellow the screenshots of Java code:
   ![Captura de tela de 2021-12-15 08-54-06](https://user-images.githubusercontent.com/2352110/146182670-35c24a89-bae3-491f-b68c-ace2406d8a2d.png)
   ![Captura de tela de 2021-12-15 08-54-59](https://user-images.githubusercontent.com/2352110/146182673-d2410e52-80f6-45b2-8124-3bf463df0903.png)
   ![Captura de tela de 2021-12-15 08-55-06](https://user-images.githubusercontent.com/2352110/146182676-4411715c-5ee8-48ca-9c38-4a810367b4e9.png)
   ![Captura de tela de 2021-12-15 08-55-26](https://user-images.githubusercontent.com/2352110/146182678-7e596b2d-2118-4071-ad5a-61a7ee4cbdbc.png)
   ![Captura de tela de 2021-12-15 08-55-38](https://user-images.githubusercontent.com/2352110/146182679-d80e4fa3-597f-44bf-a9db-1a9f9e695f20.png)
   ![Captura de tela de 2021-12-15 08-58-43](https://user-images.githubusercontent.com/2352110/146182681-c2677046-cf05-45ef-b5f2-745346f8879d.png)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] thiagohernandes commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
thiagohernandes commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-993665125


   > > @thiagohernandes I can't reproduce your exception, did you changed other configurations?
   > 
   > No! Local machine only instructions before. Ps: nothing changed
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] KryukovaLidiya commented on issue #13294: Pulsar does not run after the first time - standalone mode

Posted by GitBox <gi...@apache.org>.
KryukovaLidiya commented on issue #13294:
URL: https://github.com/apache/pulsar/issues/13294#issuecomment-995887385


   @thiagohernandes 
   To be honest, I'm not a committer to this repository and I'm not sure I have rights, but you can offer a patch here (If you have).
   I just faced the same problem and "delete" works for us.
   
   I am just involved in the analysis of the performance of the pulsar, so when faced with a problem I solve it on our side as it would be convenient for us and I report here.
   
   Thank you for reporting this (I forgot about it just by deleting).
   I could probably look and maybe suggest a patch, but not now. Unfortunately, until the new year I am overloaded.
   
   Perhaps someone can earlier and will pay attention to the problem, if not, I will try to help you, but not earlier than in a month. 
   
   But since I myself have been looking at this code for only a month, I would be glad if you dropped the launch commands directly. 
   Like this:
   `Run server
   bin/pulsar standalone &`
   `Run test
   bin/pulsar-perf produce --rate 100000 --warmup-time 60 --test-duration 120 my-topic`
   `We are waiting for the end of the program, the duration is 2 minutes - you can reduce it in the parameters above, this does not affect.`
   `See error`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org