mirror of https://github.com/apache/druid.git
Proper default for taskLockType in streaming ingestion (#15213)
* Proper value for taskLockType in streaming ingestion with concurrent compaction
This commit is contained in:
parent
1f39c054a7
commit
5752a1a383
|
@ -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>,
|
||||
},
|
||||
]}
|
||||
|
|
Loading…
Reference in New Issue