Cask Data Application Platform - Develop Build and Test

Build: #3558 was successful Child of CDAP-DRC-5776

Code commits

caskdata/cdap

  • greeshmaswaminathan <greeshmaswaminathan@users.noreply.github.com>

    greeshmaswaminathan <greeshmaswaminathan@users.noreply.github.com> fd4434344ef582b8346d213a1a7a7da7268ed561

    Merge pull request #14045 from mdelosdolores-vf/feature/CDAP-18575-CDAP-event-publish-program-status
    Feature/cdap 18575 cdap event publish program status

  • Alfonso Vidal <alfonso.vidal@vodafone.com>

    Alfonso Vidal <alfonso.vidal@vodafone.com> b81bda244bfe5fceb5919b5084eb940bed5b4f0e m

    fix build checkstyle error

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventPublisher.java (version b81bda244bfe5fceb5919b5084eb940bed5b4f0e)
  • Alfonso Vidal <alfonso.vidal@vodafone.com>

    Alfonso Vidal <alfonso.vidal@vodafone.com> 4c19f1ecdc7c192d88eea16ef125fe0739a933c1 m

    fix copyright year to 2022. fix Nullable property. fix missing new lines. fixing previous line without exceeding 120 chars

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventPublishManager.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventPublisher.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventWriterExtensionProvider.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventWriterProvider.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEvent.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventDetails.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventPublisher.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/dummy/DummyEventWriterExtensionProvider.java (version 4c19f1ecdc7c192d88eea16ef125fe0739a933c1)
  • Miguel de los Dolores <miguel.delosdolores@vodafone.com>

    Miguel de los Dolores <miguel.delosdolores@vodafone.com> 937615bce8c900aa370780c92eb4595eb5d8157b m

    remove newline

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventDetails.java (version 937615bce8c900aa370780c92eb4595eb5d8157b)
  • Miguel de los Dolores <miguel.delosdolores@vodafone.com>

    Miguel de los Dolores <miguel.delosdolores@vodafone.com> 8db4bd4dfd6c15166ea5c3a6e1d3ea38c44a53c4 m

    Fixed javadocs and format

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/DefaultEventWriterContext.java (version 8db4bd4dfd6c15166ea5c3a6e1d3ea38c44a53c4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventDetails.java (version 8db4bd4dfd6c15166ea5c3a6e1d3ea38c44a53c4)
  • Alfonso Vidal <alfonso.vidal@vodafone.com>

    Alfonso Vidal <alfonso.vidal@vodafone.com> 9a99776101198940ca7ed64df57a63de62dcae2f m

    fix to add application name in the event detail

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventDetails.java (version 9a99776101198940ca7ed64df57a63de62dcae2f)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventPublisher.java (version 9a99776101198940ca7ed64df57a63de62dcae2f)
  • Alfonso Vidal <alfonso.vidal@vodafone.com>

    Alfonso Vidal <alfonso.vidal@vodafone.com> f1d0df70bcea2c59f4ec457a3e48ab94b22ea257 m

    delete plugin metrics and remove newlines

  • Alfonso Vidal <alfonso.vidal@vodafone.com>

    Alfonso Vidal <alfonso.vidal@vodafone.com> a20c263c26ae1c78e3bb31f15ecb0733ecd28b73 m

    check if events writer extension directory exists in the configuration before build the extension loader

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventWriterExtensionProvider.java (version a20c263c26ae1c78e3bb31f15ecb0733ecd28b73)
  • Alfonso Vidal <alfonso.vidal@vodafone.com>

    Alfonso Vidal <alfonso.vidal@vodafone.com> 0ca3d88ce974d8be35a068c8bed7d7a8ae0c7502 m

    check if events writer extension directory exists in the configuration before build the extension loader

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventWriterExtensionProvider.java (version 0ca3d88ce974d8be35a068c8bed7d7a8ae0c7502)
  • Alfonso Vidal <alfonso.vidal@vodafone.com>

    Alfonso Vidal <alfonso.vidal@vodafone.com> f54daa6b40d6041729836f1a3994991209bf6429 m

    add cdap-events-writer-spi in pom to build it. Change shouldPublish function to retrieve all status events.

    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventPublisher.java (version f54daa6b40d6041729836f1a3994991209bf6429)
    • pom.xml (version f54daa6b40d6041729836f1a3994991209bf6429)
  • Greeshma Swaminathan

    Greeshma Swaminathan 7989b1912341d049d10097bf2ed86efc5cebcbd4 m

    Event publishing - part 1
    Move spi interfaces to cdap-event-writer-spi module

    Inject event classes

    Add in App Fabric start and end of Event Manager
    Add new constants referer to events writer extesnsion directory and prefix of parameters
    Add DefaultEventWriterContext
    Add Provider implementation
    Add Provier usage in EventPublishManager to initialize
    Add initialize eventwriters with context in ProgramStatusEventPublisher

    Inject event classes

    Add binder to EventWriterProvider

    Local testing executing in sandbox and checking the functionallity with the system logs that prints the messages directly to the console

    Missing class

    update publisher functionality

    update constants

    Including unit testing and allowing stop events to publish

    Fixing unused services

    Papulating details with error

    resolving comments from changes-context-provider

    Refactoring EventWriter generic type and style

    Fixing formatting issues

    Rearrange code

    Removing new line

    Fixing indents

    Fixing error messages and adding javadocs

    Removing only pipeline events filter

    Disabling event publish by default

    • cdap-app-fabric/pom.xml (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/app/guice/AppFabricServiceRuntimeModule.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/app/services/AppFabricServer.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/DefaultEventWriterContext.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventPublishManager.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventPublisher.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventWriterExtensionProvider.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/EventWriterProvider.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/PluginMetrics.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEvent.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventDetails.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/ProgramStatusEventPublisher.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/dummy/DummyEventWriter.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/main/java/io/cdap/cdap/internal/events/dummy/DummyEventWriterExtensionProvider.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/test/java/io/cdap/cdap/internal/events/ProgramStatusEventPublisherTest.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-app-fabric/src/test/resources/mocked_pipeline_notification.json (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-common/src/main/java/io/cdap/cdap/common/conf/Constants.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-common/src/main/resources/cdap-default.xml (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-event-writer-spi/pom.xml (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-event-writer-spi/src/main/java/io/cdap/cdap/spi/events/Event.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-event-writer-spi/src/main/java/io/cdap/cdap/spi/events/EventType.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-event-writer-spi/src/main/java/io/cdap/cdap/spi/events/EventWriter.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-event-writer-spi/src/main/java/io/cdap/cdap/spi/events/EventWriterContext.java (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)
    • cdap-standalone/src/main/resources/cdap-site.xml (version 7989b1912341d049d10097bf2ed86efc5cebcbd4)