bithw1 opened a new issue, #17445:
URL: https://github.com/apache/hudi/issues/17445
### Describe the problem you faced
The following code is from HoodieWriteConfig.java,
I want to kick off the compaction right after each
write(insert/upsert/delele...), that means, I will do the inline compaction
schedule and inline compaction execution,
Hudi doesn't allow to set the two options `hoodie.compact.inline` and
`hoodie.compact.schedule.inline` both as true, as the following code checks.
```
boolean inlineCompact =
writeConfig.getBoolean(HoodieCompactionConfig.INLINE_COMPACT);
boolean inlineCompactSchedule =
writeConfig.getBoolean(HoodieCompactionConfig.SCHEDULE_INLINE_COMPACT);
checkArgument(!(inlineCompact && inlineCompactSchedule),
String.format("Either of inline compaction (%s) or "
+ "schedule inline compaction (%s) can be enabled. Both can't
be set to true at the same time. %s, %s",
HoodieCompactionConfig.INLINE_COMPACT.key(),
HoodieCompactionConfig.SCHEDULE_INLINE_COMPACT.key(),
inlineCompact, inlineCompactSchedule));
}
```
### To Reproduce
1.
2.
3.
4.
### Expected behavior
1
### Environment Description
* Hudi version:
* Spark version:
* Flink version:
* Hive version:
* Hadoop version:
* Storage (HDFS/S3/GCS..):
* Running on Docker? (yes/no):
### Additional context
_No response_
### Stacktrace
```shell
```
--
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]