Zouxxyy commented on code in PR #9247:
URL: https://github.com/apache/hudi/pull/9247#discussion_r1270243206
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/utils/TestFlinkWriteClients.java:
##########
@@ -55,7 +57,19 @@ void testAutoSetupLockProvider() throws Exception {
conf.setBoolean(FlinkOptions.METADATA_ENABLED, true);
StreamerUtil.initTableIfNotExists(conf);
HoodieWriteConfig writeConfig =
FlinkWriteClients.getHoodieClientConfig(conf, false, false);
- assertThat(writeConfig.getLockProviderClass(),
is(FileSystemBasedLockProvider.class.getName()));
+ Assertions.assertTrue(writeConfig.isLockRequired());
+ assertThat(writeConfig.getLockProviderClass(),
is(InProcessLockProvider.class.getName()));
+ assertThat(writeConfig.getWriteConcurrencyMode(),
is(WriteConcurrencyMode.SINGLE_WRITER));
+ }
+
+ @Test
+ void testAutoSetupLockProviderWithoutTableService() throws Exception {
+ conf.setBoolean(FlinkOptions.METADATA_ENABLED, true);
+ conf.setBoolean("hoodie.table.services.enabled", false);
+ StreamerUtil.initTableIfNotExists(conf);
Review Comment:
> we have file based lock provider instead.
As I said earlier, object storage not support atomic creation, file based
lock is invalid, see https://github.com/apache/hudi/pull/7614
--
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]