GiraffaFS / giraffa

Giraffa FileSystem (Slack: giraffa-fs.slack.com)
https://giraffa.ci.cloudbees.com
Apache License 2.0
17 stars 6 forks source link

Introduce GiraffaConfiguration.getGiraffaTableName() #156

Closed shvachko closed 9 years ago

shvachko commented 9 years ago

Giraffa table name is used in many places. Let's unify this by introducing:

public static String GiraffaConfiguration.getGiraffaTableName(Configuration conf);
milandesai commented 9 years ago

I have given this issue to Wei-Lin. He is not in the system yet so I am temporarily assigning it to me to avoid confusion.

shvachko commented 9 years ago

The patch looks good. Few minor things:

  1. Use import static GiraffaConfiguration.getGiraffaTableName. Then you can call getGiraffaTableName() instaed of GiraffaConfiguration.getGiraffaTableName().
  2. Fix long lines (should be <= 80 symbols)
weilintsaiWand commented 9 years ago

Revision done at 3rd commit. Thanks.

shvachko commented 9 years ago

I was not precise about (2), which meant not to introduce new long lines, while the long lines unrelated to the patch should remain as is. We can file a different issue to reformat all long lines. But this one should stick to its goal, that is introduce getGiraffaTableName(). So let's go over one more iteration here. Minimizing code changes will be important, when we will have to support multiple versions, and changes should be promoted between them.

weilintsaiWand commented 9 years ago

Thanks Konstantin. The revised code is ready at 4th commit

shvachko commented 9 years ago

Found two more places where we can use getGiraffaTableName(): htable.jsp and index.jsp. See under resources/hbase-webapps/giraffa

weilintsaiWand commented 9 years ago

Updated at 5th commit. Thanks.

shvachko commented 9 years ago

Now you can remove import GiraffaConfiguration from the two jsp files. Looks good otherwise.

shvachko commented 9 years ago

Also Wei-Lin you need to install the pre-commit hook. We use git commits to generate release notes, so the format of log messages is important.

shvachko commented 9 years ago

I removed the imports of GiraffaConfiguration, and committed. Congratulations Wei-Lin.