Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Found these with rohithsharma while browsing the code
- In stop: it calls shutdownNow which doens't wait for pending tasks, should it use shutdown instead ?
public void stop() { LOG.info("Stopping TimelineClient."); executor.shutdownNow(); try { executor.awaitTermination(DRAIN_TIME_PERIOD, TimeUnit.MILLISECONDS); } catch (InterruptedException e) {
- In TimelineClientImpl#createRunnable:
If any exception happens when publish one entity (publishWithoutBlockingOnQueue), the thread exists. I think it should try best effort to continue publishing the timeline entities, one failure should not cause all followup entities not published.