hello-stephen commented on code in PR #71130:
URL: https://github.com/apache/doris/pull/71130#discussion_r4798756034


##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -2430,7 +2438,9 @@ public int getAsInt() {
             // A light DROP INDEX publishes the index metadata before it 
submits its delete jobs. Run the checks
             // that can reject those jobs before any clause below touches 
table metadata (processDropColumn
             // updates the bloom filter columns in place), so a rejected 
statement leaves the table unchanged.
-            checkLightDropIndexPreconditions(db, olapTable, alterOps, 
enableAddIndexForNewData);
+            checkLightDropIndexPreconditions(db, olapTable, alterOps, 
enableAddIndexForNewData,
+                    addIndexPaths.containsValue(AddIndexPath.LIGHT)

Review Comment:
   [P2] Preserve bloom-filter metadata when a mixed ALTER exits early
   
   With light index changes enabled on a local table that has `idx_v1(v1)` and 
`bloom_filter_columns='v2'`, run `ALTER TABLE t DROP COLUMN v2, ADD INDEX IF 
NOT EXISTS idx_v1(v1) USING INVERTED, DROP INDEX idx_v1`. The base revision 
rejects the mixed light ADD/DROP before the clause loop. Here the existing 
index is excluded from `addIndexPaths`, so the preflight passes. 
`processDropColumn` clears the live bloom-filter metadata, then the duplicate 
ADD returns from the whole statement before any schema change is journaled. The 
column and index remain, while `SHOW CREATE TABLE` loses the bloom-filter 
property. Preserve the early rejection or stage bloom-filter changes until all 
clauses have been validated.



##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -3944,6 +3959,114 @@ private String getCloudClusterName() throws 
UserException {
         return clusterName;
     }
 
+    // How one ADD INDEX runs: LIGHT only changes metadata, so only data 
written afterwards gets the index;
+    // LIGHT_AND_BUILD also builds the existing data of every partition 
through index change jobs;
+    // HEAVY rewrites the existing data in a schema change job.
+    private enum AddIndexPath { LIGHT, LIGHT_AND_BUILD, HEAVY }
+
+    // Resolves the path of every ADD INDEX in alterOps. An index added with 
BUILD DEFERRED keeps the existing
+    // data unindexed, so it can not share a statement with a clause that 
rewrites or changes that data.
+    private static Map<CreateIndexOp, AddIndexPath> 
resolveAddIndexPaths(List<AlterOp> alterOps,
+            OlapTable olapTable, boolean enableAddIndexForNewData) throws 
DdlException {
+        boolean onlyAddIndex = alterOps.stream().allMatch(alterOp -> alterOp 
instanceof CreateIndexOp);
+        Map<CreateIndexOp, AddIndexPath> paths = new IdentityHashMap<>();
+        for (AlterOp alterOp : alterOps) {
+            // IF NOT EXISTS skips an index that already exists, so nothing is 
resolved or built for it.
+            if (alterOp instanceof CreateIndexOp && 
!isSkippedByIfNotExists((CreateIndexOp) alterOp, olapTable)) {
+                CreateIndexOp createIndexOp = (CreateIndexOp) alterOp;
+                paths.put(createIndexOp, 
resolveAddIndexPath(createIndexOp.getIndex(),
+                        createIndexOp.getBuildMode().orElse(null), 
enableAddIndexForNewData, onlyAddIndex));
+            }
+        }
+        boolean hasDeferred = paths.keySet().stream()
+                .anyMatch(createIndexOp -> 
createIndexOp.getBuildMode().orElse(null) == BuildMode.DEFERRED);
+        if (hasDeferred && (!onlyAddIndex || 
paths.containsValue(AddIndexPath.HEAVY))) {
+            throw new DdlException("BUILD DEFERRED can not be combined with 
other schema changes or with an index"
+                    + " that rewrites the existing data, please run them in 
separate statements.");
+        }
+        // One heavy schema change runs the whole statement and indexes all 
existing data, so it submits no BUILD
+        // INDEX jobs and their checks apply only when no index of the 
statement needs it.
+        boolean heavy = paths.containsValue(AddIndexPath.HEAVY);
+        for (Map.Entry<CreateIndexOp, AddIndexPath> entry : paths.entrySet()) {
+            if (entry.getValue() == AddIndexPath.LIGHT_AND_BUILD) {
+                if (heavy) {
+                    entry.setValue(AddIndexPath.HEAVY);
+                } else {
+                    checkBuildIndexSupported(entry.getKey().getIndex(), 
olapTable);
+                }
+            }
+        }
+        return paths;
+    }
+
+    private static boolean isSkippedByIfNotExists(CreateIndexOp createIndexOp, 
OlapTable olapTable) {
+        IndexDefinition indexDef = createIndexOp.getIndexDef();
+        return indexDef.isSetIfNotExists() && olapTable.getIndexes().stream()
+                .anyMatch(index -> 
index.getIndexName().equalsIgnoreCase(indexDef.getIndexName()));
+    }
+
+    // Where BUILD IMMEDIATE submits BUILD INDEX jobs, it gives exactly the 
guarantees of BUILD INDEX, which for
+    // example builds only the base tablets. LIGHT_AND_BUILD is checked later 
against the whole statement.
+    private static AddIndexPath resolveAddIndexPath(Index index, BuildMode 
buildMode,
+            boolean enableAddIndexForNewData, boolean onlyAddIndex) throws 
DdlException {
+        boolean lightEnabled = Config.enable_light_index_change;

Review Comment:
   [P2] Keep the light-index setting consistent through ALTER execution
   
   An accepted local `ADD INDEX ... BUILD DEFERRED` can rewrite historical data 
if an administrator turns off `enable_light_index_change` after this read. The 
flag is mutable independently of the table write lock. Preflight chooses 
`LIGHT`, but the later read in `useLightIndexChange` can see false and send an 
ordinary index through `createJob`. Capture the setting once for routing, 
preconditions, and dispatch so the same statement honors its explicit DEFERRED 
mode.



##########
fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java:
##########
@@ -3846,10 +3846,11 @@ public boolean isEnableESParallelScroll() {
         return enableESParallelScroll;
     }
 
-    @VarAttrDef.VarAttr(name = ENABLE_ADD_INDEX_FOR_NEW_DATA, needForward = 
true, description = "Whether to enable add "
-            + "index mode that only affects new data, "
-            + "when enabled new indexes only affect subsequently written data, 
"
-            + "when disabled rebuild indexes for all data")
+    @VarAttrDef.VarAttr(name = ENABLE_ADD_INDEX_FOR_NEW_DATA, needForward = 
true, description = "Deprecated, use "
+            + "ADD INDEX ... BUILD DEFERRED or BUILD IMMEDIATE instead. It 
only affects an ADD INDEX or CREATE INDEX "

Review Comment:
   [P3] Document the session setting's effect on cloud DROP INDEX
   
   The new description says this setting only affects ADD or CREATE INDEX 
without a BUILD clause. `SchemaChangeHandler.isLightDropIndexSupported` still 
uses it for full-table DROP of INVERTED, NGRAM_BF, and BLOOMFILTER indexes in 
cloud mode. With light index changes enabled, changing the setting can switch 
that DROP between light deletion jobs and a heavy schema change. Please retain 
this behavior in the variable description.



##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -3944,6 +3959,114 @@ private String getCloudClusterName() throws 
UserException {
         return clusterName;
     }
 
+    // How one ADD INDEX runs: LIGHT only changes metadata, so only data 
written afterwards gets the index;
+    // LIGHT_AND_BUILD also builds the existing data of every partition 
through index change jobs;
+    // HEAVY rewrites the existing data in a schema change job.
+    private enum AddIndexPath { LIGHT, LIGHT_AND_BUILD, HEAVY }
+
+    // Resolves the path of every ADD INDEX in alterOps. An index added with 
BUILD DEFERRED keeps the existing
+    // data unindexed, so it can not share a statement with a clause that 
rewrites or changes that data.
+    private static Map<CreateIndexOp, AddIndexPath> 
resolveAddIndexPaths(List<AlterOp> alterOps,
+            OlapTable olapTable, boolean enableAddIndexForNewData) throws 
DdlException {
+        boolean onlyAddIndex = alterOps.stream().allMatch(alterOp -> alterOp 
instanceof CreateIndexOp);
+        Map<CreateIndexOp, AddIndexPath> paths = new IdentityHashMap<>();
+        for (AlterOp alterOp : alterOps) {
+            // IF NOT EXISTS skips an index that already exists, so nothing is 
resolved or built for it.
+            if (alterOp instanceof CreateIndexOp && 
!isSkippedByIfNotExists((CreateIndexOp) alterOp, olapTable)) {
+                CreateIndexOp createIndexOp = (CreateIndexOp) alterOp;
+                paths.put(createIndexOp, 
resolveAddIndexPath(createIndexOp.getIndex(),
+                        createIndexOp.getBuildMode().orElse(null), 
enableAddIndexForNewData, onlyAddIndex));
+            }
+        }
+        boolean hasDeferred = paths.keySet().stream()
+                .anyMatch(createIndexOp -> 
createIndexOp.getBuildMode().orElse(null) == BuildMode.DEFERRED);
+        if (hasDeferred && (!onlyAddIndex || 
paths.containsValue(AddIndexPath.HEAVY))) {
+            throw new DdlException("BUILD DEFERRED can not be combined with 
other schema changes or with an index"
+                    + " that rewrites the existing data, please run them in 
separate statements.");
+        }
+        // One heavy schema change runs the whole statement and indexes all 
existing data, so it submits no BUILD
+        // INDEX jobs and their checks apply only when no index of the 
statement needs it.
+        boolean heavy = paths.containsValue(AddIndexPath.HEAVY);
+        for (Map.Entry<CreateIndexOp, AddIndexPath> entry : paths.entrySet()) {
+            if (entry.getValue() == AddIndexPath.LIGHT_AND_BUILD) {
+                if (heavy) {
+                    entry.setValue(AddIndexPath.HEAVY);
+                } else {
+                    checkBuildIndexSupported(entry.getKey().getIndex(), 
olapTable);
+                }
+            }
+        }
+        return paths;
+    }
+
+    private static boolean isSkippedByIfNotExists(CreateIndexOp createIndexOp, 
OlapTable olapTable) {
+        IndexDefinition indexDef = createIndexOp.getIndexDef();
+        return indexDef.isSetIfNotExists() && olapTable.getIndexes().stream()
+                .anyMatch(index -> 
index.getIndexName().equalsIgnoreCase(indexDef.getIndexName()));
+    }
+
+    // Where BUILD IMMEDIATE submits BUILD INDEX jobs, it gives exactly the 
guarantees of BUILD INDEX, which for
+    // example builds only the base tablets. LIGHT_AND_BUILD is checked later 
against the whole statement.
+    private static AddIndexPath resolveAddIndexPath(Index index, BuildMode 
buildMode,
+            boolean enableAddIndexForNewData, boolean onlyAddIndex) throws 
DdlException {
+        boolean lightEnabled = Config.enable_light_index_change;
+        if (buildMode == null) {
+            return lightEnabled && 
index.isLightAddIndexSupported(enableAddIndexForNewData)
+                    ? AddIndexPath.LIGHT : AddIndexPath.HEAVY;
+        }
+        if (buildMode == BuildMode.DEFERRED) {
+            if (!lightEnabled) {
+                throw new DdlException("BUILD DEFERRED requires 
enable_light_index_change=true");
+            }
+            if (!index.isLightAddIndexSupported(true)) {
+                throw new DdlException("BUILD DEFERRED is not supported for " 
+ index.getIndexType() + " index "
+                        + index.getIndexName() + " in " + 
(Config.isCloudMode() ? "cloud" : "local") + " mode");
+            }
+            return AddIndexPath.LIGHT;
+        }
+        if (index.isVariantValuesIndex()) {
+            throw new DdlException("VARIANT values index supports only BUILD 
DEFERRED");
+        }
+        // Where adding the index is heavy by default, it runs the heavy 
schema change, as without the clause.
+        // Next to other clauses, the statement runs as one heavy schema 
change as well.
+        if (!lightEnabled || !index.isLightAddIndexSupported(false) || 
!onlyAddIndex) {
+            return AddIndexPath.HEAVY;
+        }
+        return AddIndexPath.LIGHT_AND_BUILD;
+    }
+
+    // Rejects, before any metadata change, an index whose BUILD INDEX jobs 
would fail.
+    private static void checkBuildIndexSupported(Index index, OlapTable 
olapTable) throws DdlException {
+        boolean sniiTable = olapTable.getInvertedIndexFileStorageFormat() == 
TInvertedIndexFileStorageFormat.SNII;
+        Preconditions.checkState(index.isBuildIndexSupported(sniiTable), 
index.getIndexName());
+        if 
(olapTable.getIndexes().stream().anyMatch(Index::isVariantValuesIndex)) {

Review Comment:
   [P2] Check values indexes created by the same ALTER
   
   On a local SNII table with `v VARIANT` and `s STRING`, add a values index on 
`v` with BUILD DEFERRED alongside an inverted index on `s` with BUILD 
IMMEDIATE. This guard sees neither of the new indexes, so the statement 
publishes both and queues the scalar build. If that job is cancelled while 
waiting for an earlier load, `BUILD INDEX` for the scalar index now rejects the 
table because the values index exists. Retrying with IF NOT EXISTS also skips 
the build. Check the prospective index list before publication so the combined 
statement cannot leave the scalar build without its usual recovery path.



##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -3944,6 +3959,114 @@ private String getCloudClusterName() throws 
UserException {
         return clusterName;
     }
 
+    // How one ADD INDEX runs: LIGHT only changes metadata, so only data 
written afterwards gets the index;
+    // LIGHT_AND_BUILD also builds the existing data of every partition 
through index change jobs;
+    // HEAVY rewrites the existing data in a schema change job.
+    private enum AddIndexPath { LIGHT, LIGHT_AND_BUILD, HEAVY }
+
+    // Resolves the path of every ADD INDEX in alterOps. An index added with 
BUILD DEFERRED keeps the existing
+    // data unindexed, so it can not share a statement with a clause that 
rewrites or changes that data.
+    private static Map<CreateIndexOp, AddIndexPath> 
resolveAddIndexPaths(List<AlterOp> alterOps,
+            OlapTable olapTable, boolean enableAddIndexForNewData) throws 
DdlException {
+        boolean onlyAddIndex = alterOps.stream().allMatch(alterOp -> alterOp 
instanceof CreateIndexOp);
+        Map<CreateIndexOp, AddIndexPath> paths = new IdentityHashMap<>();
+        for (AlterOp alterOp : alterOps) {
+            // IF NOT EXISTS skips an index that already exists, so nothing is 
resolved or built for it.
+            if (alterOp instanceof CreateIndexOp && 
!isSkippedByIfNotExists((CreateIndexOp) alterOp, olapTable)) {
+                CreateIndexOp createIndexOp = (CreateIndexOp) alterOp;
+                paths.put(createIndexOp, 
resolveAddIndexPath(createIndexOp.getIndex(),
+                        createIndexOp.getBuildMode().orElse(null), 
enableAddIndexForNewData, onlyAddIndex));
+            }
+        }
+        boolean hasDeferred = paths.keySet().stream()
+                .anyMatch(createIndexOp -> 
createIndexOp.getBuildMode().orElse(null) == BuildMode.DEFERRED);
+        if (hasDeferred && (!onlyAddIndex || 
paths.containsValue(AddIndexPath.HEAVY))) {
+            throw new DdlException("BUILD DEFERRED can not be combined with 
other schema changes or with an index"
+                    + " that rewrites the existing data, please run them in 
separate statements.");
+        }
+        // One heavy schema change runs the whole statement and indexes all 
existing data, so it submits no BUILD
+        // INDEX jobs and their checks apply only when no index of the 
statement needs it.
+        boolean heavy = paths.containsValue(AddIndexPath.HEAVY);
+        for (Map.Entry<CreateIndexOp, AddIndexPath> entry : paths.entrySet()) {
+            if (entry.getValue() == AddIndexPath.LIGHT_AND_BUILD) {
+                if (heavy) {
+                    entry.setValue(AddIndexPath.HEAVY);
+                } else {
+                    checkBuildIndexSupported(entry.getKey().getIndex(), 
olapTable);
+                }
+            }
+        }
+        return paths;
+    }
+
+    private static boolean isSkippedByIfNotExists(CreateIndexOp createIndexOp, 
OlapTable olapTable) {
+        IndexDefinition indexDef = createIndexOp.getIndexDef();
+        return indexDef.isSetIfNotExists() && olapTable.getIndexes().stream()
+                .anyMatch(index -> 
index.getIndexName().equalsIgnoreCase(indexDef.getIndexName()));
+    }
+
+    // Where BUILD IMMEDIATE submits BUILD INDEX jobs, it gives exactly the 
guarantees of BUILD INDEX, which for
+    // example builds only the base tablets. LIGHT_AND_BUILD is checked later 
against the whole statement.
+    private static AddIndexPath resolveAddIndexPath(Index index, BuildMode 
buildMode,
+            boolean enableAddIndexForNewData, boolean onlyAddIndex) throws 
DdlException {
+        boolean lightEnabled = Config.enable_light_index_change;
+        if (buildMode == null) {
+            return lightEnabled && 
index.isLightAddIndexSupported(enableAddIndexForNewData)
+                    ? AddIndexPath.LIGHT : AddIndexPath.HEAVY;
+        }
+        if (buildMode == BuildMode.DEFERRED) {
+            if (!lightEnabled) {
+                throw new DdlException("BUILD DEFERRED requires 
enable_light_index_change=true");
+            }
+            if (!index.isLightAddIndexSupported(true)) {
+                throw new DdlException("BUILD DEFERRED is not supported for " 
+ index.getIndexType() + " index "
+                        + index.getIndexName() + " in " + 
(Config.isCloudMode() ? "cloud" : "local") + " mode");
+            }
+            return AddIndexPath.LIGHT;
+        }
+        if (index.isVariantValuesIndex()) {
+            throw new DdlException("VARIANT values index supports only BUILD 
DEFERRED");
+        }
+        // Where adding the index is heavy by default, it runs the heavy 
schema change, as without the clause.
+        // Next to other clauses, the statement runs as one heavy schema 
change as well.
+        if (!lightEnabled || !index.isLightAddIndexSupported(false) || 
!onlyAddIndex) {
+            return AddIndexPath.HEAVY;
+        }
+        return AddIndexPath.LIGHT_AND_BUILD;
+    }
+
+    // Rejects, before any metadata change, an index whose BUILD INDEX jobs 
would fail.
+    private static void checkBuildIndexSupported(Index index, OlapTable 
olapTable) throws DdlException {
+        boolean sniiTable = olapTable.getInvertedIndexFileStorageFormat() == 
TInvertedIndexFileStorageFormat.SNII;
+        Preconditions.checkState(index.isBuildIndexSupported(sniiTable), 
index.getIndexName());
+        if 
(olapTable.getIndexes().stream().anyMatch(Index::isVariantValuesIndex)) {
+            throw new DdlException("BUILD IMMEDIATE is not supported on a 
table with a VARIANT values index,"
+                    + " because BUILD INDEX is not supported on it");
+        }
+        // BUILD INDEX can not build an index on a VARIANT column, see the 
BuildIndexOp branch of process.
+        Optional<Column> variantColumn = olapTable.getBaseSchema().stream()
+                .filter(column -> column.getType().isVariantType())
+                .filter(column -> 
index.getColumns().stream().anyMatch(column.getName()::equalsIgnoreCase))
+                .findFirst();
+        if (variantColumn.isPresent()) {
+            throw new DdlException("BUILD IMMEDIATE is not supported for index 
" + index.getIndexName()
+                    + " on VARIANT column " + variantColumn.get().getName()
+                    + ", because BUILD INDEX can not build it; use BUILD 
DEFERRED instead");
+        }
+    }
+
+    // BUILD IMMEDIATE: index the existing data of every partition, as BUILD 
INDEX does.
+    private void submitBuildJobs(Database db, OlapTable olapTable, Map<Long, 
LinkedList<Column>> indexSchemaMap,
+            List<Index> indexes) throws UserException {
+        Map<Long, Set<String>> indexOnPartitions = new HashMap<>();
+        for (Index index : indexes) {
+            indexOnPartitions.put(index.getIndexId(), 
olapTable.getPartitionNames());
+        }
+        // buildOrDeleteTableInvertedIndices removes the entries of the map it 
gets that are not the base index.
+        buildOrDeleteTableInvertedIndices(db, olapTable, new 
HashMap<>(indexSchemaMap), indexes,

Review Comment:
   [P2] Keep bundled backfills aligned with historical rowset columns
   
   On a local V2 table with an old rowset, first add `new_col` with a light ADD 
COLUMN. Then request two INVERTED indexes with BUILD IMMEDIATE in one ALTER, 
first on `new_col` and then on a column present in the old rowset. This submits 
both targets in the same job. `IndexBuilder::handle_single_rowset` skips the 
missing first column and projects only the second, but 
`_write_inverted_index_data` reads the second target at position 1 in that 
one-column block. That fails the otherwise buildable second index too. Use the 
projected ordinal for each retained target, or submit targets independently. 
Please cover two IMMEDIATE targets against mixed historical schemas.



##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -3944,6 +3959,114 @@ private String getCloudClusterName() throws 
UserException {
         return clusterName;
     }
 
+    // How one ADD INDEX runs: LIGHT only changes metadata, so only data 
written afterwards gets the index;
+    // LIGHT_AND_BUILD also builds the existing data of every partition 
through index change jobs;
+    // HEAVY rewrites the existing data in a schema change job.
+    private enum AddIndexPath { LIGHT, LIGHT_AND_BUILD, HEAVY }
+
+    // Resolves the path of every ADD INDEX in alterOps. An index added with 
BUILD DEFERRED keeps the existing
+    // data unindexed, so it can not share a statement with a clause that 
rewrites or changes that data.
+    private static Map<CreateIndexOp, AddIndexPath> 
resolveAddIndexPaths(List<AlterOp> alterOps,
+            OlapTable olapTable, boolean enableAddIndexForNewData) throws 
DdlException {
+        boolean onlyAddIndex = alterOps.stream().allMatch(alterOp -> alterOp 
instanceof CreateIndexOp);
+        Map<CreateIndexOp, AddIndexPath> paths = new IdentityHashMap<>();
+        for (AlterOp alterOp : alterOps) {
+            // IF NOT EXISTS skips an index that already exists, so nothing is 
resolved or built for it.
+            if (alterOp instanceof CreateIndexOp && 
!isSkippedByIfNotExists((CreateIndexOp) alterOp, olapTable)) {
+                CreateIndexOp createIndexOp = (CreateIndexOp) alterOp;
+                paths.put(createIndexOp, 
resolveAddIndexPath(createIndexOp.getIndex(),
+                        createIndexOp.getBuildMode().orElse(null), 
enableAddIndexForNewData, onlyAddIndex));
+            }
+        }
+        boolean hasDeferred = paths.keySet().stream()
+                .anyMatch(createIndexOp -> 
createIndexOp.getBuildMode().orElse(null) == BuildMode.DEFERRED);
+        if (hasDeferred && (!onlyAddIndex || 
paths.containsValue(AddIndexPath.HEAVY))) {
+            throw new DdlException("BUILD DEFERRED can not be combined with 
other schema changes or with an index"
+                    + " that rewrites the existing data, please run them in 
separate statements.");
+        }
+        // One heavy schema change runs the whole statement and indexes all 
existing data, so it submits no BUILD
+        // INDEX jobs and their checks apply only when no index of the 
statement needs it.
+        boolean heavy = paths.containsValue(AddIndexPath.HEAVY);
+        for (Map.Entry<CreateIndexOp, AddIndexPath> entry : paths.entrySet()) {
+            if (entry.getValue() == AddIndexPath.LIGHT_AND_BUILD) {
+                if (heavy) {
+                    entry.setValue(AddIndexPath.HEAVY);
+                } else {
+                    checkBuildIndexSupported(entry.getKey().getIndex(), 
olapTable);

Review Comment:
   [P2] Apply the changelog-table guard to automatic BUILD jobs
   
   On a local table with `changelog.enable=true`, an ordinary inverted `ADD 
INDEX ... BUILD IMMEDIATE` passes the metadata-only ADD allowlist and reaches 
this job preflight. Standalone `BUILD INDEX` is excluded by 
`AlterOperations.checkChangelogAllow`, but the automatic call submits the same 
physical build after publishing the index. If the job is cancelled or fails, 
the user cannot retry it through standalone BUILD, and IF NOT EXISTS leaves the 
already published index alone. Apply the BUILD guard before publication, or 
explicitly support the operation on changelog tables in both entry points and 
test retry.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to