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

make chunkserver error message display all possibilities upon receivi… #169

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

mckurt
Copy link
Contributor

@mckurt mckurt commented Jul 25, 2016

…ng EBADCLUSTERKEY [QFS-187]

@codecov-io
Copy link

codecov-io commented Jul 25, 2016

Current coverage is 75.51% (diff: 100%)

Merging #169 into master will not change coverage

@@             master       #169   diff @@
==========================================
  Files             8          8          
  Lines           245        245          
  Methods          34         34          
  Messages          0          0          
  Branches         31         31          
==========================================
  Hits            185        185          
  Misses           42         42          
  Partials         18         18          

Powered by Codecov. Last update 1b91efe...1580153

@mikeov
Copy link
Contributor

mikeov commented Jul 26, 2016

Presently the full condition is:
cluster key mismatch, or chunk server and meta server file system id mismatch, or chunk server executable's md5 is not in the meta server's list of md5. I think that it would make sense to update the error message in src/cc//common/kfsdecls.cc and then retrieve it and use for the trace message.

Please remove changes to ext directory from this pull request, as those are not relevant to the subject, and must be considered separately, if at all. The other thing, is that all changes under "ext" directory must be tracked separately, and should not be mixed with any other changes, in order to simplify any future updates / merges to this code from the external source repositories.

@mckurt mckurt force-pushed the mckurt/chunkserver_MD5_error_msg branch from 0a4f170 to 2c271df Compare July 26, 2016 23:22
@mckurt
Copy link
Contributor Author

mckurt commented Jul 26, 2016

I reverted the ext directory changes.

Can you elaborate on the error messaging? src/cc//common/kfsdecls.cc only has functions for ServerLocation only.

Also, EBADCLUSTERKEY error message seems to be assigned by the metaserver only in two cases: cluster key mismatch (https://github.com/quantcast/qfs/blob/master/src/cc/meta/LayoutManager.cc#L2367) and md5 mismatch (https://github.com/quantcast/qfs/blob/master/src/cc/meta/LayoutManager.cc#L2377).

What am I missing here?

@mikeov
Copy link
Contributor

mikeov commented Jul 27, 2016

The relevant code apparently only is in multi master branch. I'll change it there.

@mikeov mikeov merged commit 6866bc5 into quantcast:master Jul 27, 2016
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