pinot icon indicating copy to clipboard operation
pinot copied to clipboard

Backward compatible change leading to non-queryable REALTIME table ?

Open MrNeocore opened this issue 5 years ago • 1 comments

Following Slack discussion: https://apache-pinot.slack.com/archives/C011C9JHN7R/p1624260346227200

After adding a new INT column on a REALTIME table via updating its schema file and calling the API POST /schemas and POST /tables (*) endpoints - the schema is correctly updated but querying the table results in the following error :

*: Likely an unnecessary call from a generic workflow

[
  {
    "errorCode": 500,
    "message": "MergeResponseError:\nData schema mismatch between merged block: 
[communityId(STRING),documentId(STRING),eventTimeString(STRING),eventType(STRING),**hoverDuration(INT)**,ibcustomer(STRING),origin(STRING),projectId(STRING),selectionId(STRING),timeString(STRING),userId(STRING)] 
and block to merge: 
[communityId(STRING),documentId(STRING),eventTimeString(STRING),eventType(STRING),ibcustomer(STRING),origin(STRING),projectId(STRING),selectionId(STRING),timeString(STRING),userId(STRING)], 
drop block to merge"
  }
]

Additional context:

  • Column was first added as Dimension, then changed to Metric
  • The newly added field come from a JSON sub document, and is parsed via ingestionConfig.transformConfig with defaut value (-1).

@xiangfu0 Suggested to restart the REALTIME servers - but any non "operational" and downtime-less solutions would be ideal if possible :)

MrNeocore avatar Jun 21 '21 11:06 MrNeocore

This behavior is due to the fact that pinot.server.instance.reload.consumingSegment was off (false) The following PR https://github.com/apache/incubator-pinot/pull/7078/files updated this default behavior :+1:

Closing !

MrNeocore avatar Jun 21 '21 17:06 MrNeocore