Each table segment should have two replicas. But t...
# troubleshooting
c
Each table segment should have two replicas. But the ones with status = UPDATING has only one replica. Reload Segment button doesn't seem to restore the second one. What is the best way to restore the segment? And how can we avoid/fix this?
m
What operation lead to this state? This means that the server is in the process of loading the segment. If it is in this state for a while, you can check server log with segment name to see what’s happening to it
c
I don't see any clue on the log of the server that drops the segment.
*i-cshei@ph-jp97v52*:*~/logpinot*$ grep tptagset_reportData__2__14__20250212T1527Z server*.log
2025/02/12 152734.919 INFO [com_8893 - SegmentOnlineOfflineStateModel] [HelixTaskExecutor-message_handle_thread_32] SegmentOnlineOfflineStateModel.onBecomeConsumingFromOffline() : ZnRecord=e7318632-a0d0-4f1d-a6f3-1f8a4af68e4b, {CREATE_TIMESTAMP=1739374054904, ClusterEventName=MessageChange, EXECUTE_START_TIMESTAMP=1739374054919, EXE_SESSION_ID=2039a0b55190099, FROM_STATE=OFFLINE, MSG_ID=e7318632-a0d0-4f1d-a6f3-1f8a4af68e4b, MSG_STATE=read, MSG_TYPE=STATE_TRANSITION, PARTITION_NAME=
*tptagset_reportData__2__14__20250212T1527Z*, READ_TIMESTAMP=1739374054915, RESOURCE_NAME=tptagset_reportData_REALTIME, RESOURCE_TAG=tptagset_reportData_REALTIME, RETRY_COUNT=3, SRC_NAME=ph-9qpx842.infra.adtechlabs.com_8891, SRC_SESSION_ID=3039a0b2da9007f, STATE_MODEL_DEF=SegmentOnlineOfflineStateModel, STATE_MODEL_FACTORY_NAME=DEFAULT, TGT_NAME=Server_ph-jp97v52.infra.adtechlabs.com_8893, TGT_SESSION_ID=2039a0b55190099, TO_STATE=CONSUMING}{}{}, Stat=Stat {_version=0, _creationTime=1739374054907, _modifiedTime=1739374054907, _ephemeralOwner=0}
2025/02/12 152734.920 INFO [tptagset_reportData_REALTIME-RealtimeTableDataManager] [HelixTaskExecutor-message_handle_thread_32] Adding CONSUMING segment:
tptagset_reportData__2__14__20250212T1527Z
2025/02/12 15:27:34.927 INFO [tptagset_reportData_REALTIME-RealtimeTableDataManager] [HelixTaskExecutor-message_handle_thread_32] Adding new CONSUMING segment: *tptagset_reportData__2__14__20250212T1527Z*
2025/02/12 15:27:34.929 INFO [RealtimeSegmentDataManager_*tptagset_reportData__2__14__20250212T1527Z*] [HelixTaskExecutor-message_handle_thread_32] RealtimeDataResourceZKMetadata contains no information about sorted column for segment *tptagset_reportData__2__14__20250212T1527Z*
It seems the only way to bring back the segment online is to restart the server that loses the segment. As you can see the segment is back on server ph-jp97v52
But restarting a server is really not an ideal way to recover.
m
We need to understand what happened. But without restart, even segment validation api should have fixed it.
c
I might have overloaded the servers with too many segments from other realtime tables. I dropped a few tables about two hours ago, but the UPDATING segments on this table still remain UPDATING.
Which api is 'segment validation'? Is that an api I can try?
m
Check swagger
IIRC, it is a task
c
Sorry, what is IIRC?
m
If I recall correctly