Skip to content

Commit

Permalink
YARN.11590. RM process stuck after calling confStore.format() when ZK…
Browse files Browse the repository at this point in the history
… SSL/TLS is enabled, as netty thread waits indefinitely. Contributed by Ferenc Erdelyi
  • Loading branch information
szilard-nemeth committed Oct 16, 2023
1 parent c8abca3 commit 2736f88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1903,10 +1903,11 @@ static void deleteRMConfStore(Configuration conf) throws Exception {
}

if (scheduler instanceof MutableConfScheduler && isConfigurationMutable) {
YarnConfigurationStore confStore = YarnConfigurationStoreFactory
.getStore(conf);
confStore.initialize(conf, conf, rmContext);
confStore.format();
try (YarnConfigurationStore confStore = YarnConfigurationStoreFactory
.getStore(conf)) {
confStore.initialize(conf, conf, rmContext);
confStore.format();
}
} else {
System.out.println(String.format("Scheduler Configuration format only " +
"supported by %s.", MutableConfScheduler.class.getSimpleName()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* {@code getPendingMutations}, and replay/confirm them via
* {@code confirmMutation} as in the normal case.
*/
public abstract class YarnConfigurationStore {
public abstract class YarnConfigurationStore implements AutoCloseable {

public static final Logger LOG =
LoggerFactory.getLogger(YarnConfigurationStore.class);
Expand Down

1 comment on commit 2736f88

@szilard-nemeth
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wjize
For these kind of questions, please use the Hadoop mailing lists.
This seems not to be related at all to this PR so I kindly ask you to remove the comment.

Thanks.

Please sign in to comment.