Skip to content

KAFKA-1901: follow-up on KAFKA-1901; Added error handling.#209

Closed
omkreddy wants to merge 2 commits intoapache:trunkfrom
omkreddy:KAFKA-1901
Closed

KAFKA-1901: follow-up on KAFKA-1901; Added error handling.#209
omkreddy wants to merge 2 commits intoapache:trunkfrom
omkreddy:KAFKA-1901

Conversation

@omkreddy
Copy link
Copy Markdown
Contributor

@guozhangwang added .git/refs/heads/ file existence check.

@guozhangwang
Copy link
Copy Markdown
Contributor

@omkreddy If there is no file exist in .git/refs/heads, could we search in .git/packed-refs?

@omkreddy
Copy link
Copy Markdown
Contributor Author

@guozhangwang Yes, we can implement. But there may be other git scenarios, we may get similar exception. Current patch captures git commitID, if we are building on trunk/branch/tag (these common ways of building, for other scenarios it will just returns "unknown" commitID. I feel current functionality is sufficient for general build scenarios. Let me know your thoughts.

Comment thread build.gradle Outdated
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.

Are we supposed to assign a value to commitId in the else or am I missing something? Or maybe we don't need the else at all?

@omkreddy
Copy link
Copy Markdown
Contributor Author

@ijuma thank for the review. I just removed unnecessary else block.

@asfbot
Copy link
Copy Markdown

asfbot commented Sep 22, 2015

kafka-trunk-git-pr #480 FAILURE
Looks like there's a problem with this pull request

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jan 6, 2016

@guozhangwang Do you want to check this PR again?

@guozhangwang
Copy link
Copy Markdown
Contributor

LGTM. Merging to trunk.

@asfgit asfgit closed this in 25fa39d Jan 6, 2016
gardnervickers pushed a commit to gardnervickers/kafka-1 that referenced this pull request Jul 3, 2019
omkreddy added a commit to omkreddy/kafka that referenced this pull request Jul 8, 2019
jsancio pushed a commit to jsancio/kafka that referenced this pull request Aug 6, 2019
udaynpusa pushed a commit to mapr/kafka that referenced this pull request Jan 30, 2024
davide-armand pushed a commit to aiven/kafka that referenced this pull request Dec 1, 2025
Adds AGPL license file.
Adds Apache license file on different file name.
Adds License file explaining the licensing of the project.

Signed-off-by: Josep Prat <josep.prat@aiven.io>
jeqo pushed a commit to aiven/kafka that referenced this pull request Jan 16, 2026
Adds AGPL license file.
Adds Apache license file on different file name.
Adds License file explaining the licensing of the project.

Signed-off-by: Josep Prat <josep.prat@aiven.io>
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