Diff
stringlengths
10
2k
Message
stringlengths
28
159
* @param assignments * @param assignments * @param tablets
Either log or rethrow this exception.
if (iterators != null) { for (PIteratorSetting is : iterators) { result.add(getIteratorSetting(is)); } pscan.table = scan.getTable(); e.getTableId().toString(), e.getTableId().toString(), result.add(pcomp); public void securityOperations_changeUserAutho...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** snappy codec **/ public static final String COMPRESSION_SNAPPY = "snappy"; * <li>"snappy" - Snappy compression
Immediately return this expression instead of assigning it to the temporary variable "bos2".
import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.client.BatchWriterConfig; import org.apache.accumulo.core.security.tokens.UserPassToken; Connector conn = instance.getConnector(new UserPassToken("root", "")); BatchWriter bw = conn.createBatchWriter("test", new BatchWriterConfig().setMaxMemo...
Immediately return this expression instead of assigning it to the temporary variable "ret".
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
private long entriesRead; private long entriesWritten; private long fileSize; CompactionStats(long er, long ew) { this.setEntriesRead(er); this.setEntriesWritten(ew); } public CompactionStats() {} private void setEntriesRead(long entriesRead) { this.entriesRead = entriesRead; } ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.core.security.tokens.UserPassToken; * @deprecated since 1.5, use {@link UserPassToken} instead
Remove this empty statement.
for (Entry<String,String> optEntry : setting.getOptions().entrySet()) {
Refactor this code to not nest more than 3 if/for/while/switch/try statements.
String tableName = getTableNames(1)[0];
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Return empty string instead.
import java.util.ArrayList; import org.apache.accumulo.core.Constants; tableNames = new ArrayList<String>(tableNames); tableNames.add(Constants.METADATA_TABLE_NAME);
Use "Integer.toString" instead.
import org.apache.accumulo.core.security.tokens.AuthenticationToken;
1 duplicated blocks of code must be removed.
package org.apache.accumulo.examples.wikisearch.iterator; import org.apache.accumulo.examples.wikisearch.parser.EventFields; import org.apache.accumulo.examples.wikisearch.parser.QueryEvaluator;
Rename "table" which hides the field declared at line 107.
import java.nio.CharBuffer; if (properties.containsKey("password")){ // encode() kicks back a C-string, which is not compatible with the old passwording system this.password = new byte[properties.get("password").length]; Constants.UTF8.encode(CharBuffer.wrap(properties.get("password"))).get(this.p...
Override the "equals" method in this class.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
@Test(timeout=60*1000)
Either log or rethrow this exception.
@Override public IteratorOptions describeOptions() { IteratorOptions io = super.describeOptions(); io.setName("sum"); io.setDescription("SummingCombiner interprets Values as Longs and adds them together. A variety of encodings (variable length, fixed length, or string) are available"); return io...
Move this variable to comply with Java Code Conventions.
import java.util.NoSuchElementException;
Use "Integer.toString" instead.
return "prints how much space is used by files referenced by a table. When multiple tables are specified it prints how much space is used by files shared between tables, if any.";
Replace all tab characters in this file by sequences of white-spaces.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
if (SecurityHelper.getSysPerm(state, username, SystemPermission.DROP_TABLE) || SecurityHelper.getTabPerm(state, username, TablePermission.DROP_TABLE)) hasPermission = true; if (hasPermission) throw new AccumuloException("Got a security exception when I should have had permission.", ae); ...
Remove this call to "exit" or ensure it is really required.
return "clones a table"; excludePropsOption = new Option("e", "exclude", true, "exclude properties that should not be copied from source table. Expects <prop>{,<prop>}"); }
Replace all tab characters in this file by sequences of white-spaces.
/** * Reads all data between two rows; all data after a given row; or all data in a table, depending on the number of arguments given. */
Replace this use of System.out or System.err by a logger.
AccumuloOutputFormat.setOutputInfo(job.getConfiguration(), args[0], args[1].getBytes(), true, args[5]); AccumuloOutputFormat.setZooKeeperInstance(job.getConfiguration(), args[3], args[4]);
This block of commented-out lines of code should be removed.
if (log.isTraceEnabled()) log.trace(event); if (log.isTraceEnabled()) log.trace("Zoo keeper connection disconnected, clearing cache"); if (log.isTraceEnabled()) log.trace("Zoo keeper connection expired, clearing cache"); if (sleepTime < 100...
Remove this call to "exit" or ensure it is really required.
if (m.size() > 0) bw.addMutation(m);
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.core.client.IteratorSetting.Column; protected static final String COLUMNS_OPTION = "columns"; "<col fam>[:<col qual>]{,<col fam>[:<col qual>]} escape non-alphanum chars using %<hex>."), * a list of columns to encode as the value for the combiner column configuration pu...
Remove the literal "true" boolean value.
import java.util.EnumSet; import org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope; import org.apache.accumulo.minicluster.MiniAccumuloConfig; import org.junit.Test; public class ConcurrencyIT extends MacTest { SlowIterator.setSleepTime(slow, time); public void configure(MiniAccumuloConfig cfg) { ...
Either log or rethrow this exception.
public void update(String writer, Map<ByteBuffer,List<ColumnUpdate>> cells) throws org.apache.thrift.TException; public void update(String writer, Map<ByteBuffer,List<ColumnUpdate>> cells) throws org.apache.thrift.TException super(client, protocolFactory, transport, resultHandler, true); public vo...
Rename this class to remove "Exception" or correct its inheritance.
import org.apache.accumulo.core.metadata.MetadataTable; import org.apache.accumulo.core.metadata.schema.MetadataSchema; import org.apache.accumulo.core.metadata.schema.MetadataSchema.TabletsSection; MetadataTableUtil.updateTabletPrevEndRow(ke, CredentialHelper.create(opts.principal, opts.getToken(), opts.instan...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
private static final Map<String,TableConfiguration> tableInstances = new HashMap<String,TableConfiguration>(1);
Move this variable to comply with Java Code Conventions.
private static class MyMapper extends Mapper<Key,Value,Text,NullWritable> { Text k = new Text(); public void map(Key key, Value value, Context context) throws IOException, InterruptedException { context.write(key.getRow(k), NullWritable.get()); } private static class MyReducer extends Reducer<Tex...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.core.client.mock; import java.util.Map.Entry; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.Value; class MockEntry implements Entry<Key, Value> { Key key; Value value; public MockEntry(Key key, Value value) { this.key = key; ...
Return empty string instead.
* * * * * *
Replace all tab characters in this file by sequences of white-spaces.
package org.apache.accumulo.examples.wikisearch.ingest; import java.util.LinkedHashMap; import java.util.Map; public class LRUOutputCombiner<Key,Value> extends LinkedHashMap<Key,Value> { private static final long serialVersionUID = 1L; public static abstract class Fold <Value> { public abstract Value fo...
Introduce a new variable instead of reusing the parameter "value".
import org.apache.accumulo.core.metadata.MetadataTable; import org.apache.accumulo.core.metadata.schema.MetadataSchema.TabletsSection; import org.apache.accumulo.core.metadata.schema.MetadataSchema.TabletsSection.DataFileColumnFamily; TabletsSection.ServerColumnFamily.DIRECTORY_COLUMN.put(mut, new Value(dir.get...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
Connector c = mockInstance.getConnector("root", new byte[] {}); AccumuloInputFormat.setConnectorInfo(job, user, pass.getBytes(Charset.forName("UTF-8")));
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
public class MapReduceIT extends SimpleMacIT { Process hash = exec(RowHash.class, "-i", c.getInstance().getInstanceName(), "-z", c.getInstance().getZooKeepers(),
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (count != 1) throw new Exception("Did not see expected # entries " + count); if (count != 1) throw new Exception("Did not see expected # entries " + count);
Remove this call to "exit" or ensure it is really required.
package org.apache.accumulo.test.randomwalk.sequential; import org.apache.accumulo.test.randomwalk.State; import org.apache.accumulo.test.randomwalk.Test;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
CacheEntry ce = cache.getBlock(block.blockName); assertTrue(ce != null); assertEquals(ce.getBuffer().length, block.buf.length); CacheEntry ce = cache.getBlock(block.blockName); assertTrue(ce != null); assertEquals(ce.getBuffer().length, block.buf.length); assertEquals(cache.get...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Remove this unused private "appendProp" method.
return new ByteArrayInputStream(sb.toString().getBytes());
Remove this unused method parameter "ex".
AccumuloInputFormat.setConnectorInfo(job, args[0], new PasswordToken(args[1])); AccumuloOutputFormat.setConnectorInfo(job, args[0], new PasswordToken(args[1]));
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.security.tokens.PasswordToken;
1 duplicated blocks of code must be removed.
import org.apache.accumulo.core.security.CredentialHelper; import org.apache.accumulo.core.security.thrift.Credential; String principal = getPrincipal(implementingClass, conf); String tokenClass = getTokenClass(implementingClass, conf); byte[] token = getToken(implementingClass, conf); return TabletLoca...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
AccumuloVFSClassLoader.getContextManager().setContextConfig(new ContextManager.DefaultContextsConfig(new Iterable<Entry<String,String>>() { public Iterator<Entry<String,String>> iterator() { return getSystemConfiguration().iterator(); }));
Either log or rethrow this exception.
shellState.getReader().println(line);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public static final int DATA_VERSION = 4; public static final int PREV_DATA_VERSION = 3;
Remove this call to "exit" or ensure it is really required.
if (tokens.length > 1) { throw new ThriftTableOperationException(tableId, null, TableOperation.COMPACT, TableOperationExceptionType.OTHER, "Another compaction with iterators is running"); }
Move this constructor to comply with Java Code Conventions.
package org.apache.accumulo.core.util; import java.util.Collection; public final class StringUtil { public static String join(Collection<String> strings, String sep) { int last = 0; StringBuilder ret = new StringBuilder(); for (String s : strings) { ret.append(s); ...
Return empty string instead.
import org.apache.accumulo.core.security.tokens.UserPassToken; Connector conn = mi.getConnector(new UserPassToken("", "")); Connector conn = mi.getConnector(new UserPassToken("", "")); Connector conn = mi.getConnector(new UserPassToken("", "")); Connector conn = mi.getConnector(new UserPassToken("", "")...
Either log or rethrow this exception.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.security.tokens.AccumuloToken; import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper; // There are places where we need information from the token. But we don't want to convert to a thrift object for every call. // So we'll keep both on hand and pass them around. ...
Immediately return this expression instead of assigning it to the temporary variable "ret".
import org.apache.accumulo.examples.wikisearch.ingest.WikipediaMapper;
2 duplicated blocks of code must be removed.
if (source.hasNext()) currentRow = source.peek().getKey().getRow(); if (disabled) throw new IllegalStateException("SingleRowIter no longer valid"); if (disabled) throw new IllegalStateException("SingleRowIter no longer valid"); if (currentRow == null) throw new No...
Remove this call to "exit" or ensure it is really required.
if (cl.hasOption(rowOpt.getOpt())) row = new Text(cl.getOptionValue(rowOpt.getOpt())); if (cl.hasOption(maxOpt.getOpt())) max = Integer.parseInt(cl.getOptionValue(maxOpt.getOpt())); if (!found) return;
Remove this call to "exit" or ensure it is really required.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.server.security.SystemCredentials; MetadataTableUtil.deleteTable(tableId, refCount != 0, SystemCredentials.get().getAsThrift(), null); AuditedSecurityOperation.getInstance().deleteTable(SystemCredentials.get().getAsThrift(), tableId);
Move this constructor to comply with Java Code Conventions.
t.attachIterator("table", new IteratorSetting(10, "someName", "foo.bar", empty), EnumSet.of(IteratorScope.scan)); t.attachIterator("table", setting, EnumSet.of(IteratorScope.majc)); t.attachIterator("table", setting, EnumSet.of(IteratorScope.scan)); t.attachIterator("table", setting, EnumSet.of(Iterator...
Remove this unused method parameter "table".
Mutation m = new Mutation(new Text(cl.getArgs()[0].getBytes(Shell.CHARSET))); Text colf = new Text(cl.getArgs()[1].getBytes(Shell.CHARSET)); Text colq = new Text(cl.getArgs()[2].getBytes(Shell.CHARSET)); m.putDelete(colf, colq, le, Long.parseLong(cl.getOptionValue(timestampOpt.getOpt()))); m...
Either log or rethrow this exception.
import org.apache.accumulo.server.cli.ClientOpts; import com.beust.jcommander.Parameter; static public class Opts extends ClientOpts { @Parameter(names={"-r", "--row"}, required=true, description="find tablets that contain this row") String row = null; @Parameter(names="--tableId", required=true, desc...
Remove this call to "exit" or ensure it is really required.
package org.apache.accumulo.examples.simple.mapreduce.bulk;
2 duplicated blocks of code must be removed.
import org.apache.accumulo.proxy.thrift.PTimeType; tpc.proxy().tableOperations_create(userpass, testtable, true, PTimeType.MILLIS);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
shellState.getConnector().securityOperations().changeUserAuthorizations(user, ScanCommand.parseAuthorizations(scanOpts));
1 duplicated blocks of code must be removed.
private boolean scanColumns; private HashSet<ByteSequence> columnFamilies; private HashMap<ByteSequence,HashSet<ByteSequence>> columnsQualifiers; public ColumnQualifierFilter(HashSet<Column> columns) { this.init(columns); } public boolean accept(Key key, Value v) { if (!scanColumns) return tru...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (!tests.job.isSuccessful()) System.exit(1);
Remove this call to "exit" or ensure it is really required.
import java.nio.ByteBuffer; import org.apache.accumulo.core.security.thrift.Credentials; private Credentials token = new Credentials("", ByteBuffer.wrap("".getBytes()), ""); protected void setToken(Credentials token) { protected Credentials getToken() { return getInstance().getConnector(token.getPrincipal(), ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.iterators.user.RegExFilter; Configuration conf = attempt.getConfiguration(); Instance instance = getInstance(conf); String user = getUsername(conf); byte[] password = getPassword(conf); Authorizations authorizations = getAuthorizations(conf); log.deb...
Replace all tab characters in this file by sequences of white-spaces.
while (getSource().hasTop() && !getSource().getTopKey().isDeleted() && (negate == accept(getSource().getTopKey(), getSource().getTopValue()))) {
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* A simple map reduce job that computes the unique column families and column qualifiers in a table. This example shows one way to run against an offline * table. public static class UMapper extends Mapper<Key,Value,Text,Text> { @Override @Override @Parameter(names = "--output", description = "output di...
Return empty string instead.
import org.apache.accumulo.examples.wikisearch.normalizer.LcNoDiacriticsNormalizer; import org.apache.accumulo.examples.wikisearch.normalizer.Normalizer; import org.apache.accumulo.examples.wikisearch.protobuf.Uid; import org.apache.accumulo.examples.wikisearch.util.TextUtil;
2 duplicated blocks of code must be removed.
private long next = 0; private long maxAllocated = 0; private String nextNamePath; private Random rand; private UniqueNameAllocator() { nextNamePath = Constants.ZROOT + "/" + HdfsZooInstance.getInstance().getInstanceID() + Constants.ZNEXT_FILE; rand = new Random(); } public synchronized Stri...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.cli.BatchWriterOpts; import org.apache.accumulo.core.cli.ScannerOpts; import org.apache.accumulo.server.cli.ClientOpts; import com.beust.jcommander.Parameter; static class Opts extends ClientOpts { @Parameter(names="--readonly", description="read only") boolean readonly = fals...
Remove this unused private "appendProp" method.
@Deprecated
Return empty string instead.
import org.apache.accumulo.core.cli.ClientOnRequiredTable; ClientOnRequiredTable opts = new ClientOnRequiredTable(); opts.parseArgs(this.getClass().getName(), args); opts.setAccumuloConfigs(job); Text table = new Text(opts.tableName); rw.write(table, m); // repeat until done
Remove this call to "exit" or ensure it is really required.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import java.util.ArrayList; import java.util.List; import org.apache.accumulo.core.cli.ClientOnRequiredTable; import com.beust.jcommander.Parameter; static class Opts extends ClientOnRequiredTable { @Parameter(names="--partitions", required=true, description="the number of shards to create") int partitions; ...
Remove this call to "exit" or ensure it is really required.
if (!first) sb.append(", "); if (!first) sb.append(", "); if (!first) sb.append(", ");
Remove this call to "exit" or ensure it is really required.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
Collection<Text> splits = getConnector().tableOperations().listSplits("bss"); splits = getConnector().tableOperations().listSplits("bss"); splits = getConnector().tableOperations().listSplits("bss");
Either log or rethrow this exception.
import org.apache.accumulo.core.security.tokens.PasswordToken; import org.apache.accumulo.core.security.tokens.SecurityToken;
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.core.security.thrift.SecurityErrorCode;
1 duplicated blocks of code must be removed.
shellState.getReader().flush(); shellState.getReader().print(String.format("[%s] %s%n", delete ? "DELETED" : "SKIPPED", entryStr));
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
checkSplits(REG_TABLE_NAME, NUM_PRE_SPLITS/2, NUM_PRE_SPLITS * 4);
Remove this unused method parameter "ex".
import org.apache.accumulo.core.client.BatchWriterConfig; writer = conn.createBatchWriter(tableName, new BatchWriterConfig().setMaxMemory(9000l).setMaxWriteThreads(1));
Remove this unused method parameter "e".
import org.apache.accumulo.core.util.ByteArraySet; @Parameter(names = {"-C", "--createtable"}, description = "create table before doing anything") @Parameter(names = {"-D", "--deletetable"}, description = "delete table when finished") @Parameter(names = {"-c", "--create"}, description = "create entries befo...
Return empty string instead.
import org.apache.accumulo.core.iterators.user.RowDeletingIterator;
Remove the literal "false" boolean value.
public AccumuloServerException(final String server, final TApplicationException tae) { private void setServer(final String server) {
Move this constructor to comply with Java Code Conventions.
import java.nio.charset.Charset; private static final Charset utf8 = Charset.forName("UTF8"); zoo.putPersistentData(path, "forced down".getBytes(utf8), NodeExistsPolicy.OVERWRITE);
Move this variable to comply with Java Code Conventions.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
package org.apache.accumulo.server.test.randomwalk; import java.util.Properties; import org.apache.log4j.Logger; /** * Represents a point in graph of RandomFramework */ public abstract class Node { protected final Logger log = Logger.getLogger(this.getClass()); /** * Visits node * @param state Random wal...
Return empty string instead.
import org.apache.accumulo.trace.instrument.Span; import org.apache.accumulo.trace.thrift.RemoteSpan; import org.apache.accumulo.trace.thrift.SpanReceiver.Iface; import org.apache.accumulo.trace.thrift.SpanReceiver.Processor;
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
import org.apache.accumulo.core.iterators.system.ColumnFamilySkippingIterator; ColumnFamilySkippingIterator cfsi = new ColumnFamilySkippingIterator(ski1); cfsi.seek(new Range("r1"), columns, true); assertFalse(cfsi.hasTop());
Use "Integer.toString" instead.
throw new IllegalArgumentException("invalid option " + RADIX_OPTION + ":" + options.get(RADIX_OPTION));
Return empty string instead.
if (cachedHdfsZooInstance == null) cachedHdfsZooInstance = new HdfsZooInstance(); if (instanceId == null) _getInstanceID(); if (conf == null) conf = ServerConfiguration.getSystemConfiguration();
Remove this call to "exit" or ensure it is really required.