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

Issue 7166: Fixing durable log inspect command to give correct result #7171

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kuldeepk3
Copy link
Contributor

@kuldeepk3 kuldeepk3 commented Jul 25, 2023

Change log description
Updating DurableLogInspectCommand to return correct result when inspecting for Length, Offset, Attributes using either value or range.

Purpose of the change
Fixes #7166

What the code does
Adding code to evaluate condition when Length, Offset , Attributes are given.

How to verify it
Open admin cli and run durable log inspect command

Signed-off-by: Kuldeep Kumar <Kuldeep.kumar3@dell.com>
@kuldeepk3 kuldeepk3 changed the title Fixing durable log inspect command to give correct result Issue 7166: Fixing durable log inspect command to give correct result Jul 25, 2023
@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Patch coverage: 88.46% and project coverage change: -0.04% ⚠️

Comparison is base (b22ee1d) 86.40% compared to head (4149dc1) 86.37%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7171      +/-   ##
============================================
- Coverage     86.40%   86.37%   -0.04%     
- Complexity    16106    16174      +68     
============================================
  Files          1034     1034              
  Lines         59991    60057      +66     
  Branches       6107     6132      +25     
============================================
+ Hits          51836    51875      +39     
- Misses         4979     4992      +13     
- Partials       3176     3190      +14     
Files Changed Coverage Δ
...i/admin/dataRecovery/DurableLogInspectCommand.java 85.64% <88.46%> (+2.31%) ⬆️

... and 19 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

kuldeepk3 and others added 3 commits July 25, 2023 02:37
Signed-off-by: Kuldeep Kumar <Kuldeep.kumar3@dell.com>
Signed-off-by: Kuldeep Kumar <Kuldeep.kumar3@dell.com>
@kuldeepk3 kuldeepk3 marked this pull request as ready for review August 22, 2023 08:54
kuldeepk3 and others added 2 commits October 3, 2023 15:36
Signed-off-by: Kuldeep Kumar <Kuldeep.kumar3@dell.com>
if (conditionTpe.equals(ATTRIBUTES)) {
predicates.add(a -> a.getAttributes() == in);
}
} else {
Copy link
Member

Choose a reason for hiding this comment

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

If something other than "value" is used they will get "range". This is a serious problem if someone for example types "Value" or "value ".

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.

DurableLogInspectCommand not returning correct result
2 participants