Hi Team, I have added a new column to my realtime ...
# troubleshooting
s
Hi Team, I have added a new column to my realtime table's schema, And I have reloaded all segments, but when I try to query, its saying 22 segments unavailable, could u pls help here alert I have followed this doc: https://docs.pinot.apache.org/users/tutorials/schema-evolution#add-a-new-column-to-your-schema
a
Hi @Smaran Balla are you running this in your local machine ?
ps -ef | grep StartServer see the logs of the server and check if its running or some errors are there restart it and it should be fine .
s
No, I am running pinot on Prod where it is deployed on Kubernetes...
a
check for server once
I faced the similar situation in local and restarted the server and it got resoilved
also check for the heap space
Copy code
export JAVA_OPTS="-Xms4G -Xmx8G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xlog:gc*:gc-pinot-server.log"
bin/pinot-admin.sh StartServer -zkAddress localhost:2191
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/adityaverma/apache-pinot/apache-pinot-1.2.0-bin/lib/pinot-all-1.2.0-jar-with-dependencies.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2024/12/31 15:32:06.648 INFO [StartServerCommand] [main] Executing command: StartServer -clusterName PinotCluster -serverHost null -serverPort 8098 -serverAdminPort 8097 -serverGrpcPort 8090 -serverMultistageServerPort 0 -serverMultistageRunnerPort 0 -dataDir /var/folders/k6/vktxn3zx4xd9k0k1j_25pj6w0000gp/T//data/pinotServerData -segmentDir /var/folders/k6/vktxn3zx4xd9k0k1j_25pj6w0000gp/T//data/pinotSegments -zkAddress localhost:2191
2024/12/31 15:32:06.656 INFO [StartServiceManagerCommand] [main] Executing command: StartServiceManager -clusterName PinotCluster -zkAddress localhost:2191 -port -1 -bootstrapServices []
2024/12/31 15:32:06.656 INFO [StartServiceManagerCommand] [main] Starting a Pinot [SERVICE_MANAGER] at 0.168s since launch
2024/12/31 15:32:06.669 INFO [StartServiceManagerCommand] [main] Started Pinot [SERVICE_MANAGER] instance [ServiceManager_192.168.1.238_-1] at 0.181s since launch
2024/12/31 15:32:06.670 INFO [StartServiceManagerCommand] [Start a Pinot [SERVER]] Starting a Pinot [SERVER] at 0.182s since launch
Dec 31, 2024 3:32:16 PM org.glassfish.grizzly.http.server.NetworkListener start
INFO: Started listener bound to [0.0.0.0:8097]
Dec 31, 2024 3:32:16 PM org.glassfish.grizzly.http.server.HttpServer start
INFO: [HttpServer] Started.
2024/12/31 15:32:19.174 INFO [StartServiceManagerCommand] [Start a Pinot [SERVER]] Started Pinot [SERVER] instance [Server_192.168.1.238_8098] at 12.685s since launch
check this
Hi @Smaran Balla were you able to resolve it ?
s
Those are prod servers, soo don't have access, pinged in my slack group so that someone will pick it up...
a
Let me know if it’s get resolved I tried to restart them with more memory or try with the same memory but try restarting them
s
Hi @Xiang Fu, is server restart is the only solution here?
Hi @Aditya Verma, how can I reload server from controller UI?
Disabling and enabling would restart the server here? @Aditya Verma
x
you can reload table
if you want to have no downtime, then update schema, reload table then query new columns
otherwise you can just disable the table then reenable it
s
Hi @Xiang Fu, I added a new coIumn to my schema and then clicked on
Reload All Segments
, then this happened
This is the reload job status
Copy code
{
  "metadata": {
    "jobId": "a6ded9ed-1f4a-4321-985b-f75a0bca954c",
    "messageCount": "2",
    "submissionTimeMs": "1735743484186",
    "jobType": "RELOAD_SEGMENT",
    "tableName": "kyc_journey_events_v3_REALTIME"
  },
  "successCount": 336,
  "totalSegmentCount": 358,
  "totalServersQueried": 3,
  "totalServerCallsFailed": 1,
  "timeElapsedInMinutes": 31.635183333333334,
  "estimatedTimeRemainingInMinutes": 2.0713512896825397
}
x
seem like that the segmetns are still reloading
s
I see this is the segment data, its saying still IN_PROGRESS @Xiang Fu
Copy code
{
  "id": "kyc_journey_events_v3__123__0__20241231T1451Z",
  "simpleFields": {
    "segment.creation.time": "1735656697269",
    "segment.flush.threshold.size": "45454",
    "segment.realtime.numReplicas": "1",
    "segment.realtime.startOffset": "{\"shardId-000000000123\":\"49657149437733387945263255158298463445804019699041699762\"}",
    "segment.realtime.status": "IN_PROGRESS"
  },
  "mapFields": {},
  "listFields": {}
}
x
this is consuming segments
it’s ongoing
you can force reload to let it drop and reconsume or call pause ingestion, reload table then resume the ingestion
s
I tried by disabling the table, and then clicked on
Reload All Segments
and then I enabled the table, I am still facing the same issue @Xiang Fu Also, I see there is a difference in the
Ideal State
and the
External View
for my table, could u pls look at this recording.. The segments with the red colour are the ones which are coming as segments unavailable in the query console when I am querying...
x
Seems all on server-19? Can you try to restart that node also keep the logs for reference
a
hi @Smaran Balla, I am not an expert to be honest and I am still running it in my local . Also as I have less data hardly 35million rows so I guess even if I restart it will not take as much time as It would for you as its pord and also loading all the segments again doesnt make sense. Can you please first tell me how did this issue arrive and what did you do ? also tell me if you have solved it ?