Skip to content

Instantly share code, notes, and snippets.

View frozenspider's full-sized avatar

Alex Abdugafarov frozenspider

View GitHub Profile
package org.newtonpolyhedron.ex;
public class WrongFormatException extends Exception {
private static final long serialVersionUID = 1943547769150295590L;
public WrongFormatException() {}
public WrongFormatException(String msg) {
super(msg);
function debounce(func, wait, immediate) {
let timeout;
return function() {
let context = this, args = arguments;
let later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
let callNow = immediate && !timeout;
clearTimeout(timeout);
// Problematic code snippet, `collect` invocation causes compiler to crash with an error below
val cache2 = cache
.withoutPath(quotedAlias)
.withValue("\"" + url + "\"", newConfig(Map(
"lastCheckMs" -> cacheObj.get[Option[Long]]("lastCheckMs").value,
"lastUpdateMs" -> cacheObj.get[Option[Long]]("lastUpdateMs").value
).collect { case (k, Some(v)) => (k, v) }))
/*
[error] java.lang.IllegalArgumentException: Could not find proxy for case val x1: Tuple2 in List(value x1, method applyOrElse, <$anon: Function1>, value cache2, method $anonfun$post-1.3_1$1, value x1, value x$1, method post-1.3_1, class MigrationService, package migration, package checker, package fs, package org, package <root>) (currentOwner= value k )
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
#include <stdio.h>
// Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations
@frozenspider
frozenspider / CMakeError.log
Last active March 3, 2021 17:12
ybd --clang11
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags:
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
@frozenspider
frozenspider / shell.log
Created March 3, 2021 17:20
./yb_build.sh --clang11 --clean --dltp --verbose
This file has been truncated, but you can view the full file.
17:15 ~/code/yugabyte (HEAD detached at c5252731d) $ ./yb_build.sh --clang11 --clean --dltp --verbose
[2021-03-03T17:15:50 common-build-env.sh:498 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-03T17:15:50 yb_build.sh:1068 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-03T17:15:50 yb_build.sh:1069 main] YB_COMPILER_TYPE=clang11
[2021-03-03T17:15:50 yb_build.sh:1072 main] build_type=debug, cmake_build_type=debug
[2021-03-03T17:15:50 yb_build.sh:1197 main] yb_build command line: --clang11 --clean --dltp --verbose
[2021-03-03T17:15:50 common-build-env.sh:2226 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
[2021-03-03T17:15:50 common-build-env.sh:1765 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thi
@frozenspider
frozenspider / shell.log
Created March 3, 2021 19:28
./yb_build.sh --clang11 --clean --dltp
19:26 ~/code/yugabyte (HEAD detached at c5252731d) $ ./yb_build.sh --clang11 --clean --dltp
[2021-03-03T19:26:41 common-build-env.sh:498 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-03T19:26:41 yb_build.sh:1068 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-03T19:26:41 yb_build.sh:1069 main] YB_COMPILER_TYPE=clang11
[2021-03-03T19:26:41 common-build-env.sh:2226 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
[2021-03-03T19:26:41 common-build-env.sh:1765 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
Details of third-party dependencies:
YB_THIRDPARTY_DIR: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-cla
@frozenspider
frozenspider / shell.log
Created March 3, 2021 20:52
(take 2) ./yb_build.sh --clang11 --clean --dltp
20:50 ~/code/yugabyte [arcpatch-D10786] $ ./yb_build.sh --clang11 --clean --dltp
[2021-03-03T20:50:15 common-build-env.sh:503 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-03T20:50:15 yb_build.sh:1068 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-03T20:50:15 yb_build.sh:1069 main] YB_COMPILER_TYPE=clang11
[2021-03-03T20:50:15 common-build-env.sh:2277 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
[2021-03-03T20:50:15 common-build-env.sh:1813 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
Details of third-party dependencies:
YB_THIRDPARTY_DIR: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11 (downl
19:23 ~/code/internal-devops/bin [master] $ ./setup_server.sh
Submodule 'yugabyte-bash-common' (https://github.com/yugabyte/yugabyte-bash-common) registered for path 'yugabyte-bash-common'
Cloning into '/home/centos/code/internal-devops/yugabyte-bash-common'...
Submodule path 'yugabyte-bash-common': checked out 'daf6cf7e247df9a35fee75518c689b38dc40cf12'
Collecting Flask==1.1.2 (from -r /home/centos/code/internal-devops/requirements_frozen.txt (line 1))
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl (94kB)
Collecting Jinja2==2.11.1 (from -r /home/centos/code/internal-devops/requirements_frozen.txt (line 2))
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/27/24/4f35961e5c669e96f6559760042a55b9bcfcdb82b9bdb3c8753dbe042e35/Jinja2-2.11.1-py2.py3-none-any.whl (126kB)