FAQ
Hello All,
               https://github.com/sagar8192/Flash/tree/sagarp-repo-arranged
I have fixed my repository. Now go build & go install should be able to
create a binary without any errors. I have also gone ahead and removed
kafka producer code from the repo. To test the code I was running the
executables inside a container with kafka and zookeeper containers linked.
Same problem happened again without kafka code and outside the container.
Discussion can be found here: https://github.com/golang/go/issues/14673
               I am not sure if there is a error in the code.

Thanks!
Sagar

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Dave Cheney at Mar 7, 2016 at 9:56 pm
    How do you run this example ?

    What do you see when you run this example ?

    What do you expect to see when you run this example ?

    Have you tried building the server with the -race flag and checking that your code does not contain any data races?

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Sagar752 at Mar 7, 2016 at 10:53 pm
    I am running the server binary and then I run the client binary every 0.1
    sec using watch. The server will start processing messages. After sometime
    the server will get stuck. Simultaneously I look at strace and that is when
    I see the posted trace in the github ticket.
    On Monday, March 7, 2016 at 1:56:08 PM UTC-8, Dave Cheney wrote:

    How do you run this example ?

    What do you see when you run this example ?

    What do you expect to see when you run this example ?

    Have you tried building the server with the -race flag and checking that
    your code does not contain any data races?
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dave Cheney at Mar 8, 2016 at 12:17 am
    I don't know how to reproduce your results. Can you please answer the
    questions in detail. Show the full command you run, and all the output you
    receive. Thanks.
    On Tuesday, 8 March 2016 09:54:09 UTC+11, saga...@gmail.com wrote:

    I am running the server binary and then I run the client binary every 0.1
    sec using watch. The server will start processing messages. After sometime
    the server will get stuck. Simultaneously I look at strace and that is when
    I see the posted trace in the github ticket.
    On Monday, March 7, 2016 at 1:56:08 PM UTC-8, Dave Cheney wrote:

    How do you run this example ?

    What do you see when you run this example ?

    What do you expect to see when you run this example ?

    Have you tried building the server with the -race flag and checking that
    your code does not contain any data races?
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Kevin Malachowski at Mar 8, 2016 at 1:12 am
    When the server starts to be stuck, try sending it a SIGQUIT signal. This will crash the server and print the stack traces of running goroutines. Look for code that is blocking on channel operations or lock acquisitions.

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Sagar patwardhan at Mar 8, 2016 at 1:46 am
    Here is the strace from SIGQUIT
    https://docs.google.com/document/d/18YTmtTj4dYaNy70e7d-YbCFXl7o9YOQG3sw4_jbLecg/edit
    On Mon, Mar 7, 2016 at 5:12 PM, Kevin Malachowski wrote:

    When the server starts to be stuck, try sending it a SIGQUIT signal. This
    will crash the server and print the stack traces of running goroutines.
    Look for code that is blocking on channel operations or lock acquisitions.

    --
    You received this message because you are subscribed to a topic in the
    Google Groups "golang-nuts" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/topic/golang-nuts/skBgouh5AKk/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Sagar patwardhan at Mar 8, 2016 at 1:46 am
    @Dave sorry about that. Explaining in detail:

    Select the branch sagarp-repo-arranged (
    https://github.com/sagar8192/Flash/tree/sagarp-repo-arranged)

    Here are the steps I am following:

    1) cd src/Flash && go build && go install => executable called Flash in bin

    2) cd src/kafka_client && go install => executable executable called
    kafka_client in bin

    Start the server:
    3) ./Flash (Listens on 10001) UDP

    4) watch -n 0.1 ./kafka_client
    ^ this will send payload to 10001 every 100 ms

    5) The application Flash will start processing messages but after a while
    it will get stuck.

    ps auxf | grep Flash get pid of Flash

    strace -ttt -f -p <pid of flash>
    On Mon, Mar 7, 2016 at 5:45 PM, sagar patwardhan wrote:

    Here is the strace from SIGQUIT
    https://docs.google.com/document/d/18YTmtTj4dYaNy70e7d-YbCFXl7o9YOQG3sw4_jbLecg/edit
    On Mon, Mar 7, 2016 at 5:12 PM, Kevin Malachowski wrote:

    When the server starts to be stuck, try sending it a SIGQUIT signal. This
    will crash the server and print the stack traces of running goroutines.
    Look for code that is blocking on channel operations or lock acquisitions.

    --
    You received this message because you are subscribed to a topic in the
    Google Groups "golang-nuts" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/topic/golang-nuts/skBgouh5AKk/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dave Cheney at Mar 8, 2016 at 2:01 am
    You have started an infinite loop, don't do that

    from main.go

    - go server.Startcollector()
    -
    - log.Info("Collector has been started....")
    -
    - for {
    -
    - }
    + log.Info("Collector has been started....")
    + server.Startcollector()

    On Tuesday, 8 March 2016 12:47:01 UTC+11, sagar patwardhan wrote:

    @Dave sorry about that. Explaining in detail:

    Select the branch sagarp-repo-arranged (
    https://github.com/sagar8192/Flash/tree/sagarp-repo-arranged)

    Here are the steps I am following:

    1) cd src/Flash && go build && go install => executable called Flash in bin

    2) cd src/kafka_client && go install => executable executable called
    kafka_client in bin

    Start the server:
    3) ./Flash (Listens on 10001) UDP

    4) watch -n 0.1 ./kafka_client
    ^ this will send payload to 10001 every 100 ms

    5) The application Flash will start processing messages but after a while
    it will get stuck.

    ps auxf | grep Flash get pid of Flash

    strace -ttt -f -p <pid of flash>

    On Mon, Mar 7, 2016 at 5:45 PM, sagar patwardhan <saga...@gmail.com
    <javascript:>> wrote:
    Here is the strace from SIGQUIT
    https://docs.google.com/document/d/18YTmtTj4dYaNy70e7d-YbCFXl7o9YOQG3sw4_jbLecg/edit

    On Mon, Mar 7, 2016 at 5:12 PM, Kevin Malachowski <nifta...@gmail.com
    <javascript:>> wrote:
    When the server starts to be stuck, try sending it a SIGQUIT signal.
    This will crash the server and print the stack traces of running
    goroutines. Look for code that is blocking on channel operations or lock
    acquisitions.

    --
    You received this message because you are subscribed to a topic in the
    Google Groups "golang-nuts" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/topic/golang-nuts/skBgouh5AKk/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    golang-nuts...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Sagar patwardhan at Mar 8, 2016 at 3:05 am
    That was exactly the issue..I have replaced it with sync group and things
    are wonderful now. Thanks for your help Dave. It was silly of me to do that.

    Thanks!
    On Mon, Mar 7, 2016, 6:01 PM Dave Cheney wrote:

    You have started an infinite loop, don't do that

    from main.go

    - go server.Startcollector()
    -
    - log.Info("Collector has been started....")
    -
    - for {
    -
    - }
    + log.Info("Collector has been started....")
    + server.Startcollector()

    On Tuesday, 8 March 2016 12:47:01 UTC+11, sagar patwardhan wrote:

    @Dave sorry about that. Explaining in detail:

    Select the branch sagarp-repo-arranged (
    https://github.com/sagar8192/Flash/tree/sagarp-repo-arranged)

    Here are the steps I am following:

    1) cd src/Flash && go build && go install => executable called Flash in
    bin

    2) cd src/kafka_client && go install => executable executable called
    kafka_client in bin

    Start the server:
    3) ./Flash (Listens on 10001) UDP

    4) watch -n 0.1 ./kafka_client
    ^ this will send payload to 10001 every 100 ms

    5) The application Flash will start processing messages but after a while
    it will get stuck.

    ps auxf | grep Flash get pid of Flash

    strace -ttt -f -p <pid of flash>
    On Mon, Mar 7, 2016 at 5:45 PM, sagar patwardhan <saga...@gmail.com>
    wrote:
    Here is the strace from SIGQUIT
    https://docs.google.com/document/d/18YTmtTj4dYaNy70e7d-YbCFXl7o9YOQG3sw4_jbLecg/edit
    On Mon, Mar 7, 2016 at 5:12 PM, Kevin Malachowski <nifta...@gmail.com>
    wrote:
    When the server starts to be stuck, try sending it a SIGQUIT signal. This
    will crash the server and print the stack traces of running goroutines.
    Look for code that is blocking on channel operations or lock acquisitions.
    --
    You received this message because you are subscribed to a topic in the
    Google Groups "golang-nuts" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/topic/golang-nuts/skBgouh5AKk/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    golang-nuts...@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 7, '16 at 3:36p
activeMar 8, '16 at 3:05a
posts9
users3
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase