Skip to content

Commit f0cd348

Browse files
yingjianwu98Yingjian Wu
andauthored
Revert "Yingjianw/aurora jdbc (#658)" (#674)
This reverts commit a021467. Co-authored-by: Yingjian Wu <[email protected]>
1 parent a021467 commit f0cd348

File tree

70 files changed

+994
-2761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+994
-2761
lines changed

.github/workflows/nebula-pr-functional-aurora-tests.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/nebula-pr-functional-crdb-tests.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/nebula-pr-functional-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ jobs:
4242
- name=$(date +"%Y-%m-%d") && cat ./metacat-functional-tests/build/logs/metacat/catalina.$name.log
4343
- name=$(date +"%Y-%m-%d") && cat ./metacat-functional-tests/build/logs/metacat/localhost.$name.log
4444
- cat ./metacat-functional-tests/build/logs/metacat/spring.log
45+
4546
# Add a step to upload the test report using version v4
4647
- name: Upload Test Report
47-
if: always()
4848
uses: actions/upload-artifact@v4
4949
with:
5050
name: test-report-functional
51-
path: |
52-
**/build/reports/functionalTest
51+
path: /home/runner/work/metacat/metacat/metacat-metadata/build/reports/functionalTest

.github/workflows/nebula-pull-request.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,3 @@ jobs:
4242
- name=$(date +"%Y-%m-%d") && cat ./metacat-functional-tests/build/logs/metacat/catalina.$name.log
4343
- name=$(date +"%Y-%m-%d") && cat ./metacat-functional-tests/build/logs/metacat/localhost.$name.log
4444
- cat ./metacat-functional-tests/build/logs/metacat/spring.log
45-
# Add a step to upload the test report
46-
- name: Upload Test Report
47-
if: always()
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: test-report
51-
path: |
52-
**/build/reports/tests/test

metacat-common-server/src/main/java/com/netflix/metacat/common/server/properties/Config.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -657,12 +657,5 @@ public interface Config {
657657
* @return True if it should be.
658658
*/
659659
boolean isDefinitionMetadataSelectForUpdateEnabled();
660-
661-
/**
662-
* Whether aurora data source is enabled.
663-
*
664-
* @return True if it is.
665-
*/
666-
boolean isAuroraDataSourceEnabled();
667660
}
668661

metacat-common-server/src/main/java/com/netflix/metacat/common/server/properties/DefaultConfigImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,4 @@ public ParentChildRelationshipProperties getParentChildRelationshipProperties()
713713
public boolean isDefinitionMetadataSelectForUpdateEnabled() {
714714
return this.metacatProperties.getUsermetadata().isDefinitionMetadataSelectForUpdateEnabled();
715715
}
716-
717-
@Override
718-
public boolean isAuroraDataSourceEnabled() {
719-
return this.metacatProperties.getService().isAuroraDataSourceEnabled();
720-
}
721716
}

metacat-common-server/src/main/java/com/netflix/metacat/common/server/properties/MetacatProperties.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,4 @@ public MetacatProperties(final Environment env) {
8282
this.env = env;
8383
this.parentChildRelationshipProperties = new ParentChildRelationshipProperties(env);
8484
}
85-
86-
/**
87-
* Constructor for MetacatProperties.
88-
*
89-
* @param env Spring Environment
90-
* @param isAuroraEnabled isAuroraEnabled
91-
*/
92-
public MetacatProperties(final Environment env, final boolean isAuroraEnabled) {
93-
this.env = env;
94-
this.parentChildRelationshipProperties = new ParentChildRelationshipProperties(env);
95-
this.getService().setAuroraDataSourceEnabled(isAuroraEnabled);
96-
}
9785
}

metacat-common-server/src/main/java/com/netflix/metacat/common/server/properties/ServiceProperties.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public class ServiceProperties {
3737
private Tables tables = new Tables();
3838
private boolean listTableNamesByDefaultOnGetDatabase = true;
3939
private boolean listDatabaseNameByDefaultOnGetCatalog = true;
40-
private boolean auroraDataSourceEnabled;
4140
private int listTableEntitiesPageSize = 1000;
4241
private int listTableNamesPageSize = 10000;
4342
private int listDatabaseEntitiesPageSize = 1000;

metacat-common-server/src/test/groovy/com/netflix/metacat/common/server/events/MetacatApplicationEventMulticasterSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import spock.lang.Specification
1515
*/
1616
class MetacatApplicationEventMulticasterSpec extends Specification {
1717
def registry = Mock(Registry)
18-
def bus = new MetacatApplicationEventMulticaster(registry, new MetacatProperties(null))
18+
def bus = new MetacatApplicationEventMulticaster(registry, new MetacatProperties())
1919
def event = Mock(ApplicationEvent)
2020

2121
def testPost() {

metacat-common-server/src/test/groovy/com/netflix/metacat/common/server/events/MetacatEventBusSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import spock.lang.Specification
1515
*/
1616
class MetacatEventBusSpec extends Specification {
1717
def registry = Mock(Registry)
18-
def eventMulticaster = Spy(MetacatApplicationEventMulticaster, constructorArgs:[registry, new MetacatProperties(null)])
18+
def eventMulticaster = Spy(MetacatApplicationEventMulticaster, constructorArgs:[registry, new MetacatProperties()])
1919
def bus = new MetacatEventBus(eventMulticaster, new NoopRegistry())
2020
def event = Mock(ApplicationEvent)
2121

0 commit comments

Comments
 (0)