Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various stuff lying around #505

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

rvansa
Copy link
Member

@rvansa rvansa commented Jan 15, 2018

I've found bunch of unrelated uncommitted changes I made over past months... Can't remember exactly when and why.

@ghost
Copy link

ghost commented Jan 15, 2018

Tests failed. Link to the results is here.

@ghost
Copy link

ghost commented Jan 15, 2018

Tests run successfully. Link to the results is here.

if (++i < payload.length && (b = payload[i]) == '[') {
while (++i < payload.length) {
b = payload[i];
if (b >= '@' && b <= '~') break;
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "color escape sequence" look like? This break statement is called even if there's [ or ] so I'm trying to see what's the goal/purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is called only when the [ is preceded by an escape char. Subsequently there are some numbers and the sequence is terminated with a letter (included).

@@ -28,6 +28,13 @@ private Operation(int id, String name) {
this.name = name;
}

// This is useful when running report.sh
private Object readResolve() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This method seems to be unused.

Copy link
Member Author

Choose a reason for hiding this comment

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

readResolve is Java serialization hook.

@@ -410,12 +410,6 @@ private void startServerSocket() throws IOException {
}
serverSocketChannel.socket().bind(address);
log.info("Master started and listening for connection on: " + address);
log.info("Waiting 5 seconds for server socket to open completely");
try {
Thread.sleep(5000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you removing this? Maybe I should ask why it was there before.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, the latter is the correct question :) It has been there after some early committer (back at Mircea's days) seemingly resolved some problem. Does not make much sense to me now and I was running happily without.

@mgencur
Copy link
Contributor

mgencur commented Feb 7, 2018

@rvansa, there's a conflict, but otherwise looks good.

@diegolovison
Copy link
Contributor

Please rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants