Skip to content

RATIS-1665. RaftLog avoid converting list#708

Merged
szetszwo merged 3 commits intoapache:masterfrom
JoeCqupt:avoid-converting-list
Aug 9, 2022
Merged

RATIS-1665. RaftLog avoid converting list#708
szetszwo merged 3 commits intoapache:masterfrom
JoeCqupt:avoid-converting-list

Conversation

@JoeCqupt
Copy link
Contributor

@JoeCqupt JoeCqupt commented Aug 7, 2022

What changes were proposed in this pull request?

https://github.com/apache/ratis/blob/master/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java#L1280

here a TODO comment, i do not know is it worth to implement it ?

i have finished it no matter how.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-1665

How was this patch tested?

ci build

@JoeCqupt JoeCqupt force-pushed the avoid-converting-list branch from 669d24b to 884b55b Compare August 7, 2022 17:46
@JoeCqupt
Copy link
Contributor Author

JoeCqupt commented Aug 8, 2022

@szetszwo PTAL

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

@JoeCqupt , thanks a lot for working on this. This is very good cleanup. Some the comments inlined.

Also, please use entries.isEmpty() for entries.size() == 0 and !entries.isEmpty() for entries.size() > 0.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

@szetszwo szetszwo merged commit 38a01cd into apache:master Aug 9, 2022
codings-dan pushed a commit that referenced this pull request Aug 16, 2022
symious pushed a commit to symious/ratis that referenced this pull request Mar 6, 2024
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.

2 participants