Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load: convert to insert tablet on region replica set changes #14717

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

DanielWang2035
Copy link
Collaborator

No description provided.

@DanielWang2035 DanielWang2035 changed the title Load: clean half-written TsFiles when retrying first phase Load: convert to insert tablet on region replica set changes Jan 17, 2025
@SteveYurongSu SteveYurongSu self-assigned this Jan 17, 2025
@@ -273,6 +272,7 @@ public void start() {
final long startTime = System.nanoTime();
try {
// if failed to load some TsFiles, then try to convert the TsFiles to Tablets
LOGGER.info("Load TsFile failed, will try to convert to tablets and insert.");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

which tsfile

String.format(
"No load TsFile uuid %s recorded for execute load command %s.",
uuid, loadCommand));
if (!loadTsFileManager.loadAll(uuid, isGeneratedByPipe, progressIndex)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

revert

final long startTime = System.nanoTime();
try {
// if failed to load some TsFiles, then try to convert the TsFiles to Tablets
LOGGER.info(
"Load TsFile failed, will try to convert to tablets and insert. Failed TsFiles: [{}]",
Copy link
Member

@SteveYurongSu SteveYurongSu Feb 12, 2025

Choose a reason for hiding this comment

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

Suggested change
"Load TsFile failed, will try to convert to tablets and insert. Failed TsFiles: [{}]",
"Load TsFile(s) failed, will try to convert to tablets and insert. Failed TsFiles: {}",

pieceNode.getTsFile(),
dataRegionId,
e);
status.setCode(TSStatusCode.INTERNAL_SERVER_ERROR.getStatusCode());
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
status.setCode(TSStatusCode.INTERNAL_SERVER_ERROR.getStatusCode());
status.setCode(TSStatusCode.LOAD_FILE_ERROR.getStatusCode());

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