-
Notifications
You must be signed in to change notification settings - Fork 142
CORTX-30083:Fix Codacy issues under "net" directory #1936
Conversation
This issue/pull request has been marked as |
Can one of the admins verify this patch? |
This issue/pull request has been marked as |
fc40bf6
to
51b64af
Compare
528c652
to
2c4289a
Compare
7e79538
to
05ec4e5
Compare
This patch fixes some of the codacy warnings in "net" dir. Signed-off-by: Vinoth.V <vinoth.v@seagate.com>
05ec4e5
to
761d20e
Compare
Currently Memory leak pre-merge job is failing for all the pr's and hence we are ignoring it, as we do not want to block merge. Once we streamline that we will mandate its passing. |
Problem: Getting following Codacy Warnings: Double quote to prevent globing and words splitting. variable unused. Verify use (or export if used externally). %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int' Boolean result is used in bitwise operation. Clarify expression with parentheses. Solution: We are putting the variable references in double quotes. Exported the variables as it is used in different shell scripts modified appropriate format string brackets applied , so the Boolean operation happens based on associativity
CORTX-30083: Fix Codacy issues under "net" directory
- Fixing Codacy issues under net/test dir
Signed-off-by: Vinoth.V vinoth.v@seagate.com
Problem Statement
Codacy error :
Design
Coding
Checklist for Author
Testing
Checklist for Author
Impact Analysis
Checklist for Author/Reviewer/GateKeeper
Review Checklist
Checklist for Author
Documentation
Checklist for Author
Testing Result
Tested with debug message
<< 01net >>
transfer machines endpoint prefix is 0@lo:12345:42
------ test client in user space, test server in user space
--- ping test (test message size is 4KiB)
====CORTX-30083====
====CORTX-30083====
avg out: 20.1MiB/s avg in: 20.1MiB/s total out: 20.1MiB total in: 20.1MiB avg RTT: 1040.351 us
avg out: 19.5MiB/s avg in: 19.5MiB/s total out: 39.0MiB total in: 39.0MiB avg RTT: 1145.171 us
avg out: 18.7MiB/s avg in: 18.7MiB/s total out: 56.2MiB total in: 56.1MiB avg RTT: 1266.184 us
avg out: 18.9MiB/s avg in: 18.9MiB/s total out: 75.8MiB total in: 75.8MiB avg RTT: 1243.033 us
avg out: 19.5MiB/s avg in: 19.5MiB/s total out: 97.9MiB total in: 97.9MiB avg RTT: 1208.526 us
clients total: messages total/failed/bad: sent = 25070/0/0, received = 25065/0/0, bulk sent = 0/0/0, bulk received = 0/0/0, transfers = 25065/0/0; count/min/max/avg/stddev: MPS, sent = 5/4375/5639/5004/461, MPS, received = 5/4375/5636/5003/459, RTT = 25065/137221/8004746/1208479/588752 ns
servers total: messages total/failed/bad: sent = 25076/0/0, received = 25076/0/0, bulk sent = 0/0/0, bulk received = 0/0/0, transfers = 0/0/0; count/min/max/avg/stddev: MPS, sent = 5/4357/5626/5001/460, MPS, received = 5/4365/5628/5002/459, RTT = 0/0/0/0/0 ns
--- bulk test (test message size is 1MiB)
====CORTX-30083====
====CORTX-30083====
avg out: 0B /s avg in: 464MiB/s total out: 465MiB total in: 465MiB avg RTT: 17025.671 us
avg out: 476MiB/s avg in: 475MiB/s total out: 953MiB total in: 952MiB avg RTT: 16703.677 us
avg out: 463MiB/s avg in: 462MiB/s total out: 1.36GiB total in: 1.36GiB avg RTT: 17181.814 us
avg out: 461MiB/s avg in: 461MiB/s total out: 1.81GiB total in: 1.81GiB avg RTT: 17256.008 us
avg out: 467MiB/s avg in: 467MiB/s total out: 2.29GiB total in: 2.29GiB avg RTT: 17040.427 us
clients total: messages total/failed/bad: sent = 2349/0/0, received = 0/0/0, bulk sent = 2342/0/0, bulk received = 2341/0/0, transfers = 2341/0/0; count/min/max/avg/stddev: MPS, sent = 5/437/490/467/22, MPS, received = 5/437/491/467/22, RTT = 2341/11646241/42280479/17040427/3055819 ns
servers total: messages total/failed/bad: sent = 0/0/0, received = 2350/0/0, bulk sent = 2344/0/0, bulk received = 2344/0/0, transfers = 2344/0/0; count/min/max/avg/stddev: MPS, sent = 5/438/490/467/21, MPS, received = 5/437/490/466/23, RTT = 2344/7158514/34212564/15586631/3285192 ns
net: test status: SUCCESS
20.06user 11.23system 0:34.97elapsed 89%CPU (0avgtext+0avgdata 72008maxresident)k
8inputs+197384outputs (12major+134370minor)pagefaults 0swaps