-
Notifications
You must be signed in to change notification settings - Fork 751
[GOBBLIN-1983] Remove Optionals to make DagManager, EventSubmitter, and TopologyCatalog required for GaaS operation #3855
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
Conversation
6cf5575
to
81757ce
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3855 +/- ##
============================================
- Coverage 47.56% 45.19% -2.38%
+ Complexity 11068 5186 -5882
============================================
Files 2160 1088 -1072
Lines 85563 44311 -41252
Branches 9509 4856 -4653
============================================
- Hits 40700 20026 -20674
+ Misses 41154 22409 -18745
+ Partials 3709 1876 -1833 ☔ View full report in Codecov by Sentry. |
markMeter(meter, 1); | ||
} | ||
|
||
public static void markMeter(Meter meter) { |
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.
where is this being used?
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.
my related Q is whether we still require the Optional
version or could replace them w/ this one
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.
There are many non-gaas callers to this method with Optional parameter, which may be providing parameter that is truly optional.
if (compiledDag == null || compiledDag.isEmpty()) { | ||
if (compiledDag.isEmpty()) { | ||
FlowCompilationValidationHelper.populateFlowCompilationFailedEventMessage(eventSubmitter, spec, flowMetadata); | ||
Instrumented.markMeter(this.flowOrchestrationFailedMeter); |
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 is used here, the parameter changed from Optional to X
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.
nice cleanup, arjun!
markMeter(meter, 1); | ||
} | ||
|
||
public static void markMeter(Meter meter) { |
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.
my related Q is whether we still require the Optional
version or could replace them w/ this one
import com.google.common.collect.Lists; | ||
import com.google.common.io.Closer; | ||
|
||
import javax.annotation.Nonnull; |
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.
when I see:
Import order: java, org, com, gobblin.
here - https://gobblin.apache.org/docs/developer-guide/CodingStyle/
I presumed javax
would follow java
, not pop up between com
and gobblin
. are you sure this is supposed to move here?
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 do not do any import changes manually, intelliJ does it, hopefully based on the provided codestyle
...lin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/Orchestrator.java
Outdated
Show resolved
Hide resolved
* @param flowSpec | ||
* @param optionalFlowExecutionId for scheduled (non-ad-hoc) flows, to pass the ID "laundered" via the DB; | ||
* see: {@link MysqlMultiActiveLeaseArbiter javadoc section titled | ||
* see: {@link org.apache.gobblin.runtime.api.MysqlMultiActiveLeaseArbiter javadoc section titled |
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.
was this necessary? (I didn't see you remove an import
)
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.
just to fix javadoc
7110bc1
to
e49f7ff
Compare
e49f7ff
to
f7f7cdf
Compare
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.
whew, what a relief to pare down all this out-of-date and out-of-use code - very nice!
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
Description
fields
isInstrumentationEnabled
needs to be always enabled andeventSubmitter
should always be present for GaaS to function. RemovingOptional
from them.Tests
trivial changes
Commits