Skip to content

Conversation

@morningman
Copy link
Contributor

  1. committedVersion(Hash) -> visibleVersion(Hash)
  2. currentVersion(Hash) -> committedVersion(Hash)
  3. add some comment to make the code more readable.
  4. fix a ut bug that editlog may be null in CatalogIdGenerator.

1. committedVersion(Hash) -> visibleVersion(Hash)
2. currentVersion(Hash) -> committedVersion(Hash)
3. add some comment to make the code more readable
LOG.warn("some transaction state need to publish, but no alive backends!!!");
if (allBackends.isEmpty()) {
LOG.warn("some transaction state need to publish, but no backend exists");
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

if allbackends == null ,then nptr throws

Copy link
Contributor Author

Choose a reason for hiding this comment

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

allbackends never returns null

}
db.readLock();
writeLock();
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use write lock

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no changing here, so read lock is enough.

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

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

LGTM

@imay imay merged commit 485db34 into apache:master Nov 21, 2018
GoGoWen pushed a commit to GoGoWen/incubator-doris that referenced this pull request Sep 26, 2025
* [feat][JD] add presto udf
deardeng pushed a commit to deardeng/incubator-doris that referenced this pull request Dec 19, 2025
…s between segmens before skip if tablet is in `NOT_READY` state in flush phase (apache#48056) (apache#48089) (apache#334)

pick apache#48056
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