Proper default for taskLockType in streaming ingestion (#15213)

* Proper value for taskLockType in streaming ingestion with concurrent compaction
This commit is contained in:
Sébastien 2023-10-19 17:31:31 +02:00 committed by GitHub
parent 1f39c054a7
commit 5752a1a383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 2 deletions

View File

@ -3178,8 +3178,24 @@ export class LoadDataView extends React.PureComponent<LoadDataViewProps, LoadDat
appendToExisting ? 'append' : 'replace'
} tasks (experimental)`,
defaultValue: undefined,
valueAdjustment: v => (v ? (appendToExisting ? 'APPEND' : 'REPLACE') : undefined),
adjustValue: v => v === (appendToExisting ? 'APPEND' : 'REPLACE'),
valueAdjustment: v => {
if (!v) return undefined;
if (isStreamingSpec(spec)) {
return 'APPEND';
} else {
return appendToExisting ? 'APPEND' : 'REPLACE';
}
},
adjustValue: v => {
if (v === undefined) return false;
if (isStreamingSpec(spec)) {
return v === 'APPEND';
}
return v === (appendToExisting ? 'APPEND' : 'REPLACE');
},
info: <p>Allows or forbids concurrent tasks.</p>,
},
]}