morningman commented on a change in pull request #2847: Doris support in memory olap table URL: https://github.com/apache/incubator-doris/pull/2847#discussion_r377466577
########## File path: fe/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java ########## @@ -1405,6 +1420,88 @@ private void sendClearAlterTask(Database db, OlapTable olapTable) { LOG.info("send clear alter task for table {}, number: {}", olapTable.getName(), batchTask.getTaskNum()); } + public void sendUpdateTabletMetaInfoTask(Database db, OlapTable olapTable, boolean isInMemory) throws DdlException { + List<Partition> partitions = Lists.newArrayList(); + db.readLock(); + try { + partitions.addAll(olapTable.getPartitions()); + } finally { + db.readUnlock(); + } + for(Partition partition: partitions) { + sendUpdateTabletMetaTaskForPartition(db, olapTable, partition, isInMemory); + } + } + + public void sendUpdateTabletMetaTaskForPartition(Database db, Review comment: I am more worried that if the user does not retry, there will be an inconsistent state, that is, some tablet properties on BE are `in memory`, and FE is `not in memory`. There is no mechanism to find it in this case. We need a correction mechanism to handle this. For example, when reporting to FE, compare with this attribute of FE. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org