Skip to content

Commit

Permalink
Refactor for depreciation of MasterService (opensearch-project#531)
Browse files Browse the repository at this point in the history
* Address core changes

Signed-off-by: Khushboo Rajput <khushbr@amazon.com>
  • Loading branch information
khushbr committed Sep 7, 2023
1 parent 7a6f789 commit fc93dc1
Show file tree
Hide file tree
Showing 26 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ dependencies {
force "com.fasterxml.jackson.dataformat:jackson-dataformat-smile:${jacksonVersion}"
force "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jacksonVersion}"
force "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${jacksonVersion}"
force "org.apache.commons:commons-lang3:3.12.0"
force "org.apache.commons:commons-lang3:${versions.commonslang}"
force "org.slf4j:slf4j-api:2.0.0"
force "org.apache.bcel:bcel:6.6.0" // This line should be removed once Spotbugs is upgraded to 4.7.4
}
Expand Down
2 changes: 1 addition & 1 deletion licenses/bcprov-jdk15to18-LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 0 additions & 1 deletion licenses/netty-buffer-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-buffer-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f8f3d8644afa5e6e1a40a3a6aeb9d9aa970ecb4f
1 change: 0 additions & 1 deletion licenses/netty-codec-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-codec-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
384ba4d75670befbedb45c4d3b497a93639c206d
1 change: 0 additions & 1 deletion licenses/netty-codec-http-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-codec-http-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
af78acec783ffd77c63d8aeecc21041fd39ac54f
1 change: 0 additions & 1 deletion licenses/netty-codec-http2-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-codec-http2-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
893888d09a7bef0d0ba973d7471943e765d0fd08
1 change: 0 additions & 1 deletion licenses/netty-codec-socks-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-codec-socks-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30e8fa29a349db5a933225d61891b8802836bb79
1 change: 0 additions & 1 deletion licenses/netty-common-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-common-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7cceacaf11df8dc63f23d0fb58e9d4640fc88404
1 change: 0 additions & 1 deletion licenses/netty-handler-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-handler-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
abb86c6906bf512bf2b797a41cd7d2e8d3cd7c36
1 change: 0 additions & 1 deletion licenses/netty-handler-proxy-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-handler-proxy-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a99ecef0e1d86a92e40a7c89805c236d9cd7493e
1 change: 0 additions & 1 deletion licenses/netty-resolver-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-resolver-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cec8348108dc76c47cf87c669d514be52c922144
1 change: 0 additions & 1 deletion licenses/netty-transport-4.1.96.Final.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions licenses/netty-transport-4.1.97.Final.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f37380d23c9bb079bc702910833b2fd532c9abd0

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d469d84265ab70095b01b40886cabdd433b6e664
Original file line number Diff line number Diff line change
@@ -1 +1 @@
50c9a65da3acb24e94c6dbb5e2afda2d7dd536ad
0f872542fa9a89746f0cd60fc465c33537d41701
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ void generateFinishMetrics(long startTime) {

// - Separated to have a unit test; and catch any code changes around this field
Field getClusterManagerServiceTPExecutorField() throws NoSuchFieldException {
// Currently ClusterManagerService extends MasterService, remove getSuperClass(),
// once MasterService contents are moved and class is removed.
Field threadPoolExecutorField =
ClusterManagerService.class.getDeclaredField("threadPoolExecutor");
ClusterManagerService.class.getSuperclass().getDeclaredField("threadPoolExecutor");
threadPoolExecutorField.setAccessible(true);
return threadPoolExecutorField;
}
Expand Down

0 comments on commit fc93dc1

Please sign in to comment.