ctubbsii commented on a change in pull request #2202:
URL: https://github.com/apache/accumulo/pull/2202#discussion_r670715479
##########
File path:
server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java
##########
@@ -143,12 +145,14 @@
private static final String TABLE_TABLETS_TABLET_DIR = "table_info";
private static LineReader reader = null;
+ private static Terminal terminal = null;
private static ZooReaderWriter zoo = null;
private static LineReader getLineReader() throws IOException {
- if (reader == null) {
- reader = LineReaderBuilder.builder().build();
- }
+ if (terminal == null)
+ terminal = TerminalBuilder.builder().jansi(false).build();
+ if (reader == null)
+ reader = LineReaderBuilder.builder().terminal(terminal).build();
Review comment:
I noticed there's a few places in our code, and I think this is one of
them, where we don't really need to use a JLine terminal or reader at all.
Really, we don't have a need to use it outside of accumulo-shell at all. But,
I'm happy to have this change if it fixes the immediate bug. I opened #2203 to
address this separately.
--
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]