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 2019/03/12 05:53:04 UTC

[GitHub] [pulsar] Tevic edited a comment on issue #3177: MessageID always seems to serialize to empty slice in Go client Reader

Tevic edited a comment on issue #3177: MessageID always seems to serialize to empty slice in Go client Reader
URL: https://github.com/apache/pulsar/issues/3177#issuecomment-471866729
 
 
   I've figure out why and test success.
   #3801 
   
   But if use DeserializeMessageID and use consumer.AckID it will panic, i don't know what cause the panic.
   ```
   fatal error: unexpected signal during runtime execution
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x7fdbd4e1127f]
   
   runtime stack:
   runtime.throw(0x517df2, 0x2a)
           /home/tevic/Work/RunTime/Go/src/runtime/panic.go:617 +0x72
   runtime.sigpanic()
           /home/tevic/Work/RunTime/Go/src/runtime/signal_unix.go:374 +0x4a9
   
   goroutine 1 [syscall]:
   runtime.cgocall(0x4cceb0, 0xc0000dfbb0, 0x7e71c0)
           /home/tevic/Work/RunTime/Go/src/runtime/cgocall.go:128 +0x5b fp=0xc0000dfb80 sp=0xc0000dfb48 pc=0x4096bb
   github.com/apache/pulsar/pulsar-client-go/pulsar._Cfunc_pulsar_consumer_acknowledge_async_id(0x7fdba800e8e0, 0x1e61710, 0x0, 0x0)
           _cgo_gotypes.go:761 +0x45 fp=0xc0000dfbb0 sp=0xc0000dfb80 pc=0x4b83a5
   github.com/apache/pulsar/pulsar-client-go/pulsar.(*consumer).AckID.func1(0xc00009c080, 0x52ff40, 0xc0000a8058)
           /home/tevic/Work/WorkSpace/Code/Go/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_consumer.go:243 +0xc2 fp=0xc0000dfbf8 sp=0xc0000dfbb0 pc=0x4c3c72
   github.com/apache/pulsar/pulsar-client-go/pulsar.(*consumer).AckID(0xc00009c080, 0x52ff40, 0xc0000a8058, 0x1, 0x1)
           /home/tevic/Work/WorkSpace/Code/Go/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_consumer.go:243 +0x3f fp=0xc0000dfc20 sp=0xc0000dfbf8 pc=0x4bddcf
   main.main()
           /home/tevic/Work/WorkSpace/Code/GoProjs/HelloWorld/Pulsar/Recv.go:46 +0x7f3 fp=0xc0000dff98 sp=0xc0000dfc20 pc=0x4cc063
   runtime.main()
           /home/tevic/Work/RunTime/Go/src/runtime/proc.go:200 +0x20c fp=0xc0000dffe0 sp=0xc0000dff98 pc=0x4319cc
   runtime.goexit()
           /home/tevic/Work/RunTime/Go/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc0000dffe8 sp=0xc0000dffe0 pc=0x45aa21
   
   goroutine 17 [chan send, locked to thread]:
   github.com/apache/pulsar/pulsar-client-go/pulsar.pulsarMessageListenerProxy(0x7fdbc1ffa7e0, 0x7fdba0000d00, 0x1e636c0)
           /home/tevic/Work/WorkSpace/Code/Go/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_consumer.go:192 +0x11b
   github.com/apache/pulsar/pulsar-client-go/pulsar._cgoexpwrap_40dd75c63fd4_pulsarMessageListenerProxy(0x7fdbc1ffa7e0, 0x7fdba0000d00, 0x1e636c0)
           _cgo_gotypes.go:1867 +0x3f
   exit status 2
   ``` 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services