metatron-app / metatron-discovery

Powerful & Easy way for big data discovery
https://metatron.app
Apache License 2.0
442 stars 112 forks source link

Fix exception in schema when segment removed #4337

Open navis opened 1 year ago

navis commented 1 year ago
Exception in thread "schema-callback" java.util.NoSuchElementException
    at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1000)
    at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:297)
    at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:285)
    at io.druid.common.utils.Sequences.only(Sequences.java:316)
    at io.druid.sql.calcite.table.DruidTable.build(DruidTable.java:448)
    at io.druid.sql.calcite.table.DruidTable.lambda$update$0(DruidTable.java:145)
    at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:125)
    at io.druid.sql.calcite.table.DruidTable.update(DruidTable.java:156)
    at io.druid.sql.calcite.schema.DruidSchema$1.segmentRemoved(DruidSchema.java:106)