Skip to content
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

Azure Bindings: Resolving IllegalArgumentException when parsing storage custom config parameters #6876

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AJadhav29
Copy link
Contributor

Change log description
Resolving IllegalArgumentException when parsing config parameters in a String.

Purpose of the change
Fixes #6875

What the code does
The code splits the custom config parsed as String ("," separated) appropriately into the config parameter and it's value.
It then stores them in the form of key-value pairs and returns the resulting map.

How to verify it
All the tests should pass.

@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Base: 86.45% // Head: 86.47% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (59045f2) compared to base (01903b9).
Patch has no changes to coverable lines.

❗ Current head 59045f2 differs from pull request most recent head e2a45d3. Consider uploading reports for the commit e2a45d3 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6876      +/-   ##
============================================
+ Coverage     86.45%   86.47%   +0.02%     
+ Complexity    16066    16060       -6     
============================================
  Files          1039     1038       -1     
  Lines         59922    59878      -44     
  Branches       6064     6057       -7     
============================================
- Hits          51803    51779      -24     
+ Misses         4938     4929       -9     
+ Partials       3181     3170      -11     
Impacted Files Coverage Δ
...ravega/client/control/impl/CancellableRequest.java 78.57% <0.00%> (-10.72%) ⬇️
...egmentstore/server/containers/MetadataCleaner.java 87.32% <0.00%> (-2.82%) ⬇️
...ga/controller/store/client/StoreClientFactory.java 81.81% <0.00%> (-2.28%) ⬇️
...io/pravega/common/concurrent/OrderedProcessor.java 85.71% <0.00%> (-1.79%) ⬇️
...client/control/impl/ControllerResolverFactory.java 82.85% <0.00%> (-0.96%) ⬇️
.../server/attributes/SegmentAttributeBTreeIndex.java 89.89% <0.00%> (-0.82%) ⬇️
...main/java/io/pravega/storage/hdfs/HDFSStorage.java 73.01% <0.00%> (-0.32%) ⬇️
...c/main/java/io/pravega/cli/admin/AdminCommand.java 94.79% <0.00%> (-0.03%) ⬇️
...tore/storage/impl/bookkeeper/BookKeeperConfig.java 100.00% <0.00%> (ø)
...entstore/storage/StorageUpdateSnapshotCommand.java
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Aditi Jadhav <Aditi.Jadhav@dell.com>

Signed-off-by: Aditi Jadhav <Aditi.Jadhav@dell.com>
@AJadhav29 AJadhav29 reopened this Sep 15, 2022
Signed-off-by: Aditi Jadhav <Aditi.Jadhav@dell.com>
Signed-off-by: Aditi Jadhav <Aditi.Jadhav@dell.com>
Signed-off-by: Aditi Jadhav <Aditi.Jadhav@dell.com>
@@ -240,19 +240,27 @@ private Map<String, Object> getTier2Env() {
return parseSystemPropertyAsMap("tier2Env");
}

private Map<String, Object> parseSystemPropertyAsMap(String systemProperty) {
public static Map<String, Object> parseSystemPropertyAsMap(String systemProperty) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is just for testing, this could have package visibility instead of public, right?

}

@NonNull
public static Map<String, Object> parseSystemPropertyAsMap(String systemProperty, String value) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is completely changing the behavior of this method, right? Previously, it was returning a map in which all values were Integer, and now it is putting some string in the value. How is this impacting the configuration of system tests? Are system tests working and configured as expected with this change?

@AJadhav29 AJadhav29 marked this pull request as draft September 27, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure Bindings: Resolving IllegalArgumentException when parsing storage custom config parameters
2 participants