Slackbot
05/26/2023, 9:55 PMAsaf Mesika
05/28/2023, 3:05 PMHang Chen
05/29/2023, 1:18 AMa) Backlog for the topics that we produced messages to is showing 0 , however the `storageSize`(from TopicStats) is not. Shows a sizable number ~ 130 MB on those topicsEven though the backlog is 0, but the cursor’s mark-delete position still point to the last ledger of the topic, and it won’t be deleted. So the 130MB storage size maybe the last ledger’s size. You can use
bin/pulsar-admin topics stats-internal <topic>
to check itHang Chen
05/29/2023, 1:24 AMb) The disk space is not getting reclaimed even after almost 2 days. We have tweaked theAfter the disk runs into read-only (95% of usage), the garbage collection on Bookie won’t work. You can make it work by following this PR: https://github.com/apache/bookkeeper/pull/3205&gcWaitTime
configuration properties in hopes of it clearing the disk space.majorCompactionInterval/threshold
Hang Chen
05/29/2023, 1:25 AMEven after running consumers to drain of any (hidden) backlog, theThe root cause is the same with b)hasn’t come down.disk utilization %
Hang Chen
05/29/2023, 1:25 AMd) We have also tried runningThe root cause is the same with b)command from CLI at the namespace level without any help in clearing out the disksclear-backlog
Shravan Narayan
05/29/2023, 6:47 PMBookkeeper v4.15.0
.. Would upgrade to Pulsar v2.11.0
address this issue since it uses 4.15.4
? ThanksHang Chen
05/29/2023, 11:42 PMShravan Narayan
05/30/2023, 12:35 AMforceAllowCompaction
seems to be a broker_server.conf property in bookkeeper project. Is that exposed as part of Pulsar configuration in bookkeeper.conf
?Hang Chen
05/30/2023, 1:27 AMforceAllowCompaction=true
in conf/bookkeeper.conf. The difference between bk_server.conf
in the BookKeeper repo and conf/bookkeeper.conf
in the Pulsar repo is Pulsar overrides some configurations for BookKeeper.Shravan Narayan
05/30/2023, 2:55 PMv2.11.1
(Bookkeeper v`4.15.4`)
b) Setting forceAllowCompaction
to true in conf/bookkeeper.conf
I keep getting HTTP 500
Internal Server Error (details below)
curl -v -XPUT <http://localhost:8000/api/v1/bookie/gc>
* Trying 127.0.0.1:8000...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8000 (#0)
PUT /api/v1/bookie/gc HTTP/1.1
Host: localhost:8000
User-Agent: curl/7.68.0
Accept: /
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< content-length: 21
The majorCompactionCounter keeps increasing in gc_details response
curl -XGET <http://localhost:8000/api/v1/bookie/gc_details>
[ {
"forceCompacting" : false,
"majorCompacting" : false,
"minorCompacting" : false,
"lastMajorCompactionTime" : 1685458132776,
"lastMinorCompactionTime" : 1685458132776,
"majorCompactionCounter" : 1745,
"minorCompactionCounter" : 0
}]
Any pointers on why ? I couldn't find anything in the logsHang Chen
05/30/2023, 11:31 PMCopy code500 Internal Server Error
Could you share the bookie server logs, it is a server error
Shravan Narayan
05/31/2023, 5:59 AMexec
'd into a bookie pod to check for it .. Am I supposed to be looking for it elsewhere ?Hang Chen
05/31/2023, 8:15 AMHang Chen
05/31/2023, 8:15 AM