Skip to content

Comments

ARTEMIS-3105 large message file not closed on backup side#3435

Merged
asfgit merged 1 commit intoapache:masterfrom
CNNJYB:dev-largemessagefile-not-close-on-backup
Feb 7, 2021
Merged

ARTEMIS-3105 large message file not closed on backup side#3435
asfgit merged 1 commit intoapache:masterfrom
CNNJYB:dev-largemessagefile-not-close-on-backup

Conversation

@CNNJYB
Copy link

@CNNJYB CNNJYB commented Feb 6, 2021

We send a large number of large messages to the cluster, on the backup side, we found error message of too many open files.
We think that large message is released on live side but not released on the backup side, when receive the last chunk.

@CNNJYB CNNJYB force-pushed the dev-largemessagefile-not-close-on-backup branch from f404c77 to 69a0755 Compare February 6, 2021 11:49
Copy link
Contributor

@franz1981 franz1981 left a comment

Choose a reason for hiding this comment

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

LGTM in general, just thinking how to release it given that it introduce a new encoding/decoding form for the ReplicationLargeMessageEndMessage

if (buffer.readableBytes() >= DataConstants.SIZE_LONG) {
pendingRecordId = buffer.readLong();
}
isDelete = buffer.readBoolean();
Copy link
Contributor

Choose a reason for hiding this comment

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

can you check hasRemaining() on the buffer here, and return false by default?

We intend to keep live and replica the same version, but users do weird things... just in case please?

@clebertsuconic
Copy link
Contributor

LGTM.. only one small request on verifying the buffer having available bytes.. other than that I will run the whole test suite on Monday and if it's good I will merge it (after your amend please?)

@CNNJYB CNNJYB force-pushed the dev-largemessagefile-not-close-on-backup branch from 69a0755 to 9c5ec1b Compare February 7, 2021 02:42
@asfgit asfgit closed this in 8862c11 Feb 7, 2021
@asfgit asfgit merged commit 8862c11 into apache:master Feb 7, 2021
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.

4 participants