[ML][Transforms] fixing listener being called twice (#46284) (#46292)

This commit is contained in:
Benjamin Trent 2019-09-03 15:26:56 -05:00 committed by GitHub
parent b8c51ff894
commit c3c1dcd2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -980,6 +980,7 @@ public class DataFrameTransformTask extends AllocatedPersistentTask implements S
// So, don't treat this like a checkpoint being completed, as no work was done.
if (hasSourceChanged == false) {
listener.onResponse(null);
return;
}
// TODO: needs cleanup super is called with a listener, but listener.onResponse is called below
// super.onFinish() fortunately ignores the listener