conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
=======
>>>>>>>
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import javax.validation.constraints.NotNull; |
<<<<<<<
import io.atomix.copycat.server.Snapshottable;
import io.atomix.copycat.server.session.SessionListener;
=======
>>>>>>>
import io.atomix.copycat.server.Snapshottable; |
<<<<<<<
* Constants for specifying Raft {@link Command} consistency levels.
* <p>
* This enum provides identifiers for configuring consistency levels for {@link Command queries}
* submitted to a Raft cluster.
* <p>
* Consistency levels are used to dictate how queries are routed through the Raft cluste... |
<<<<<<<
=======
import io.atomix.copycat.server.CopycatServer;
import io.atomix.catalyst.transport.Address;
import io.atomix.catalyst.util.Assert;
import io.atomix.catalyst.util.concurrent.ComposableFuture;
import io.atomix.catalyst.util.concurrent.Scheduled;
>>>>>>> |
<<<<<<<
encoder = GTSHelper.parse(lastencoder, line, extraLabels, now, this.maxsize, hadAttributes);
=======
encoder = GTSHelper.parse(lastencoder, line, extraLabels, now, this.handler.maxValueSize, hadAttributes, maxpast, maxfuture, ignoredCount);
>>>>>>>
encoder = GT... |
<<<<<<<
* Comma separated list of shards to forward, each shard being specified as MODULUS:REMAINDER
*/
public static final String DATALOG_FORWARDER_SHARDS = "datalog.forwarder.shards";
/**
* Number of bits to right shift the shard key. If this is >= 24, then only the class id will be
* considered fo... |
<<<<<<<
final boolean activityTracking;
final boolean updateActivity;
private final boolean metaActivity;
final long activityWindow;
=======
public final boolean parseAttributes;
>>>>>>>
final boolean activityTracking;
final boolean updateActivity;
private final boolean metaActivity;
final lo... |
<<<<<<<
DirectoryRequest request = new DirectoryRequest();
request.setClassSelectors(clsSels);
request.setLabelsSelectors(lblsSels);
if (null != activeAfter) {
request.setActiveAfter(activeAfter);
}
if (null != quietAfter) {
request.se... |
<<<<<<<
* Length of the activity window in ms. If this parameter is set then GTS activity will
* be monitored according to the configured activity events.
*/
public static final String INGRESS_ACTIVITY_WINDOW = "ingress.activity.window";
/**
* Set this to true to take into account updates in the GTS ... |
<<<<<<<
offeringUpdateTasks.add(new OfferingCacheUpdateTask(offering,
getOfferingObservationConstellationInfo().get(offering.getIdentifier())));
=======
offeringUpdateTasks.add(new OfferingCacheUpdateTask(offering.getIdentifier(),
getOffe... |
<<<<<<<
private final boolean updateActivity;
private final boolean metaActivity;
=======
private final boolean parseAttributes;
>>>>>>>
private final boolean updateActivity;
private final boolean metaActivity;
private final boolean parseAttributes; |
<<<<<<<
@SuppressWarnings("unchecked")
=======
private void checkAttributes(final Element element) {
for (String tagInfo : usedTagAttributes) {
final String[] parts = (tagInfo + "//").split("/");
if (element.getName() != null && parts[0].equalsIgnoreCase(element.getName())) {
... |
<<<<<<<
* An HTTP redirect has been triggered; issue one if we have a url or if the current url has been
* modified.
=======
* An HTTP redirect has been triggered; issue one if we
* have a URL or if the current URL has been modifi... |
<<<<<<<
=======
import org.locationtech.jts.geom.Envelope;
import org.locationtech.jts.geom.Geometry;
import org.opengis.geometry.MismatchedDimensionException;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.crs.CRSAuthorityFactory;
import org.opengis.referencing.crs.CoordinateReferenc... |
<<<<<<<
private static final Logger LOG = LoggerFactory.getLogger(Constants.LOGGER_TYPE);
// private access to the reinitializer of ClientContext
private static ClientContext.ReinitializerAccesser sReinitializerAccesser =
new ClientContext.ReinitializerAccesser() {
@Override
public void rec... |
<<<<<<<
import tachyon.thrift.FileInfo;
=======
import tachyon.thrift.InvalidPathException;
>>>>>>>
import tachyon.thrift.FileInfo;
import tachyon.thrift.InvalidPathException; |
<<<<<<<
public final class TachyonBlockStore implements Closeable {
private static final Logger LOG = LoggerFactory.getLogger(Constants.LOGGER_TYPE);
=======
public final class TachyonBlockStore {
>>>>>>>
public final class TachyonBlockStore {
private static final Logger LOG = LoggerFactory.getLogger(Constants.L... |
<<<<<<<
import tachyon.master.file.options.CompleteFileOptions;
=======
import tachyon.master.file.meta.TTLBucket;
>>>>>>>
import tachyon.master.file.meta.TTLBucket;
import tachyon.master.file.options.CompleteFileOptions;
<<<<<<<
mBlockMaster.commitBlock(mWorkerId, Constants.KB, 2, blockId, Constants.KB);
m... |
<<<<<<<
import alluxio.client.block.BlockWorkerClient;
=======
import alluxio.client.block.BlockStoreContext;
>>>>>>>
<<<<<<<
@PrepareForTest({FileSystemContext.class, FileSystemMasterClient.class,
AlluxioBlockStore.class, UnderFileSystem.class, BlockWorkerClient.class})
=======
@PrepareForTest({FileSystemCon... |
<<<<<<<
// in standby mode. Start the journal tailer thread.
mStandbyJournalTailer = new JournalTailerThread(this, mJournal);
=======
// This master is in standby mode. Start the journal tailer thread. Since the master is in
// standby mode, its RPC server is NOT serving. Therefore, the only t... |
<<<<<<<
import tachyon.master.file.options.SetAclOptions;
import tachyon.master.file.options.SetAttributeOptions;
=======
>>>>>>>
import tachyon.master.file.options.SetAttributeOptions; |
<<<<<<<
mUnderFsFile = CommonUtils.concat(TFS.createAndGetUserUnderfsTempFolder(), FILE.FID);
UnderFileSystem underfsClient = UnderFileSystem.get(mUnderFsFile);
=======
mUnderFsFile = TFS.createAndGetUserUnderfsTempFolder() + Constants.PATH_SEPARATOR + FILE.FID;
UnderFileSystem underfsClient =... |
<<<<<<<
private boolean mIsStandby = true;
private final TachyonConf mTachyonConf;
=======
private volatile boolean mIsStandby = true;
>>>>>>>
private final TachyonConf mTachyonConf;
private volatile boolean mIsStandby = true; |
<<<<<<<
MasterRegistry registry = new MasterRegistry();
JournalFactory journalFactory = new JournalFactory.ReadWrite(masterJournal);
BlockMaster blockMaster = new BlockMaster(registry, journalFactory);
FileSystemMaster fsMaster = new FileSystemMaster(registry, journalFactory);
=======
JournalFacto... |
<<<<<<<
public boolean hasFlowExtension(SwesExtensions extensions) {
=======
private AqdHelper() {
}
public boolean hasFlowExtension(Extensions extensions) {
>>>>>>>
public boolean hasFlowExtension(Extensions extensions) { |
<<<<<<<
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
struct.mData = new ArrayList<Long>(_list24.size);
long _elem25;
for (int _i26 = 0; _i26 < _list24.size; ++_i26)
=======
org.apache.thrift.protocol.TList _list48 = i... |
<<<<<<<
*
* @param registry the master registry
* @param journalFactory a factory for creating the journal
=======
* @param masters a list of other masters created
* @param factory a factory for creating the journal
>>>>>>>
*
* @param registry the master registry
* @param factory a factory fo... |
<<<<<<<
*
* @param path
* the file to be created
* @throws IOException
=======
* @param path the file to be created
* @throws IOException
>>>>>>>
*
* @throws IOException |
<<<<<<<
if (msg.getCancel()) {
if (mRequest != null) {
try (LockResource lr = new LockResource(mLock)) {
mRequest.mCancelled = mPosToQueue;
if (remainingToWrite() <= 0) {
// This can only happen when everything before mPosToQueue has been sent to the client.
... |
<<<<<<<
LoadMetadataOptions.defaults().setCreateAncestors(true)
.setLoadDirectChildren(loadDirectChildren);
Inode<?> inode;
=======
LoadMetadataOptions.defaults().setCreateAncestors(true).setLoadDirectChildren(
listStatusOptions.getLoadMetadataType() != LoadMetada... |
<<<<<<<
public String resetTachyonFileHierarchy() throws IOException {
=======
public static Comparator<File> createFilePathComparator() {
return new Comparator<File>() {
public int compare(File file1, File file2) {
// ascending order
return file1.getAbsoluteFile().compareTo(file2.getAbs... |
<<<<<<<
super(journalFactory.get(Constants.BLOCK_MASTER_NAME), clock, executorServiceFactory);
registry.add(BlockMaster.class, this);
=======
super(journalFactory.create(Constants.BLOCK_MASTER_NAME), clock, executorServiceFactory);
>>>>>>>
super(journalFactory.create(Constants.BLOCK_MASTER_NAME), clo... |
<<<<<<<
entry.getBoolean("completed"),
entry.getBoolean("cacheable"),
entry.get("blocks", new TypeReference<List<Long>>() {}));
=======
entry.getBoolean("isComplete"),
entry.getBoolean("isCacheable"),
entry.getString("ufsP... |
<<<<<<<
mManagerView = Preconditions.checkNotNull(view);
return allocateBlock(userId, blockSize, location);
=======
mManagerView = view;
return allocateBlock(sessionId, blockSize, location);
>>>>>>>
mManagerView = Preconditions.checkNotNull(view);
return allocateBlock(sessionId, blockSize, lo... |
<<<<<<<
import org.n52.shetland.ogc.ows.exception.CodedException;
=======
import org.n52.iceland.i18n.I18NDAORepository;
>>>>>>>
import org.n52.iceland.i18n.I18NDAORepository;
import org.n52.shetland.ogc.ows.exception.CodedException;
<<<<<<<
import org.n52.shetland.util.EReportingSetting;
=======
import org.n52.s... |
<<<<<<<
private static final org.apache.thrift.protocol.TField BLOCK_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("blockIds", org.apache.thrift.protocol.TType.LIST, (short)12);
private static final org.apache.thrift.protocol.TField IN_MEMORY_PERCENTAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("i... |
<<<<<<<
private final ReadType mReadType;
private final WriteType mWriteType;
=======
>>>>>>>
private final ReadType mReadType;
private final WriteType mWriteType;
<<<<<<<
mReadType = readType;
mWriteType = writeType;
=======
>>>>>>>
mReadType = readType;
mWriteType = writeType; |
<<<<<<<
try {
if (sosRequest.isSetResultModel()) {
if (Strings.isNullOrEmpty(sosRequest.getResultModel())) {
throw new MissingParameterValueException(SosConstants.GetObservationParams.resultType);
} else {
if (!CodingRe... |
<<<<<<<
import alluxio.client.file.URIStatus;
=======
import alluxio.Constants;
import alluxio.client.file.FileInStream;
import alluxio.client.file.FileSystem;
import alluxio.client.file.URIStatus;
>>>>>>>
import alluxio.Constants;
import alluxio.client.file.FileInStream;
import alluxio.client.file.FileSystem;
impor... |
<<<<<<<
mCloser.register(new MasterClient(mMasterAddress, mExecutorService, mTachyonConf));
mWorkerClient = mCloser.register(new WorkerClient(mMasterClient, mExecutorService,
mTachyonConf));
mUserFailedSpaceRequestLimits =
mTachyonConf.getInt(Constants.USER_FAILED_SPACE_REQUEST_LIMITS, ... |
<<<<<<<
import java.net.SocketAddress;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
=======
import java.net.InetSocketAddress;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
>>>>>>>
import java.net.InetSocketAddress;
import j... |
<<<<<<<
public int report(String argv[])
throws FileDoesNotExistException, InvalidPathException, TException {
if (argv.length != 2) {
System.out.println("Usage: tfs report <path>");
return -1;
}
String path = argv[1];
String file = Utils.getFilePath(path);
TachyonClient tachyonC... |
<<<<<<<
public BlockDataManager(WorkerSource workerSource, BlockMasterClient blockMasterClient,
FileSystemMasterClient fileSystemMasterClient)
throws IOException {
// TODO(jiri): We may not need to assign the conf to a variable.
=======
public BlockDataManager(WorkerSource work... |
<<<<<<<
private long mCurrentPosition;
private Path mHdfsPath;
private org.apache.hadoop.conf.Configuration mHadoopConf;
private int mHadoopBufferSize;
private Statistics mStatistics;
private URIStatus mFileInfo;
private FSDataInputStream mHdfsInputStream = null;
private FileInStream mAlluxioFileInput... |
<<<<<<<
Criteria criteria = session.createCriteria(TemporalReferencedSeriesObservation.class)
.add(Restrictions.eq(TemporalReferencedSeriesObservation.DELETED, false));
criteria.add(Restrictions.eq(TemporalReferencedSeriesObservation.SERIES, series));
=======
Criteria criteria =
... |
<<<<<<<
import tachyon.master.MasterContext;
import tachyon.master.MasterSource;
=======
import tachyon.master.MasterContext;
>>>>>>>
import tachyon.master.MasterContext;
import tachyon.master.MasterSource;
<<<<<<<
=======
// TODO(gene): metrics
>>>>>>>
<<<<<<<
MasterContext.getMasterSource().incFilesCh... |
<<<<<<<
protected StorageDir cascadingEvict(long bytesToBeAvailable, BlockStoreLocation location,
=======
private StorageDirView cascadingEvict(long bytesToBeAvailable, BlockStoreLocation location,
>>>>>>>
protected StorageDirView cascadingEvict(long bytesToBeAvailable, BlockStoreLocation location, |
<<<<<<<
import tachyon.conf.TachyonConf;
=======
import com.google.common.base.Preconditions;
import tachyon.conf.CommonConf;
>>>>>>>
import com.google.common.base.Preconditions;
import tachyon.conf.TachyonConf;
<<<<<<<
public static UnderFileSystem get(String path, Object conf, TachyonConf tachyonConf) {
i... |
<<<<<<<
import tachyon.client.file.FileSystemMasterClient;
=======
import tachyon.client.file.options.CompleteFileOptions;
>>>>>>>
import tachyon.client.file.FileSystemMasterClient;
import tachyon.client.file.options.CompleteFileOptions; |
<<<<<<<
mMountPoint = mLocalTachyonCluster.getMountPoint();
=======
>>>>>>>
mMountPoint = mLocalTachyonCluster.getMountPoint(); |
<<<<<<<
import tachyon.TachyonURI;
import tachyon.client.BlockMasterClient;
import tachyon.client.FileSystemMasterClient;
=======
import tachyon.client.WorkerBlockMasterClient;
import tachyon.client.WorkerFileSystemMasterClient;
>>>>>>>
import tachyon.TachyonURI;
import tachyon.client.WorkerBlockMasterClient;
import... |
<<<<<<<
private Future<?> mTTLCheckerService;
/**
* The service that detects lost files. We store it here so that it can be accessed from tests.
*/
@SuppressFBWarnings("URF_UNREAD_FIELD")
private Future<?> mLostFilesDetectionService;
=======
private Future<?> mTtlCheckerService;
>>>>>>>
private Fut... |
<<<<<<<
=======
public void lastModificationTimeAddCheckpointTest() throws Exception {
long fileId = mFsMaster.create(new TachyonURI("/testFile"), CreateOptions.defaults());
long opTimeMs = TEST_CURRENT_TIME;
mFsMaster.persistFileInternal(fileId, 1, opTimeMs);
FileInfo fileInfo = mFsMaster.getFileIn... |
<<<<<<<
mZookeeperMode = mTachyonConf.getBoolean(Constants.ZOOKEEPER_ENABLED);
mExecutorService =
Executors.newFixedThreadPool(2, ThreadFactoryUtils.build("client-heartbeat-%d", true));
=======
mZookeeperMode = mTachyonConf.getBoolean(Constants.USE_ZOOKEEPER);
>>>>>>>
mZookeeperMode = mTachyo... |
<<<<<<<
public static final String MASTER_WORKER_LINEAGE_SYNC_INTERVAL_MS =
"tachyon.worker.lineage.interval.ms";
=======
public static final String WORKER_BLOCK_LOCK_COUNT = "tachyon.worker.block.lock.count";
>>>>>>>
public static final String MASTER_WORKER_LINEAGE_SYNC_INTERVAL_MS =
"tachyon.wo... |
<<<<<<<
.put(JournalEntryType.REQUEST_FILE_PERSISTENCE,
new RequestFilePersistenceEntry(Arrays.asList(1L, 2L)))
.put(JournalEntryType.SET_STATE, new SetStateEntry(TEST_FILE_ID, TEST_OP_TIME_MS, true, null))
.build();
=======
.put(JournalEntryType.PERSIST_FILES_REQUEST,
new ... |
<<<<<<<
new ClientOptions.Builder(sTachyonConf).setTachyonStoreType(TachyonStorageType.STORE)
.setUnderStorageType(UnderStorageType.SYNC_PERSIST).build();
=======
new ClientOptions.Builder(sTachyonConf).setTachyonStorageType(TachyonStorageType.STORE)
.setUnderStorageType(UnderS... |
<<<<<<<
=======
import alluxio.client.block.stream.UnderFileSystemFileOutStream;
import alluxio.client.file.options.CancelUfsFileOptions;
>>>>>>>
import alluxio.client.block.stream.UnderFileSystemFileOutStream;
<<<<<<<
when(mFactory.create(any(FileSystemContext.class), any(InetSocketAddress.class), anyString())... |
<<<<<<<
import tachyon.thrift.FileAlreadyExistException;
=======
import tachyon.thrift.DependencyInfo;
>>>>>>>
<<<<<<<
=======
} else if (entry instanceof DependencyEntry) {
DependencyEntry dependencyEntry = (DependencyEntry) entry;
Dependency dependency = new Dependency(dependencyEntry.mId, depen... |
<<<<<<<
import tachyon.master.next.IndexedSet;
import tachyon.master.next.block.meta.BlockId;
=======
import tachyon.master.block.BlockId;
>>>>>>>
import tachyon.master.next.IndexedSet;
import tachyon.master.block.BlockId;
<<<<<<<
public Inode getInodeById(long id) {
return mInodes.getFirstByField(mIdIndex, i... |
<<<<<<<
public final class FileSystemMasterClientIntegrationTest {
private static final GetStatusOptions GET_STATUS_OPTIONS = GetStatusOptions.defaults();
=======
public final class FileSystemMasterClientIntegrationTest extends BaseIntegrationTest {
>>>>>>>
public final class FileSystemMasterClientIntegrationTest... |
<<<<<<<
UnderFileSystemUtils.deleteFileIfExists(mUfs, mCheckpointPath);
mUfs.renameFile(mTempBackupCheckpointPath, mCheckpointPath);
=======
UnderFileSystemUtils.deleteFileIfExists(mCheckpointPath);
mUfs.rename(mTempBackupCheckpointPath, mCheckpointPath);
>>>>>>>
UnderFileSyst... |
<<<<<<<
// Use a shared handler for all pipelines.
private final DataServerHandler mDataServerHandler;
private final SocketAddress mSocketAddress;
=======
>>>>>>>
private final SocketAddress mSocketAddress; |
<<<<<<<
import com.google.common.base.Preconditions;
=======
import com.google.common.io.BaseEncoding;
>>>>>>>
import org.apache.commons.codec.binary.Hex;
import com.google.common.base.Preconditions;
import com.google.common.io.BaseEncoding;
<<<<<<<
import javax.ws.rs.GET;
=======
import javax.ws.rs.GET;
import j... |
<<<<<<<
* next available id: 26
=======
* next available id: 25
>>>>>>>
* next available id: 27
<<<<<<<
case 194: {
tachyon.proto.journal.KeyValue.DeleteStoreEntry.Builder subBuilder = null;
if (entryCase_ == 24) {
subBuilder = ((tachyon.proto.journal... |
<<<<<<<
private final IndexDefinition<Inode<?>> mIdIndex = new IndexDefinition<Inode<?>>(true) {
@Override
public Object getFieldValue(Inode<?> o) {
return o.getId();
}
};
private final IndexDefinition<Inode<?>> mNameIndex = new IndexDefinition<Inode<?>>(true) {
=======
private IndexedSet.F... |
<<<<<<<
import org.n52.sos.ds.hibernate.entities.EntitiyHelper;
=======
import org.n52.sos.ds.hibernate.entities.AbstractObservation;
>>>>>>>
import org.n52.sos.ds.hibernate.entities.EntitiyHelper;
import org.n52.sos.ds.hibernate.entities.AbstractObservation; |
<<<<<<<
if (user == null) {
throw new IOException(ExceptionMessage.AUTHORIZED_CLIENT_USER_IS_NULL.getMessage());
}
mUserName = user.getName();
mGroupName = CommonUtils.getPrimaryGroupName(conf, user.getName());
=======
Preconditions.checkNotNull(user, ExceptionMessage.AUTHORIZED_CLIENT_USER_... |
<<<<<<<
=======
import java.util.Collections;
>>>>>>>
<<<<<<<
import tachyon.master.next.journal.JournalInputStream;
=======
import tachyon.master.next.journal.JournalWriter;
>>>>>>>
import tachyon.master.next.journal.JournalInputStream;
import tachyon.master.next.journal.JournalWriter; |
<<<<<<<
TEST_OP_TIME_MS, TEST_BLOCK_SIZE_BYTES, TEST_LENGTH_BYTES, true, true, TEST_FILE_NAME,
blocks, PermissionStatus.getDirDefault().applyUMask(new FsPermission((short)0111))));
=======
true, TEST_OP_TIME_MS, TEST_BLOCK_SIZE_BYTES, TEST_LENGTH_BYTES, true, true, blocks,
Constants.NO... |
<<<<<<<
import tachyon.util.network.NetworkAddressUtils;
=======
>>>>>>>
import tachyon.util.network.NetworkAddressUtils; |
<<<<<<<
public synchronized void worker_cacheBlock(long workerId, long usedBytesOnTier,
long storageDirId, long blockId, long length) throws IOException, FileDoesNotExistException,
SuspectedFileSizeException, BlockInfoException {
=======
public synchronized void worker_cacheBlock(long workerId, long w... |
<<<<<<<
public final class RPCBlockWriteRequest extends RPCRequest {
private final long mUserId;
=======
public class RPCBlockWriteRequest extends RPCRequest {
private final long mSessionId;
>>>>>>>
public final class RPCBlockWriteRequest extends RPCRequest {
private final long mSessionId; |
<<<<<<<
// Authorization
public static final String SECURITY_AUTHORIZATION_PERMISSIONS_UMASK =
"tachyon.security.authorization.permission.umask";
public static final int DEFAULT_TFS_PERMISSIONS_UMASK = 0022;
public static final short DEFAULT_TFS_FULL_PERMISSION = (short) 0777;
public static final short ... |
<<<<<<<
UfsStatus[] paths = UnderFileSystem.Factory.get(journalFolder)
=======
UnderFileStatus[] paths = UnderFileSystem.Factory.create(journalFolder)
>>>>>>>
UfsStatus[] paths = UnderFileSystem.Factory.create(journalFolder) |
<<<<<<<
WorkerNetAddress workerNetAddress, FileSystemContext context, InStreamOptions options) {
PacketInStream inStream = PacketInStream
.createLocalPacketInStream(context, workerNetAddress, blockId, blockSize, options);
return new BlockInStream(inStream, workerNetAddress, options);
=======
... |
<<<<<<<
public void completeFile(long fileId, CompleteFileTOptions options) throws TachyonTException, org.apache.thrift.TException;
=======
public void completeFile(long fileId) throws tachyon.thrift.TachyonTException, org.apache.thrift.TException;
>>>>>>>
public void completeFile(long fileId, CompleteFi... |
<<<<<<<
protected static final Option LIST_PINNED_FILES_OPTION =
Option.builder("p")
.required(false)
.hasArg(false)
.desc("list all pinned files")
.build();
=======
protected static final Option FIX_INCONSISTENT_FILES =
Optio... |
<<<<<<<
import tachyon.master.file.options.CreateOptions;
import tachyon.master.file.options.MkdirOptions;
import tachyon.master.file.options.SetAclOptions;
=======
import tachyon.master.file.options.CreateFileOptions;
import tachyon.master.file.options.CreateDirectoryOptions;
>>>>>>>
import tachyon.master.file.opti... |
<<<<<<<
import tachyon.conf.TachyonConf;
=======
import tachyon.StorageDirId;
import tachyon.StorageLevelAlias;
>>>>>>>
import tachyon.conf.TachyonConf;
import tachyon.StorageDirId;
import tachyon.StorageLevelAlias;
<<<<<<<
inodeFile.addLocation(0, 1, testAddresses.get(0));
Assert.assertEquals(1, inodeFile.... |
<<<<<<<
import alluxio.client.netty.NettyClient;
import alluxio.exception.AlluxioException;
=======
import alluxio.exception.status.AlluxioStatusException;
>>>>>>>
import alluxio.client.netty.NettyClient;
import alluxio.exception.status.AlluxioStatusException;
<<<<<<<
import java.io.IOException;
import java.net.Soc... |
<<<<<<<
*
* @param tfsRootPath
* the destination point in mTachyonFS to load the under FS path onto
* @param ufsRootPath
* the source path in the under FS to be loaded
* @param path
* the path in the under FS be loaded, path.startsWith(ufsRootPath) must be true
=======
... |
<<<<<<<
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-10-22")
=======
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-10-23")
>>>>>>>
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-10-26")
<<<<<<<
public void workerCommitBloc... |
<<<<<<<
import alluxio.exception.status.NotFoundException;
import alluxio.exception.status.UnavailableException;
=======
import alluxio.exception.status.FailedPreconditionException;
>>>>>>>
import alluxio.exception.status.FailedPreconditionException;
import alluxio.exception.status.NotFoundException;
import alluxio.... |
<<<<<<<
private final String PATH;
private DataOutputStream DOS;
private OutputStream OS;
private static boolean mBackUpCurrentLog = false;
private static long mCurrentTId = 0;
=======
private final UnderFileSystem UFS;
private final DataOutputStream DOS;
private final OutputStream OS;
>>>>>>>
priv... |
<<<<<<<
return mFSMasterClient.mkdir(path.getPath(), recursive);
} catch (TException e) {
=======
return mFSMasterClient.createDirectory(path.getPath(), recursive);
} catch (TachyonException e) {
>>>>>>>
return mFSMasterClient.mkdir(path.getPath(), recursive);
} catch (TachyonException ... |
<<<<<<<
Assert.assertEquals(TEST_USER_NAME, inode1.getUserName());
Assert.assertEquals(TEST_GROUP_NAME, inode1.getGroupName());
Assert.assertEquals(new Permission(TEST_PERMISSION).applyFileUMask().getMode().toShort(),
inode1.getMode());
=======
Assert.assertEquals(TEST_USER_NAME, inode1.getOwn... |
<<<<<<<
=======
import java.io.Closeable;
import java.io.IOException;
import java.nio.ByteBuffer;
import com.google.common.base.Preconditions;
>>>>>>>
import java.io.Closeable;
import java.io.IOException;
import java.nio.ByteBuffer;
import com.google.common.base.Preconditions;
<<<<<<<
import java.io.IOException... |
<<<<<<<
import tachyon.exception.FailedPreconditionException;
import tachyon.exception.NotFoundException;
import tachyon.network.protocol.RPCBlockRequest;
import tachyon.network.protocol.RPCBlockResponse;
=======
import tachyon.network.protocol.RPCBlockReadRequest;
import tachyon.network.protocol.RPCBlockReadResponse... |
<<<<<<<
import org.apache.thrift.transport.TTransportException;
import org.apache.thrift.transport.TTransportFactory;
=======
>>>>>>>
import org.apache.thrift.transport.TTransportException;
import org.apache.thrift.transport.TTransportFactory;
<<<<<<<
import tachyon.metrics.MetricsSystem;
import tachyon.security.au... |
<<<<<<<
assertEquals(local,
mBlockStore.getInStream(BLOCK_ID, new InStreamOptions(new URIStatus(new FileInfo())))
.getAddress());
=======
assertEquals(local, mBlockStore.getInStream(info, new InStreamOptions(
new URIStatus(new FileInfo().setBlockIds(Lists.newArrayList(BLOCK_ID)))))... |
<<<<<<<
import tachyon.client.file.options.WaitCompletedOptions;
=======
import tachyon.exception.FileAlreadyExistsException;
import tachyon.exception.FileDoesNotExistException;
import tachyon.exception.InvalidPathException;
>>>>>>>
import tachyon.client.file.options.WaitCompletedOptions;
import tachyon.exception.Fi... |
<<<<<<<
create(Name.NETWORK_HOST_RESOLUTION_TIMEOUT_MS, "5sec");
=======
create(Name.NETWORK_HOST_RESOLUTION_TIMEOUT_MS, 5000);
public static final PropertyKey NETWORK_NETTY_HEARTBEAT_TIMEOUT_MS =
create(Name.NETWORK_NETTY_HEARTBEAT_TIMEOUT_MS, 30000);
>>>>>>>
create(Name.NETWORK_HOST_RESOL... |
<<<<<<<
import alluxio.client.QuietlyCancelable;
=======
import alluxio.client.Cancelable;
import alluxio.client.block.BlockWorkerClient;
>>>>>>>
import alluxio.client.Cancelable;
<<<<<<<
public class BlockOutStream extends FilterOutputStream implements BoundedStream, QuietlyCancelable {
=======
public class Bloc... |
<<<<<<<
public HdfsUnderFileSystem(AlluxioURI uri, Object conf) {
super(uri);
String ufsPrefix = uri.toString();
org.apache.hadoop.conf.Configuration tConf;
=======
public HdfsUnderFileSystem(AlluxioURI uri, Configuration configuration, Object conf) {
super(uri, configuration);
final String uf... |
<<<<<<<
LOG.info("{} is created", KeyValueWorker.class.getName());
return new KeyValueWorker(((BlockWorker) worker).getBlockDataManager());
=======
LOG.info("{} is created", KeyValueMaster.class.getName());
return new KeyValueWorker(((BlockWorker) worker));
>>>>>>>
LOG.info("{... |
<<<<<<<
JournalFactory factory = new Journal.Factory(new URI(mJournalFolder));
mBlockMaster = new BlockMaster(mRegistry, factory);
mExecutorService =
Executors.newFixedThreadPool(2, ThreadFactoryUtils.build("FileSystemMasterTest-%d", true));
mFileSystemMaster = new FileSystemMaster(mRegistry, fa... |
<<<<<<<
@Test
public void commitBlockTwiceTest() throws Exception {
mThrown.expect(AlreadyExistsException.class);
mThrown.expectMessage(
"checkTempBlockOwnedByUser failed: blockId " + TEMP_BLOCK_ID + " is committed");
TieredBlockStoreTestUtils.createTempBlock(USER_ID1, TEMP_BLOCK_ID, BLOCK_SIZ... |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
registerServices(processor, mRawTableMaster.getServices());
// register additional masters for RPC service
for (Master master : mAdditionalMasters) {
registerServices(processor, master.getServices());
}
=======
>>>>>>>
// register additional masters for RPC service
for (Master m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.