suraj sheshadri
09/08/2022, 9:08 PMMayank
suraj sheshadri
09/09/2022, 6:50 PMPriyank Bagrecha
09/09/2022, 7:31 PMMayank
Priyank Bagrecha
09/09/2022, 7:35 PMPriyank Bagrecha
09/10/2022, 12:04 AMPriyank Bagrecha
09/10/2022, 12:05 AM$ kubectl exec -it pinot-server-0 -n pinot -- bash
root@pinot-server-0:/opt/pinot# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 80G 7.0G 74G 9% /
tmpfs 64M 0 64M 0% /dev
tmpfs 60G 0 60G 0% /sys/fs/cgroup
/dev/xvda1 80G 7.0G 74G 9% /etc/hosts
shm 64M 0 64M 0% /dev/shm
/dev/xvdbl 1.8T 1.5T 300G 84% /var/pinot/server/data
tmpfs 60G 12K 60G 1% /run/secrets/kubernetes.io/serviceaccount
tmpfs 60G 0 60G 0% /proc/acpi
tmpfs 60G 0 60G 0% /proc/scsi
tmpfs 60G 0 60G 0% /sys/firmware
Does the reported size in the UI include replication? Does it include indexes?Priyank Bagrecha
09/10/2022, 12:08 AMroot@pinot-server-0:/var/pinot/server/data/index# ls -lh | awk '{print $9}' | awk -F '_' '{print $1}' | uniq -c
1
167 bidrequest
1739 offlinebookingnarrow
16 offlinebookingwide
1 tmp
3 usersample
Priyank Bagrecha
09/10/2022, 12:16 AMPriyank Bagrecha
09/10/2022, 12:17 AMPriyank Bagrecha
09/10/2022, 12:35 AMroot@pinot-server-0:/opt/pinot# ls -lh /var/pinot/server/data/index | awk '{print $9}' | awk -F '_' '{print $1}' | uniq -c
1
167 bidrequest
1739 offlinebookingnarrow
16 offlinebookingwide
1 tmp
3 usersample
root@pinot-server-0:/opt/pinot#
Priyank Bagrecha
09/10/2022, 12:47 AM// move the segment file to deleted segments first and let retention manager handler the deletion
String deletedFileName = deletedSegmentsRetentionMs == null ? URIUtils.encode(segmentId)
: getDeletedSegmentFileName(URIUtils.encode(segmentId), deletedSegmentsRetentionMs);
URI deletedSegmentMoveDestURI = URIUtils.getUri(_dataDir, DELETED_SEGMENTS, rawTableName, deletedFileName);
I don't see a Deleted_Segments
folder on the disc, and we don't have any segments in s3 segment store because we didn't configure the batch ingestion spark job to copy the generated segments to the s3 segment store. Do you think that's why the segment files are not getting deleted as S3PinotFS instead of LocalPinotFS might be used, and it doesn't find the segment there so it doesn't delete anything.Priyank Bagrecha
09/10/2022, 12:54 AMPriyank Bagrecha
09/13/2022, 10:59 PMMayank
Priyank Bagrecha
09/14/2022, 12:08 AMofflinebookingnarrow_poc_OFFLINE_3
it doesn't seem like that it even tries to delete locally
Scheduling message 47024269-249c-47f7-84ed-e4821e1f8f08: offlinebookingnarrow_poc_OFFLINE:offlinebookingnarrow_poc_OFFLINE_3, ONLINE->OFFLINE
Submit task: 47024269-249c-47f7-84ed-e4821e1f8f08 to pool: java.util.concurrent.ThreadPoolExecutor@6fa4b6cd[Running, pool size = 40, active threads = 0, queued tasks = 0, completed tasks = 5224]
Message: 47024269-249c-47f7-84ed-e4821e1f8f08 handling task scheduled
73 END:INVOKE CallbackHandler 0, /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818 type: CALLBACK Took: 6ms
handling task: 47024269-249c-47f7-84ed-e4821e1f8f08 begin, at: 1663093111984
handling message: 47024269-249c-47f7-84ed-e4821e1f8f08 transit offlinebookingnarrow_poc_OFFLINE.offlinebookingnarrow_poc_OFFLINE_3|[] from:ONLINE to:OFFLINE, relayedFrom: null
Instance Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098, partition offlinebookingnarrow_poc_OFFLINE_3 received state transition from ONLINE to OFFLINE on session 3001f37ca930355, message id: 47024269-249c-47f7-84ed-e4821e1f8f08
SegmentOnlineOfflineStateModel.onBecomeOfflineFromOnline() : ZnRecord=47024269-249c-47f7-84ed-e4821e1f8f08, {CREATE_TIMESTAMP=1663093111968, ClusterEventName=IdealStateChange, EXECUTE_START_TIMESTAMP=1663093111985, EXE_SESSION_ID=3001f37ca930355, FROM_STATE=ONLINE, MSG_ID=47024269-249c-47f7-84ed-e4821e1f8f08, MSG_STATE=read, MSG_TYPE=STATE_TRANSITION, PARTITION_NAME=offlinebookingnarrow_poc_OFFLINE_3, READ_TIMESTAMP=1663093111980, RESOURCE_NAME=offlinebookingnarrow_poc_OFFLINE, RESOURCE_TAG=offlinebookingnarrow_poc_OFFLINE, RETRY_COUNT=3, SRC_NAME=pinot-controller-2.pinot-controller-headless.pinot.svc.cluster.local_9000, SRC_SESSION_ID=1001f37be1302ec, STATE_MODEL_DEF=SegmentOnlineOfflineStateModel, STATE_MODEL_FACTORY_NAME=DEFAULT, TGT_NAME=Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098, TGT_SESSION_ID=3001f37ca930355, TO_STATE=OFFLINE}{}{}, Stat=Stat {_version=0, _creationTime=1663093111974, _modifiedTime=1663093111974, _ephemeralOwner=0}
Removing segment: offlinebookingnarrow_poc_OFFLINE_3 from table: offlinebookingnarrow_poc_OFFLINE
Removing segment: offlinebookingnarrow_poc_OFFLINE_3 from table: offlinebookingnarrow_poc_OFFLINE
Closing segment: offlinebookingnarrow_poc_OFFLINE_3 of table: offlinebookingnarrow_poc_OFFLINE
Trying to destroy segment : offlinebookingnarrow_poc_OFFLINE_3
Closed segment: offlinebookingnarrow_poc_OFFLINE_3 of table: offlinebookingnarrow_poc_OFFLINE
Removed segment: offlinebookingnarrow_poc_OFFLINE_3 from table: offlinebookingnarrow_poc_OFFLINE
Removed segment: offlinebookingnarrow_poc_OFFLINE_3 from table: offlinebookingnarrow_poc_OFFLINE
Message 47024269-249c-47f7-84ed-e4821e1f8f08 completed.
Delete message 47024269-249c-47f7-84ed-e4821e1f8f08 from zk!
message finished: 47024269-249c-47f7-84ed-e4821e1f8f08, took 17
Message: 47024269-249c-47f7-84ed-e4821e1f8f08 (parent: null) handling task for offlinebookingnarrow_poc_OFFLINE:offlinebookingnarrow_poc_OFFLINE_3 completed at: 1663093112002, results: true. FrameworkTime: 5 ms; HandlerTime: 13 ms.
73 START: CallbackHandler 0, INVOKE /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818 type: CALLBACK
CallbackHandler 0 subscribing changes listener to path: /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES, callback type: CALLBACK, event types: [NodeChildrenChanged], listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818, watchChild: false
CallbackHandler0, Subscribing to path: /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES took: 0
No Messages to process
73 END:INVOKE CallbackHandler 0, /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818 type: CALLBACK Took: 1ms
73 START: CallbackHandler 0, INVOKE /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818 type: CALLBACK
CallbackHandler 0 subscribing changes listener to path: /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES, callback type: CALLBACK, event types: [NodeChildrenChanged], listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818, watchChild: false
CallbackHandler0, Subscribing to path: /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES took: 1
The latency of message 34ff3eaf-d363-4f9f-9aca-003df99e519f is 15 ms
Scheduling message 34ff3eaf-d363-4f9f-9aca-003df99e519f: offlinebookingnarrow_poc_OFFLINE:offlinebookingnarrow_poc_OFFLINE_3, OFFLINE->DROPPED
Submit task: 34ff3eaf-d363-4f9f-9aca-003df99e519f to pool: java.util.concurrent.ThreadPoolExecutor@6fa4b6cd[Running, pool size = 40, active threads = 0, queued tasks = 0, completed tasks = 5225]
Message: 34ff3eaf-d363-4f9f-9aca-003df99e519f handling task scheduled
73 END:INVOKE CallbackHandler 0, /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818 type: CALLBACK Took: 7ms
handling task: 34ff3eaf-d363-4f9f-9aca-003df99e519f begin, at: 1663093112183
handling message: 34ff3eaf-d363-4f9f-9aca-003df99e519f transit offlinebookingnarrow_poc_OFFLINE.offlinebookingnarrow_poc_OFFLINE_3|[] from:OFFLINE to:DROPPED, relayedFrom: null
Instance Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098, partition offlinebookingnarrow_poc_OFFLINE_3 received state transition from OFFLINE to DROPPED on session 3001f37ca930355, message id: 34ff3eaf-d363-4f9f-9aca-003df99e519f
SegmentOnlineOfflineStateModel.onBecomeDroppedFromOffline() : ZnRecord=34ff3eaf-d363-4f9f-9aca-003df99e519f, {CREATE_TIMESTAMP=1663093112164, ClusterEventName=MessageChange, EXECUTE_START_TIMESTAMP=1663093112183, EXE_SESSION_ID=3001f37ca930355, FROM_STATE=OFFLINE, MSG_ID=34ff3eaf-d363-4f9f-9aca-003df99e519f, MSG_STATE=read, MSG_TYPE=STATE_TRANSITION, PARTITION_NAME=offlinebookingnarrow_poc_OFFLINE_3, READ_TIMESTAMP=1663093112179, RESOURCE_NAME=offlinebookingnarrow_poc_OFFLINE, RESOURCE_TAG=offlinebookingnarrow_poc_OFFLINE, RETRY_COUNT=3, SRC_NAME=pinot-controller-2.pinot-controller-headless.pinot.svc.cluster.local_9000, SRC_SESSION_ID=1001f37be1302ec, STATE_MODEL_DEF=SegmentOnlineOfflineStateModel, STATE_MODEL_FACTORY_NAME=DEFAULT, TGT_NAME=Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098, TGT_SESSION_ID=3001f37ca930355, TO_STATE=DROPPED}{}{}, Stat=Stat {_version=0, _creationTime=1663093112171, _modifiedTime=1663093112171, _ephemeralOwner=0}
Merging with delta list, recordId = offlinebookingnarrow_poc_OFFLINE other:offlinebookingnarrow_poc_OFFLINE
Message 34ff3eaf-d363-4f9f-9aca-003df99e519f completed.
Delete message 34ff3eaf-d363-4f9f-9aca-003df99e519f from zk!
message finished: 34ff3eaf-d363-4f9f-9aca-003df99e519f, took 15
Message: 34ff3eaf-d363-4f9f-9aca-003df99e519f (parent: null) handling task for offlinebookingnarrow_poc_OFFLINE:offlinebookingnarrow_poc_OFFLINE_3 completed at: 1663093112198, results: true. FrameworkTime: 4 ms; HandlerTime: 11 ms.
73 START: CallbackHandler 0, INVOKE /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818 type: CALLBACK
CallbackHandler 0 subscribing changes listener to path: /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES, callback type: CALLBACK, event types: [NodeChildrenChanged], listener: org.apache.helix.messaging.handling.HelixTaskExecutor@2b194818, watchChild: false
CallbackHandler0, Subscribing to path: /pinot-dev/INSTANCES/Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098/MESSAGES took: 0
No Messages to process
Mayank
Priyank Bagrecha
09/14/2022, 1:25 AMMayank