-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in adding entries to Bookie #277
Comments
We experience similar behaviour when starting Yahoo Pulsar 1.16.2. Logs contain the following lines
In our case, the broker appears to be running, but it does not listen to clients traffic ping @merlimat |
Could this be due to multiple versions of netty?
…On Thu, Mar 23, 2017 at 2:02 AM, Alexander Zhuravlev < ***@***.***> wrote:
We experience similar behaviour when starting Yahoo Pulsar 1.16.2. Logs
contain the following lines
2017-03-23 08:53:53,207 - INFO - ***@***.*** - Initialized managed-ledger entry cache of 1024.0 Mb
2017-03-23 08:53:53,243 - ERROR - ***@***.*** - Uncaught exception in thread main: io.netty.util.internal.MathUtil.safeFindNextPositivePowerOfTwo(I)I
java.lang.NoSuchMethodError: io.netty.util.internal.MathUtil.safeFindNextPositivePowerOfTwo(I)I
at io.netty.buffer.PoolThreadCache$MemoryRegionCache.<init>(PoolThreadCache.java:372)
at io.netty.buffer.PoolThreadCache$SubPageMemoryRegionCache.<init>(PoolThreadCache.java:340)
at io.netty.buffer.PoolThreadCache.createSubPageCaches(PoolThreadCache.java:135)
at io.netty.buffer.PoolThreadCache.<init>(PoolThreadCache.java:86)
at io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.initialValue(PooledByteBufAllocator.java:361)
at io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.initialValue(PooledByteBufAllocator.java:354)
at io.netty.util.concurrent.FastThreadLocal.initialize(FastThreadLocal.java:155)
at io.netty.util.concurrent.FastThreadLocal.get(FastThreadLocal.java:149)
at io.netty.util.concurrent.FastThreadLocal.get(FastThreadLocal.java:135)
at io.netty.buffer.PooledByteBufAllocator.newHeapBuffer(PooledByteBufAllocator.java:251)
at io.netty.buffer.AbstractByteBufAllocator.heapBuffer(AbstractByteBufAllocator.java:158)
at io.netty.buffer.AbstractByteBufAllocator.heapBuffer(AbstractByteBufAllocator.java:149)
at com.yahoo.pulsar.broker.service.PulsarStats.<init>(PulsarStats.java:59)
at com.yahoo.pulsar.broker.service.BrokerService.<init>(BrokerService.java:146)
at com.yahoo.pulsar.broker.PulsarService.start(PulsarService.java:235)
at com.yahoo.pulsar.PulsarBrokerStarter.main(PulsarBrokerStarter.java:59)
In our case, the broker appears to be running, but it does not listen to
clients traffic
ping @merlimat <https://github.com/merlimat>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#277 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATk4LM8cKyX9wfO-Ns5OpfM31sJvw9Kuks5rojU0gaJpZM4MTzRK>
.
|
Please check #125. |
@rdhabalia It seems like it might be the case. If you look at the jars included in the binary tgz, there are multiple netty packages with different versions that are being pulled in:
|
I think this is probably due to maven assembly ignoring the dependency exclusion. If you look at |
* Increase writeRequestsCh channel buffer size * Fixed indentation
Fix apache#277, using the first entry, index 0 as the base offset
Expected behavior
The bookie could be started correctly and pass the bookiesanity test.
Actual behavior
When I start the bookie in my cluster, everything seems Okay. However, when I call
bookkeeper shell bookiesanity
to add some entries to my bookie for testing whether the bookie run correctly, I came across the following error in my log file:Steps to reproduce
Setup a cluster according to the instructions in Pulsar Cluster Setup. Start a bookie on a machine with command
bin/pulsar-daemon start bookie
and use commandbin/bookkeeper shell bookiesanity
to test the bookie.System configuration
Pulsar version: 1.16.1
The text was updated successfully, but these errors were encountered: