Skip to content

Commit

Permalink
Proper default for taskLockType in streaming ingestion (apache#15213)
Browse files Browse the repository at this point in the history
* Proper value for taskLockType in streaming ingestion with concurrent compaction
  • Loading branch information
Sébastien authored and ycp2 committed Nov 17, 2023
1 parent 4824056 commit d7f7f09
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions web-console/src/views/load-data-view/load-data-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
},
]}
Expand Down

0 comments on commit d7f7f09

Please sign in to comment.