Skip to content

[MINOR] : Code Cleanup - Misc modules#16067

Closed
sjhajharia wants to merge 1 commit intoapache:trunkfrom
sjhajharia:misc-code-cleanup
Closed

[MINOR] : Code Cleanup - Misc modules#16067
sjhajharia wants to merge 1 commit intoapache:trunkfrom
sjhajharia:misc-code-cleanup

Conversation

@sjhajharia
Copy link
Copy Markdown
Collaborator

What

Code Cleanup in Misc Modules

Changes

Some common changes include

  • Replace the Arrays.asList() with Collections.singletonList() wherever possible
  • Cleaning up some if-else blocks
  • Replacing some instances of String.builder() with String operations

Thanks!

@chia7712
Copy link
Copy Markdown
Member

@sjhajharia Could you please fix the conflicts

@sjhajharia
Copy link
Copy Markdown
Collaborator Author

Thanks @chia7712 !
Just merged the trunk and resolved the conflicts. Hopefully it gets reviewed this time before ti turns stale again! 😅

Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@sjhajharia thanks for this cleanup. overall LGTM

.setSecurityProtocol(SecurityProtocol.PLAINTEXT.id)
.setListener(plaintextListener.value())
.setEndpoints(Collections.singletonList(
new UpdateMetadataRequestData.UpdateMetadataEndpoint()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please revert those unrelated changes to reduce the size of PR?

…ers (apache#16151)

Use REQUEST_TIMEOUT_MS_CONFIG in AdminClient.fenceProducers,
or options.timeoutMs if specified, as transaction timeout.

No transaction will be started with this timeout, but
ReplicaManager.appendRecords uses this value as its timeout.
Use REQUEST_TIMEOUT_MS_CONFIG like a regular producer append
to allow for replication to take place.

Co-Authored-By: Adrian Preston <prestona@uk.ibm.com>
@sjhajharia sjhajharia force-pushed the misc-code-cleanup branch from 4ff2c41 to e9f65e9 Compare June 4, 2024 11:23
@sjhajharia sjhajharia closed this Jun 4, 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.

3 participants