Airat Arifullin aarifullin
  • Joined on 2023-03-16
aarifullin commented on pull request TrueCloudLab/frostfs-node#203 2023-04-03 22:17:53 +00:00
Add staticcheck

Interesting...

aarifullin commented on pull request TrueCloudLab/frostfs-node#200 2023-04-03 21:59:38 +00:00
Use containersOf in neofs-adm

Just for my curiosity.

aarifullin commented on pull request TrueCloudLab/frostfs-node#188 2023-04-03 13:50:09 +00:00
Refactor local object storage

[Optionally] How about to make named return params?

aarifullin commented on pull request TrueCloudLab/frostfs-node#188 2023-04-03 13:50:09 +00:00
Refactor local object storage

You check prm.handler for nil within the for-loop but it seems it's nowhere set or changed. Why isn't this check placed before for-loop at once?

aarifullin approved TrueCloudLab/frostfs-node#193 2023-04-03 13:07:16 +00:00
Refactor get service
aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-04-03 11:12:02 +00:00
[#116] node: Improve shard/engine construction in tests

All WithXXX & SetXXX methods should be used only for parameters that have default values.

That is still true for engine (testNewEngine(t, WithShardPoolSize(1))). But I don't agree…

aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-31 09:34:25 +00:00
[#116] node: Improve shard/engine construction in tests

My fault. Removed them because of RunEngine(t), then removed this method and got these requires back

aarifullin pushed to feature/116-engine_constructor at aarifullin/frostfs-node 2023-03-31 09:33:38 +00:00
2c8002e6ed [#116] node: Improve shard/engine construction in tests
ed28ce24cd [#168] node: Refactor reputation service
1f929fdd57 [#168] node: Refactor netmap service init
dd572825c7 [#168] node: Refactor object service init
56161d39b4 [#168] node: Refactor container services
Compare 21 commits »
aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-31 09:21:31 +00:00
[#116] node: Improve shard/engine construction in tests

Just a question, why have you decided to go with (e *engine) WithX(t) *engine instead of (e *engine) setX(t)?

Fair point. I changed implementation few times: initially this wasn't method…

aarifullin opened issue TrueCloudLab/frostfs-s3-gw#73 2023-03-30 22:01:13 +00:00
syncTree.sh script incorrecty copies files from frostfs-node repository
aarifullin pushed to feature/116-engine_constructor at aarifullin/frostfs-node 2023-03-30 16:01:01 +00:00
2d2ecf52fe [#116] node: Improve shard/engine construction in tests
aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-30 15:58:02 +00:00
[#116] node: Improve shard/engine construction in tests

It is no longer actual

aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-30 15:57:25 +00:00
[#116] node: Improve shard/engine construction in tests

Removed

aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-30 15:57:10 +00:00
[#116] node: Improve shard/engine construction in tests

I got your point but I wouldn't say that RunEngine is the option. It rather changes the eninge's state and that's why I implemented this with method chaining (without options pattern). I'll get…

aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-30 15:53:30 +00:00
[#116] node: Improve shard/engine construction in tests

Removed it

aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-30 15:53:10 +00:00
[#116] node: Improve shard/engine construction in tests

This rather has supportive meaning. It is needed to keep shardIDs in the same order as they are added to engine. Also this allows to not iterate over engine shards and get shardIDs immediatly

aarifullin pushed to feature/116-engine_constructor at aarifullin/frostfs-node 2023-03-30 15:49:15 +00:00
1b874919e5 [#116] node: Improve shard/engine construction in tests
aarifullin commented on pull request TrueCloudLab/frostfs-node#190 2023-03-30 13:01:10 +00:00
[#116] node: Improve shard/engine construction in tests

I would be glad to take any suggestion about testShards initialization. I tried to use intoduced WithShardsNumFromOpts but after rebase I was obliget to apply this hack with testShards.

aarifullin created pull request TrueCloudLab/frostfs-node#190 2023-03-30 12:55:48 +00:00
[#116] node: Improve shard/engine construction in tests