https://pinot.apache.org/ logo
Join Slack
Powered by
# troubleshooting
  • e

    Elon

    06/04/2020, 9:28 PM
    Is there a config to increase the timeout of broker queries? We seem to get the following error if the
    timeUsedMs
    is >= 10s:
    Copy code
    {
      "exceptions": [],
      "numServersQueried": 3,
      "numServersResponded": 0,
      "numSegmentsQueried": 0,
      "numSegmentsProcessed": 0,
      "numSegmentsMatched": 0,
      "numConsumingSegmentsQueried": 0,
      "numDocsScanned": 0,
      "numEntriesScannedInFilter": 0,
      "numEntriesScannedPostFilter": 0,
      "numGroupsLimitReached": false,
      "totalDocs": 0,
      "timeUsedMs": 10000,
      "segmentStatistics": [],
      "traceInfo": {},
      "minConsumingFreshnessTimeMs": 0
    }
  • e

    Elon

    06/04/2020, 9:29 PM
    If the query takes below 10s it's fine, even 9.7 seconds for example
  • x

    Xiang Fu

    06/04/2020, 9:36 PM
    https://docs.pinot.apache.org/developers/advanced/advanced-pinot-setup#pinot-broker
    ❤️ 1
  • a

    Alex

    06/04/2020, 9:58 PM
    so, 9.7 seconds is a long time for the query. What is the best way to figure out what is the bottleneck?
  • k

    Kenny Bastani

    06/04/2020, 10:04 PM
    In the query result set you can see information related to the execution plan. You can see how many segments were scanned, and that will give you some details on whether or not your indexing configuration can be improved. 9.7 seconds is on the highest end of a response that I have seen.
  • k

    Kenny Bastani

    06/04/2020, 10:04 PM
    Can you also paste your query here?
  • e

    Elon

    06/04/2020, 10:16 PM
    It's something like:
    Copy code
    select foo, bar, count(*) from pinot_table where timestamp >= <now - 5 minutes> group by foo, bar
  • e

    Elon

    06/05/2020, 4:56 AM
    So one of the issues was that we used the old spec for star tree indexes. I recreated and verified we have star tree indexes on the table now (and inverted indexes) - how do I rebuild the realtime segments so that the star tree indexes are created?
  • k

    Kishore G

    06/05/2020, 5:17 AM
    @Jackie
  • e

    Elon

    06/05/2020, 5:40 AM
    pinot-0.3.0 doesn't seem to build star tree indexes - the setStarTreeIndexConfigs in IndexConfig is unused. So it's only for offline segments, right?
  • e

    Elon

    06/05/2020, 5:42 AM
    Looks like it is built for realtime tables in master though.
  • e

    Elon

    06/05/2020, 5:43 AM
    Is that correct?
  • k

    Kishore G

    06/05/2020, 5:48 AM
    yes, it was added later to build it on the fly
  • k

    Kishore G

    06/05/2020, 5:48 AM
    checking if its enabled in real-time
  • j

    Jackie

    06/05/2020, 6:13 AM
    @Kishore G @Elon I don't think star-tree will be added on the fly (during segment reload). Building star-tree on the server side could cost a lot of CPU and memory, thus hurt the server performance or cause it to run out of memory. Maybe leveraging Minion to do this is safer.
    👍 1
  • k

    Kishore G

    06/05/2020, 6:16 AM
    Hi Jackie, I agree with you for external analytics use cases. But for internal use cases, it would be ok to generate it on the fly. we should enable this via config and let the user's decide if they want to enable it and provide enough resources.
    👍 2
  • j

    Jackie

    06/05/2020, 6:23 AM
    Sure, we can add another segment preprocessor to handle this
    👍 3
  • e

    Elon

    06/05/2020, 8:25 PM
    Thanks for all the help yesterday, we got the query down to 30-50ms from 8s!
    🚀 1
    👏 2
  • e

    Elon

    06/05/2020, 8:26 PM
    qq - if we add/remove inverted or sorted indexes do the realtime segments get updated or is there some rebuild command (for realtime)?
  • k

    Kishore G

    06/05/2020, 8:28 PM
    sorted index will only be applicable to new segments. inverted index can be created by running reload segments api
    ❤️ 1
  • d

    Dan Hill

    06/07/2020, 12:25 AM
    I hit an error when trying to use multi-value columns with star tree index. It looks like these are unsupported. Any timelines for when these will be supported?
    Copy code
    Caused by: java.lang.IllegalStateException: Multi value column is not supported
    	at org.apache.pinot.core.data.readers.PinotSegmentColumnReader.getDictionaryId(PinotSegmentColumnReader.java:143) ~[pinot-all-0.4.0-SNAPSHOT-jar-with-dependencies.jar:0.4.0-SNAPSHOT-c152f18f273042668a6d91d5d15c7ca018f31b4a]
    	at org.apache.pinot.core.startree.v2.builder.BaseSingleTreeBuilder.getSegmentRecordDimensions(BaseSingleTreeBuilder.java:228) ~[pinot-all-0.4.0-SNAPSHOT-jar-with-dependencies.jar:0.4.0-SNAPSHOT-c152f18f273042668a6d91d5d15c7ca018f31b4a]
  • k

    Kishore G

    06/07/2020, 12:36 AM
    Do you need it?
  • k

    Kishore G

    06/07/2020, 12:37 AM
    What kind of behavior are you looking for with multi value column
  • d

    Dan Hill

    06/07/2020, 2:19 AM
    I probably don't need it yet. I wanted to be able to have a list of experiment groups on a row and aggregate by the groups. I also want to have support for custom dimensions but this isn't designed yet (I have N separate fields currently on the event).
  • d

    Dan Hill

    06/07/2020, 2:19 AM
    It'd make the experiment group work easier.
  • d

    Dan Hill

    06/07/2020, 7:13 PM
    Is there a way I can treat an index more as a summary table? E.g. support getting aggregate stats for a small number of sub dimensions? I have about 20 optional dimensions that I might want to combine with the required dimensions. I don't need all of the dimensions all of the time.
  • d

    Dan Hill

    06/07/2020, 7:15 PM
    E.g. I have dimensions like "device", a bunch for geo, I have some custom dimensions. I'm fine not supporting aggregate stats for multiple dimensions.
  • k

    Kishore G

    06/07/2020, 7:28 PM
    I dint follow, do you have a query?
  • k

    Kishore G

    06/07/2020, 7:29 PM
    I am guessing you are referring star tree
  • d

    Dan Hill

    06/07/2020, 7:32 PM
    Yea, I'll send directly.
1...108109110...166Latest