-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Update airbase to 140 #17740
Update airbase to 140 #17740
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,8 @@ public void testCounter() | |
futures.add(executor.submit(() -> { | ||
try { | ||
// wait for the go signal | ||
awaitUninterruptibly(startLatch, 1, TimeUnit.MINUTES); | ||
@SuppressWarnings("CheckReturnValue") | ||
boolean ignored = awaitUninterruptibly(startLatch, 1, TimeUnit.MINUTES); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why ignore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To leave the behavior as it was before. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a test, so it would not be unsafe to just improve it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, I would make all these |
||
|
||
assertFalse(futures.get(taskNumber).isDone()); | ||
|
||
|
@@ -90,7 +91,8 @@ public void testCounter() | |
|
||
// signal go and wait for tasks to complete | ||
startLatch.countDown(); | ||
awaitUninterruptibly(completeLatch, 1, TimeUnit.MINUTES); | ||
@SuppressWarnings("CheckReturnValue") | ||
boolean ignored = awaitUninterruptibly(completeLatch, 1, TimeUnit.MINUTES); | ||
|
||
assertEquals(counter.get(), totalTasks); | ||
// since this is a fifo executor with one thread and completeLatch is decremented inside the future, | ||
|
@@ -142,7 +144,8 @@ private void testBound(int maxThreads, int totalTasks) | |
|
||
// signal go and wait for tasks to complete | ||
startLatch.countDown(); | ||
awaitUninterruptibly(completeLatch, 1, TimeUnit.MINUTES); | ||
@SuppressWarnings("CheckReturnValue") | ||
boolean ignored = awaitUninterruptibly(completeLatch, 1, TimeUnit.MINUTES); | ||
|
||
assertFalse(failed.get()); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wendigo Shouldn't the hook on line 81 be sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s about ignoring return value of the combiner call. What would you propose instead adding a hook?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codope here we add a hook for
asyncQueue::finish
potential failuresThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve migrated this change to other PR. Seems to work just fine